Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
hadron
command
|
|
|
internal
|
|
|
api
Package api wraps the Hadron GraphQL endpoint: a genqlient client for typed operations, a raw escape hatch for `hadron api`, and the mapping from transport/GraphQL errors to exit codes.
|
Package api wraps the Hadron GraphQL endpoint: a genqlient client for typed operations, a raw escape hatch for `hadron api`, and the mapping from transport/GraphQL errors to exit codes. |
|
api/gqltypes
Package gqltypes holds hand-authored Go types that the generated genqlient client binds to (see genqlient.yaml `bindings`).
|
Package gqltypes holds hand-authored Go types that the generated genqlient client binds to (see genqlient.yaml `bindings`). |
|
auth
Package auth implements `hadron auth login` flows against the Hadron OAuth endpoints (spec 025: authorization-code + PKCE, public client via dynamic client registration).
|
Package auth implements `hadron auth login` flows against the Hadron OAuth endpoints (spec 025: authorization-code + PKCE, public client via dynamic client registration). |
|
auth/store
Package store persists the Hadron access token, preferring the OS keychain and falling back to a 0600 file when no keychain is available (CI containers, headless boxes).
|
Package store persists the Hadron access token, preferring the OS keychain and falling back to a 0600 file when no keychain is available (CI containers, headless boxes). |
|
build
Package build holds version metadata stamped at build time via -ldflags (see Makefile and .goreleaser.yaml).
|
Package build holds version metadata stamped at build time via -ldflags (see Makefile and .goreleaser.yaml). |
|
cmd
Package cmd assembles the hadron command tree and owns the single error → exit-code → rendering path.
|
Package cmd assembles the hadron command tree and owns the single error → exit-code → rendering path. |
|
cmd/access
Package access implements `hadron access` — inspecting who can do what.
|
Package access implements `hadron access` — inspecting who can do what. |
|
cmd/agent
Package agent implements `hadron agent ...` — agent lifecycle management.
|
Package agent implements `hadron agent ...` — agent lifecycle management. |
|
cmd/agentic
Package agentic implements `hadron agentic-usage` (D8): a single document an agent can read to learn the CLI.
|
Package agentic implements `hadron agentic-usage` (D8): a single document an agent can read to learn the CLI. |
|
cmd/aiconfig
Package aiconfig implements `hadron ai-config ...` — the AI service config surface.
|
Package aiconfig implements `hadron ai-config ...` — the AI service config surface. |
|
cmd/apicmd
Package apicmd implements `hadron api`, the raw GraphQL escape hatch (same role as `gh api`).
|
Package apicmd implements `hadron api`, the raw GraphQL escape hatch (same role as `gh api`). |
|
cmd/app
Package app implements `hadron app ...`.
|
Package app implements `hadron app ...`. |
|
cmd/auth
Package auth implements `hadron auth ...`.
|
Package auth implements `hadron auth ...`. |
|
cmd/chat
Package chat implements `hadron chat ...` — a token-lean surface for AI agents (and humans) participating in a Hadron team-chat memory (see the how-to guide "Set up an agent team chat").
|
Package chat implements `hadron chat ...` — a token-lean surface for AI agents (and humans) participating in a Hadron team-chat memory (see the how-to guide "Set up an agent team chat"). |
|
cmd/configcmd
Package configcmd implements `hadron config ...`.
|
Package configcmd implements `hadron config ...`. |
|
cmd/connection
Package connection implements `hadron connection ...` — management of a user's external connections (email/calendar) and the scoped grants that delegate access on them to Apps (spec-042; hadron-server #593/#599).
|
Package connection implements `hadron connection ...` — management of a user's external connections (email/calendar) and the scoped grants that delegate access on them to Apps (spec-042; hadron-server #593/#599). |
|
cmd/edge
Package edge implements `hadron edge ...` — directed, labeled connections between two nodes.
|
Package edge implements `hadron edge ...` — directed, labeled connections between two nodes. |
|
cmd/grant
Package grant implements `hadron grant ...` — individual action grants (design:grant-model; hadron-server #615).
|
Package grant implements `hadron grant ...` — individual action grants (design:grant-model; hadron-server #615). |
|
cmd/mcpserver
Package mcpserver implements `hadron mcp-server ...` — the external MCP server registry (hadrontool-mcp conduit; hadron-server #634).
|
Package mcpserver implements `hadron mcp-server ...` — the external MCP server registry (hadrontool-mcp conduit; hadron-server #634). |
|
cmd/memory
Package memory implements `hadron memory ...`.
|
Package memory implements `hadron memory ...`. |
|
cmd/node
Package node implements `hadron node ...`.
|
Package node implements `hadron node ...`. |
|
cmd/object
Package object implements `hadron object …` — the CLI surface for the object store (cor:api:170, server #745).
|
Package object implements `hadron object …` — the CLI surface for the object store (cor:api:170, server #745). |
|
cmd/org
Package org implements `hadron org ...` — organization and membership management.
|
Package org implements `hadron org ...` — organization and membership management. |
|
cmd/replacecmd
Package replacecmd implements `hadron replace`, bulk search-and-replace across many nodes (the CLI mirror of the MCP tool hadron_replace_globally).
|
Package replacecmd implements `hadron replace`, bulk search-and-replace across many nodes (the CLI mirror of the MCP tool hadron_replace_globally). |
|
cmd/run
Package run implements `hadron run ...` — the headless App-run audit and control surface (spec-040, cor:agt:010:02).
|
Package run implements `hadron run ...` — the headless App-run audit and control surface (spec-040, cor:agt:010:02). |
|
cmd/schedule
Package schedule implements `hadron schedule ...` — recurring headless-run triggers (spec-040, cor:agt:010, D-2026-07-04-E).
|
Package schedule implements `hadron schedule ...` — recurring headless-run triggers (spec-040, cor:agt:010, D-2026-07-04-E). |
|
cmd/secret
Package secret implements `hadron secret ...` — management for the owner-scoped, encrypted secret store.
|
Package secret implements `hadron secret ...` — management for the owner-scoped, encrypted secret store. |
|
cmd/spec
Package spec implements `hadron spec ...` — an opinionated layer over the generic node/edge commands for maintaining product-spec nodes that follow the loc-as-citation convention: a spec's loc IS its citation number, <module>:<feature>:<rule>:<flow> (e.g.
|
Package spec implements `hadron spec ...` — an opinionated layer over the generic node/edge commands for maintaining product-spec nodes that follow the loc-as-citation convention: a spec's loc IS its citation number, <module>:<feature>:<rule>:<flow> (e.g. |
|
cmd/ticket
Package ticket implements `hadron ticket ...` — the action-ticket ledger (spec-040, cor:acl:050:04 tier 2).
|
Package ticket implements `hadron ticket ...` — the action-ticket ledger (spec-040, cor:acl:050:04 tier 2). |
|
cmd/user
Package user implements `hadron user ...` (look up other users) and `hadron profile ...` (the signed-in user's own profile).
|
Package user implements `hadron user ...` (look up other users) and `hadron profile ...` (the signed-in user's own profile). |
|
cmd/version
Package version implements `hadron version`.
|
Package version implements `hadron version`. |
|
cmd/webhook
Package webhook implements `hadron webhook ...` — inbound webhook triggers for headless runs (spec-040, D-2026-05-02).
|
Package webhook implements `hadron webhook ...` — inbound webhook triggers for headless runs (spec-040, D-2026-05-02). |
|
cmdutil
Package cmdutil provides the Factory injected into every command: lazily-resolved config, token store, and API client, plus the values of the persistent --json/--server/--app flags.
|
Package cmdutil provides the Factory injected into every command: lazily-resolved config, token store, and API client, plus the values of the persistent --json/--server/--app flags. |
|
config
Package config reads and writes ~/.config/hadron/config.toml.
|
Package config reads and writes ~/.config/hadron/config.toml. |
|
exitcode
Package exitcode defines the hadron CLI's stable, documented exit codes.
|
Package exitcode defines the hadron CLI's stable, documented exit codes. |
|
nodedoc
Package nodedoc is the codec for a single node's portable file form — the frontmatter-markdown (and canonical JSON) representation that `hadron memory export`, `hadron node export`, and `hadron node import` all share.
|
Package nodedoc is the codec for a single node's portable file form — the frontmatter-markdown (and canonical JSON) representation that `hadron memory export`, `hadron node export`, and `hadron node import` all share. |
|
output
Package output renders command results as human-readable text or JSON.
|
Package output renders command results as human-readable text or JSON. |
|
urlsec
Package urlsec holds the URL-scheme security primitives shared by the API transport guard (which refuses to put a bearer token on a cleartext wire) and the OAuth login flow (which validates server-controlled discovery endpoints before handing them to the OS URL-opener or sending a token to them).
|
Package urlsec holds the URL-scheme security primitives shared by the API transport guard (which refuses to put a bearer token on a cleartext wire) and the OAuth login flow (which validates server-controlled discovery endpoints before handing them to the OS URL-opener or sending a token to them). |
Click to show internal directories.
Click to hide internal directories.