internal/

directory
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0

Directories

Path Synopsis
Package agents detects which LLM agent CLIs/apps are installed locally.
Package agents detects which LLM agent CLIs/apps are installed locally.
Package artifactsig signs and verifies provisioning artifact envelopes.
Package artifactsig signs and verifies provisioning artifact envelopes.
Package atlasext loads the data a plugin's atlas side declares: views/ (a read-only view of a public API route, drawn by the Atlas with one of four fixed renderers) and apps/ (an entry that opens an app on its own origin in a new tab).
Package atlasext loads the data a plugin's atlas side declares: views/ (a read-only view of a public API route, drawn by the Atlas with one of four fixed renderers) and apps/ (an entry that opens an app on its own origin in a new tab).
Package audit implements Cartographer's local, tamper-evident audit trail.
Package audit implements Cartographer's local, tamper-evident audit trail.
Package auth implements bearer-token authorization for the HTTP transport: the token store, the middleware that resolves a request to a principal with a Policy, and the per-KB RBAC check the tools are gated on (`kb:<name>:r` / `kb:<name>:rw` scopes are parsed into Policy permissions).
Package auth implements bearer-token authorization for the HTTP transport: the token store, the middleware that resolves a request to a principal with a Policy, and the per-KB RBAC check the tools are gated on (`kb:<name>:r` / `kb:<name>:rw` scopes are parsed into Policy permissions).
Package blocktext implements the marker-delimited "managed block" primitive.
Package blocktext implements the marker-delimited "managed block" primitive.
Package boundaries is the client import firewall: it pins that the client packages never link the data plane (D1884).
Package boundaries is the client import firewall: it pins that the client packages never link the data plane (D1884).
Package branding parses and judges the branding/ folder of a plugin's atlas side: a company logo (light and dark) and a company name, all data.
Package branding parses and judges the branding/ folder of a plugin's atlas side: a company logo (light and dark) and a company name, all data.
Package buildid names the build of the running executable: the VCS revision the toolchain embedded, or a hash of the file when none is.
Package buildid names the build of the running executable: the VCS revision the toolchain embedded, or a hash of the file when none is.
Package changelog regroups a release-please changelog by area.
Package changelog regroups a release-please changelog by area.
gen command
Command gen runs package changelog: it groups a release-please changelog by area and checks PR bodies for wrapped conventional lines (D865):
Command gen runs package changelog: it groups a release-please changelog by area and checks PR bodies for wrapped conventional lines (D865):
Package client is a minimal MCP client over HTTP (JSON-RPC 2.0).
Package client is a minimal MCP client over HTTP (JSON-RPC 2.0).
Package clientconfig reads and writes the client-side `.cartographer.yaml` file: the record of which server this machine talks to and which agent providers have been connected via `cartographer connect`.
Package clientconfig reads and writes the client-side `.cartographer.yaml` file: the record of which server this machine talks to and which agent providers have been connected via `cartographer connect`.
Package componentproto is the server-component wire contract.
Package componentproto is the server-component wire contract.
Package config is the server configuration of `cartographer serve`: a YAML file merged with environment variables and CLI flags.
Package config is the server configuration of `cartographer serve`: a YAML file merged with environment variables and CLI flags.
Package configurator generates the MCP configuration of each agent client: Claude Code, Codex CLI, Kiro, OpenCode, Antigravity, Crush, GitHub Copilot (CLI and VS Code).
Package configurator generates the MCP configuration of each agent client: Claude Code, Codex CLI, Kiro, OpenCode, Antigravity, Crush, GitHub Copilot (CLI and VS Code).
Package defaults holds the local endpoint defaults: the values the native service and the client first-run paths share.
Package defaults holds the local endpoint defaults: the values the native service and the client first-run paths share.
Package docskb generates the documentation KB: a pure function of the repository's markdown (README.md, CONTRIBUTING.md, docs/ and docs/decisions/) and of a git ref, with no model and no clock, so the same input is the same bytes.
Package docskb generates the documentation KB: a pure function of the repository's markdown (README.md, CONTRIBUTING.md, docs/ and docs/decisions/) and of a git ref, with no model and no clock, so the same input is the same bytes.
Package execbit reports whether the filesystem has the POSIX execute bit.
Package execbit reports whether the filesystem has the POSIX execute bit.
Package feedback redacts a bug report and builds its destination URL: where the report goes (Destination), the URL that carries it (SubmitURL) and the redactor that removes every name and secret the caller knows before the user sees the draft (Redact).
Package feedback redacts a bug report and builds its destination URL: where the report goes (Destination), the URL that carries it (SubmitURL) and the redactor that removes every name and secret the caller knows before the user sees the draft (Redact).
Package gitx provides a git wrapper via os/exec for the Agentic Wiki.
Package gitx provides a git wrapper via os/exec for the Agentic Wiki.
gitxtest
Package gitxtest is a git smart-HTTP server for tests: the real git-http-backend behind basic authentication, in process, so a test meets what a forge's HTTPS endpoint does (a 401, a credential helper, a pre-receive hook's "remote:" lines) without a network.
Package gitxtest is a git smart-HTTP server for tests: the real git-http-backend behind basic authentication, in process, so a test meets what a forge's HTTPS endpoint does (a 401, a credential helper, a pre-receive hook's "remote:" lines) without a network.
Package graphalgo holds the graph algorithms behind the retrieval tools (D242): personalized PageRank, BFS, shortest paths and link prediction over an int-indexed adjacency.
Package graphalgo holds the graph algorithms behind the retrieval tools (D242): personalized PageRank, BFS, shortest paths and link prediction over an int-indexed adjacency.
Package hooks calls the hook points of the core: a versioned HTTP webhook with a timeout, an operator-chosen failure policy, a circuit breaker and a dry-run mode.
Package hooks calls the hook points of the core: a versioned HTTP webhook with a timeout, an operator-chosen failure policy, a circuit breaker and a dry-run mode.
hooktest
Package hooktest is the contract kit of the hook protocol: a test server that stands in for a hook (it records each request and answers from a script) and the validation of a request or a response against the published JSON Schemas in docs/schemas/hooks, one file per point.
Package hooktest is the contract kit of the hook protocol: a test server that stands in for a hook (it records each request and answers from a script) and the validation of a request or a response against the published JSON Schemas in docs/schemas/hooks, one file per point.
Package jsonorder edits a JSON object without reformatting the rest: the key order of every object read, the indent unit (tabs included), CRLF, the final newline and the exact digits of a number (json.Number) survive a read-modify-write (#1198, #1502), and HTML characters are not escaped (`&&` in another tool's command stays as written).
Package jsonorder edits a JSON object without reformatting the rest: the key order of every object read, the indent unit (tabs included), CRLF, the final newline and the exact digits of a number (json.Number) survive a read-modify-write (#1198, #1502), and HTML characters are not escaped (`&&` in another tool's command stays as written).
Package kb implements the data plane of the OKF knowledge base.
Package kb implements the data plane of the OKF knowledge base.
Package kbtest copies a pre-built KB into a test directory.
Package kbtest copies a pre-built KB into a test directory.
Package lint implements deterministic lint checks on a KB scope.
Package lint implements deterministic lint checks on a KB scope.
Package mcpbridge is the local stdio MCP server scoped to a folder's KBs (D737): one agent session gets the KBs of the folder it was started in.
Package mcpbridge is the local stdio MCP server scoped to a folder's KBs (D737): one agent session gets the KBs of the folder it was started in.
Package mcpexec resolves an approved MCP descriptor and its secrets.
Package mcpexec resolves an approved MCP descriptor and its secrets.
Package mcpprobe checks an MCP descriptor without launching it: which ${VAR} references are unset, whether its host can be reached, and which of the usual network and TLS faults an error is.
Package mcpprobe checks an MCP descriptor without launching it: which ${VAR} references are unset, whether its host can be reached, and which of the usual network and TLS faults an error is.
Package mcpserver implements the control plane: the MCP protocol over stdio and Streamable HTTP, and the tool registry that exposes a KB to an agent.
Package mcpserver implements the control plane: the MCP protocol over stdio and Streamable HTTP, and the tool registry that exposes a KB to an agent.
Package okf — parser/serializer for the YAML subset used in OKF frontmatter.
Package okf — parser/serializer for the YAML subset used in OKF frontmatter.
Package openapi builds an OpenAPI document from Go types.
Package openapi builds an OpenAPI document from Go types.
gen command
Command gen writes docs/openapi.json.
Command gen writes docs/openapi.json.
Package plugin is the client side of a Cartographer plugin: the loaders and previews of the skill, agent, hook and provider points, the acquisition of a source (folder or git repository), the diff of two trees and the provider cells handed to provisioning.
Package plugin is the client side of a Cartographer plugin: the loaders and previews of the skill, agent, hook and provider points, the acquisition of a source (folder or git repository), the diff of two trees and the provider cells handed to provisioning.
core
Package core is the half of the plugin system the server and the Surveyor link: the manifest and its version ranges, the families and the contribution-point registry, the reader and digest of an in-memory tree, the pinned store and the provider descriptor with its resolver.
Package core is the half of the plugin system the server and the Surveyor link: the manifest and its version ranges, the families and the contribution-point registry, the reader and digest of an in-memory tree, the pinned store and the provider descriptor with its resolver.
star
Package star runs the Starlark script of a plugin for a client: plugin.star at the root and the lib/*.star files it loads.
Package star runs the Starlark script of a plugin for a client: plugin.star at the root and the lib/*.star files it loads.
starcore
Package starcore is the server-safe Starlark runtime of a plugin script.
Package starcore is the server-safe Starlark runtime of a plugin script.
starcore/internal/seam
Package seam holds the test seams of the Starlark runtime.
Package seam holds the test seams of the Starlark runtime.
starcore/recipes
Package recipes is the surveyor side of the Starlark runtime: the recipe() registrar of surveyor.star and the call of a recipe's verbs (spec, check, list, fetch).
Package recipes is the surveyor side of the Starlark runtime: the recipe() registrar of surveyor.star and the call of a recipe's verbs (spec, check, list, fetch).
starcore/startest
Package startest is the door of the tests to the test seams of starcore.
Package startest is the door of the tests to the test seams of starcore.
Package pluginserver loads the data families of a plugin's server side: roles/ (role templates the operator maps onto KBs) and presets/ (a map contract and its templates, handed out by preset_list).
Package pluginserver loads the data families of a plugin's server side: roles/ (role templates the operator maps onto KBs) and presets/ (a map contract and its templates, handed out by preset_list).
Package procattr sets the process attributes every child of Cartographer shares.
Package procattr sets the process attributes every child of Cartographer shares.
Package provisioning manages the synchronization of artifacts (skill, agent, hook — D48; instructions — D56; mcp, third-party MCP servers from KBs — D69) between the Cartographer server and the LLM client (CLI or MCP tool).
Package provisioning manages the synchronization of artifacts (skill, agent, hook — D48; instructions — D56; mcp, third-party MCP servers from KBs — D69) between the Cartographer server and the LLM client (CLI or MCP tool).
contract
Package contract is the wire contract of provisioning.
Package contract is the wire contract of provisioning.
Package repodocs keeps this repository navigable by a coding agent: the deterministic checks, plus the generators for the decision index and the code map.
Package repodocs keeps this repository navigable by a coding agent: the deterministic checks, plus the generators for the decision index and the code map.
landertest
Package landertest holds the tests of the scripts that queue, check and land a change (the lander, signoff, ready, requeue, status, the triage and the profiles they read), apart from internal/repodocs so that `go test` runs them in parallel with the documentation checks: the lander tests alone were most of that package's run time.
Package landertest holds the tests of the scripts that queue, check and land a change (the lander, signoff, ready, requeue, status, the triage and the profiles they read), apart from internal/repodocs so that `go test` runs them in parallel with the documentation checks: the lander tests alone were most of that package's run time.
Package repoindex resolves `{{repo:<key>}}` placeholders (D75) to a local clone path: it scans a set of search roots for git repositories, reads each one's `origin` remote from `.git/config` (no `git` exec — the file is parsed directly, see readOriginURL), and normalizes the remote URL to a canonical "host/owner/name" key that is stable across every machine on the team.
Package repoindex resolves `{{repo:<key>}}` placeholders (D75) to a local clone path: it scans a set of search roots for git repositories, reads each one's `origin` remote from `.git/config` (no `git` exec — the file is parsed directly, see readOriginURL), and normalizes the remote URL to a canonical "host/owner/name" key that is stable across every machine on the team.
Package safewrite guards client-side writes against symlinks.
Package safewrite guards client-side writes against symlinks.
Package search implements an in-memory inverted keyword index for KB concepts.
Package search implements an in-memory inverted keyword index for KB concepts.
Package secretscan finds potential credentials in text: known token formats with their real length and charset, plus a PEM private-key header followed by key material (D1202).
Package secretscan finds potential credentials in text: known token formats with their real length and charset, plus a PEM private-key header followed by key material (D1202).
Package service manages the cartographer MCP server as a native per-user service: a launchd agent on macOS, a systemd user unit on Linux, a per-user Scheduled Task on Windows (D217).
Package service manages the cartographer MCP server as a native per-user service: a launchd agent on macOS, a systemd user unit on Linux, a per-user Scheduled Task on Windows (D217).
Package settingschema describes a settings file's keys once, in code (D747): that description is rendered as comments inside the YAML file.
Package settingschema describes a settings file's keys once, in code (D747): that description is rendered as comments inside the YAML file.
Package skill loads and validates SKILL.md files (agentskills.io format).
Package skill loads and validates SKILL.md files (agentskills.io format).
Package skillbundle embeds the skills shipped inside the binary (bundled/).
Package skillbundle embeds the skills shipped inside the binary (bundled/).
Package sops decrypts the sops-encrypted KB secrets a skill runs with: it resolves the references a concept declares and turns them into the skill's environment.
Package sops decrypts the sops-encrypted KB secrets a skill runs with: it resolves the references a concept declares and turns them into the skill's environment.
Package sqlindex implements a persistent SQLite-backed keyword index.
Package sqlindex implements a persistent SQLite-backed keyword index.
Package surveyor is the model client and agent loop of the Surveyor (D1257).
Package surveyor is the model client and agent loop of the Surveyor (D1257).
connector
Package connector mounts allowed MCP tools.
Package connector mounts allowed MCP tools.
feed
Package feed handles a feed cursor.
Package feed handles a feed cursor.
poll
Package poll names units.
Package poll names units.
recipe
Package recipe lists what changed in a feed Source.
Package recipe lists what changed in a feed Source.
recipe/recipetest
Package recipetest runs a plugin's recipes against recorded fixtures.
Package recipetest runs a plugin's recipes against recorded fixtures.
surveyortest
Package surveyortest is the deterministic test double of package surveyor: a scripted Model and a scripted MCP tool caller, with no network.
Package surveyortest is the deterministic test double of package surveyor: a scripted Model and a scripted MCP tool caller, with no network.
synthesis
Package synthesis is the third task kind of the Surveyor: with nothing left to ingest or repair it reads what the KB holds and proposes what it infers, as Contradiction concepts of a gap kind (a hypothesis is a gap, never a claim).
Package synthesis is the third task kind of the Surveyor: with nothing left to ingest or repair it reads what the KB holds and proposes what it infers, as Contradiction concepts of a gap kind (a hypothesis is a gap, never a claim).
system
Package system diffs the state of a live system.
Package system diffs the state of a live system.
Package surveyorconfig holds the key table of the Surveyor config file: the one list of keys the file accepts.
Package surveyorconfig holds the key table of the Surveyor config file: the one list of keys the file accepts.
Package testkbs generates the synthetic test KBs `make dev` serves (D818, D1032): eleven KBs, built to put every Atlas view in a state worth looking at — Maps with every contract key, work in every status, sources, contradictions, services, secrets, artifacts, placeholders, planted lint defects, a git history with revisions, moves and repairs, and the local state (lint trend, search misses, conflicts, usage) the server keeps beside the repository.
Package testkbs generates the synthetic test KBs `make dev` serves (D818, D1032): eleven KBs, built to put every Atlas view in a state worth looking at — Maps with every contract key, work in every status, sources, contradictions, services, secrets, artifacts, placeholders, planted lint defects, a git history with revisions, moves and repairs, and the local state (lint trend, search misses, conflicts, usage) the server keeps beside the repository.
gen command
Command gen writes the testkbs fleet to a data directory: one subdirectory per KB (`go run ./internal/testkbs/gen <dir>`), and beside them the client settings report of an imaginary workstation (client-report.json, not a KB) and the bodies of a synthetic Surveyor (surveyor-*.json).
Command gen writes the testkbs fleet to a data directory: one subdirectory per KB (`go run ./internal/testkbs/gen <dir>`), and beside them the client settings report of an imaginary workstation (client-report.json, not a KB) and the bodies of a synthetic Surveyor (surveyor-*.json).
Package testtree snapshots a directory tree in memory and restores it elsewhere.
Package testtree snapshots a directory tree in memory and restores it elsewhere.
Package tray is the core of the status icon: the health model of the local server or, on a machine with no local service, of the server the client is connected to, the poll loop that keeps it current and the generated monochrome icons.
Package tray is the core of the status icon: the health model of the local server or, on a machine with no local service, of the server the client is connected to, the poll loop that keeps it current and the generated monochrome icons.
Package updatecheck answers whether a newer release exists and how to upgrade (D254): the latest tag from the GitHub release list, cached for 24 hours and failing silent, and the install channel the running binary came from.
Package updatecheck answers whether a newer release exists and how to upgrade (D254): the latest tag from the GitHub release list, cached for 24 hours and failing silent, and the install channel the running binary came from.
Package webui serves the embedded read-only Atlas UI (D227).
Package webui serves the embedded read-only Atlas UI (D227).
gen command
Command webui-provenance fingerprints the Atlas bundle: it writes internal/webui/dist/provenance.json with the hash of the web/ source tree.
Command webui-provenance fingerprints the Atlas bundle: it writes internal/webui/dist/provenance.json with the hash of the web/ source tree.
Package wsl detects when the process runs inside WSL.
Package wsl detects when the process runs inside WSL.

Jump to

Keyboard shortcuts

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