internal/

directory
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT

Directories

Path Synopsis
Package accountusage is the pure logic behind `hadron team usage` (cli#1472): read each configured model account's rate-limit snapshot (and optionally a ccusage JSON file the operator produced), validate everything before any record exists, and shape one `account-usage` record per account.
Package accountusage is the pure logic behind `hadron team usage` (cli#1472): read each configured model account's rate-limit snapshot (and optionally a ccusage JSON file the operator produced), validate everything before any record exists, and shape one `account-usage` record per account.
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.
gen
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`).
Package approster holds the App-agents read — the AppAgent join (cor:dmo:050:03) that answers "which Agents are installed in this App?".
Package approster holds the App-agents read — the AppAgent join (cor:dmo:050:03) that answers "which Agents are installed in this App?".
Package approvalhash implements the server's versioned approval hash for a node's reader-visible title, abstract, and content (server #1591).
Package approvalhash implements the server's versioned approval hash for a node's reader-visible title, abstract, and content (server #1591).
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).
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).
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.
access
Package access implements `hadron access` — inspecting who can do what.
Package access implements `hadron access` — inspecting who can do what.
admin
Package admin implements `hadron admin ...`: audit reads that organization admins and platform admins use.
Package admin implements `hadron admin ...`: audit reads that organization admins and platform admins use.
agent
Package agent implements `hadron agent ...` — agent lifecycle management.
Package agent implements `hadron agent ...` — agent lifecycle management.
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.
aiconfig
Package aiconfig implements `hadron ai-config ...` — the AI service config management surface: masked reads, CRUD, endpoints and saved probes.
Package aiconfig implements `hadron ai-config ...` — the AI service config management surface: masked reads, CRUD, endpoints and saved probes.
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`).
app
Package app implements `hadron app ...`.
Package app implements `hadron app ...`.
asset
Package asset implements `hadron asset …` — the CLI surface for uploaded files (spec 006 / cor:dmo:060:10, server #359).
Package asset implements `hadron asset …` — the CLI surface for uploaded files (spec 006 / cor:dmo:060:10, server #359).
auth
Package auth implements `hadron auth ...`.
Package auth implements `hadron auth ...`.
automation
Package automation implements `hadron automation ...`: the owner-facing approval of an App's schedules and webhooks (cli#1071, hadron-server#2441).
Package automation implements `hadron automation ...`: the owner-facing approval of an App's schedules and webhooks (cli#1071, hadron-server#2441).
billing
Package billing is the metering surface (cli#215): provider rate rows and an org's credit balance and ledger (reads), and the platform-admin writes that add a rate row or grant credit (billing_write.go).
Package billing is the metering surface (cli#215): provider rate rows and an org's credit balance and ledger (reads), and the platform-admin writes that add a rate row or grant credit (billing_write.go).
bootcompile
Package bootcompile implements the three manager-only boot-prompt compile commands.
Package bootcompile implements the three manager-only boot-prompt compile commands.
calendar
Package calendar implements the calendar commands; authorization belongs to the server.
Package calendar implements the calendar commands; authorization belongs to the server.
channel
Package channel implements `hadron channel` — the chat rooms of spec 049 Phase 4 (hadron-cli#593).
Package channel implements `hadron channel` — the chat rooms of spec 049 Phase 4 (hadron-cli#593).
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").
chatsearch
Package chatsearch is the output half shared by `team chat search` and `channel search` (hadron-cli#1327): one page of references into a chat's history.
Package chatsearch is the output half shared by `team chat search` and `channel search` (hadron-cli#1327): one page of references into a chat's history.
coding
Package coding lints the coding-workflow graph: the review:* checklist tree and the preflight router.
Package coding lints the coding-workflow graph: the review:* checklist tree and the preflight router.
comment
Package comment implements the command layer for governed comment operations.
Package comment implements the command layer for governed comment operations.
configcmd
Package configcmd implements `hadron config ...`.
Package configcmd implements `hadron config ...`.
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).
decision
Package decision is the `hadron decision` group: decision logs and the decisions asked in them (hadron-server #1641; hadron-cli#1335).
Package decision is the `hadron decision` group: decision logs and the decisions asked in them (hadron-server #1641; hadron-cli#1335).
discovery
Package discovery exposes cross-entity discovery and public catalogue reads.
Package discovery exposes cross-entity discovery and public catalogue reads.
drive
Package drive exposes bounded Drive reads and an explicit raw stdout export.
Package drive exposes bounded Drive reads and an explicit raw stdout export.
edge
Package edge implements `hadron edge ...` — directed, labeled connections between two nodes.
Package edge implements `hadron edge ...` — directed, labeled connections between two nodes.
email
Package email exposes the bounded organization-admin email connection inventory.
Package email exposes the bounded organization-admin email connection inventory.
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).
ha
Package ha implements `hadron ha ...` — the Home Assistant instance registry (hadrontool-home-assistant; hadron-server#640).
Package ha implements `hadron ha ...` — the Home Assistant instance registry (hadrontool-home-assistant; hadron-server#640).
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).
memory
Package memory implements `hadron memory ...`.
Package memory implements `hadron memory ...`.
node
Package node implements `hadron node ...`.
Package node implements `hadron node ...`.
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).
orca
Package orca is the `hadron orca` group: integrations that read the Orca terminal app (cli#1187).
Package orca is the `hadron orca` group: integrations that read the Orca terminal app (cli#1187).
org
Package org implements `hadron org ...` — organization and membership management.
Package org implements `hadron org ...` — organization and membership management.
policy
Package policy implements `hadron policy ...` — the standing action-policy chain (cor:acl:040:02, hadron-server #510; CLI #1343).
Package policy implements `hadron policy ...` — the standing action-policy chain (cor:acl:040:02, hadron-server #510; CLI #1343).
quota
Package quota implements `hadron quota ...` — the per-scope daily quota counters and their enforced limits (hadron-server #510; CLI #1343).
Package quota implements `hadron quota ...` — the per-scope daily quota counters and their enforced limits (hadron-server #510; CLI #1343).
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).
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).
schedule
Package schedule implements `hadron schedule ...` — recurring headless-run or one-shot triggers (spec-040, cor:agt:010, D-2026-07-04-E).
Package schedule implements `hadron schedule ...` — recurring headless-run or one-shot triggers (spec-040, cor:agt:010, D-2026-07-04-E).
scope
Package scope implements `hadron scope` — named search scopes ("lenses") over a set of memories (spec 049 Phase 2; hadron-cli#578).
Package scope implements `hadron scope` — named search scopes ("lenses") over a set of memories (spec 049 Phase 2; hadron-cli#578).
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.
servedprompt
Package servedprompt renders the immutable scalar-only served record.
Package servedprompt renders the immutable scalar-only served record.
serverinfo
Package serverinfo implements `hadron server-info`.
Package serverinfo implements `hadron server-info`.
skill
Package skill implements `hadron skill ...` — the maintenance surface for the skill files exported from runnable task nodes (hadron-cli#580, design in docs/plans/skill-command-group.md).
Package skill implements `hadron skill ...` — the maintenance surface for the skill files exported from runnable task nodes (hadron-cli#580, design in docs/plans/skill-command-group.md).
slack
Package slack exposes the read-only Slack connection metadata surface.
Package slack exposes the read-only Slack connection metadata surface.
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.
team
Package team implements `hadron team ...` — the team-coordination surface (#369, re-keyed to the Worker model in #428 / hadron-server#974).
Package team implements `hadron team ...` — the team-coordination surface (#369, re-keyed to the Worker model in #428 / hadron-server#974).
ticker
Package ticker exposes the server's named ticker schedules.
Package ticker exposes the server's named ticker schedules.
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).
usage
Package usage exposes read-only provider usage metadata and counts.
Package usage exposes read-only provider usage metadata and counts.
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).
version
Package version implements `hadron version`.
Package version implements `hadron version`.
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).
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.
Package config reads and writes ~/.config/hadron/config.toml.
Package config reads and writes ~/.config/hadron/config.toml.
Package coveragematrix reads the CLI coverage matrix, internal/api/coverage-matrix.txt (hadron-cli#1334, #66): every Query and Mutation field hadron-server exposes, mapped to the command that reaches it, the issue that tracks the gap, or an exclusion with its reason (cor:api:240:02).
Package coveragematrix reads the CLI coverage matrix, internal/api/coverage-matrix.txt (hadron-cli#1334, #66): every Query and Mutation field hadron-server exposes, mapped to the command that reaches it, the issue that tracks the gap, or an exclusion with its reason (cor:api:240:02).
Package delivery is one batch's deliver-and-confirm transaction (cli#907, C1), shared by the host poller and C2's posting CLI (#908).
Package delivery is one batch's deliver-and-confirm transaction (cli#907, C1), shared by the host poller and C2's posting CLI (#908).
Package exitcode defines the hadron CLI's stable, documented exit codes.
Package exitcode defines the hadron CLI's stable, documented exit codes.
Package healthsched renders and manages the user-level scheduler entry that runs `hadron team health sweep` on a host: a systemd user timer, a crontab line or a launchd agent.
Package healthsched renders and manages the user-level scheduler entry that runs `hadron team health sweep` on a host: a systemd user timer, a crontab line or a launchd agent.
Package hostpoller is the host side of Hadron's host operations (hadron-cli#831, cor:agt:070): a poller that registers the workers this host can launch, collects the operations issued to it, carries out only the closed set of five, and reports every outcome.
Package hostpoller is the host side of Hadron's host operations (hadron-cli#831, cor:agt:070): a poller that registers the workers this host can launch, collects the operations issued to it, carries out only the closed set of five, and reports every outcome.
Package modelreport reads the model a native agent session is running from that session's transcript file, for `hadron team session sync-model` (hadron-cli#995, #2252 slice B1).
Package modelreport reads the model a native agent session is running from that session's transcript file, for `hadron team session sync-model` (hadron-cli#995, #2252 slice B1).
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.
Package orcaterm is the terminal half of chat delivery (cli#907, C1): the bounded `orca` runner, the four terminal calls delivery may make, and the screen checks that decide whether a composer may be typed into.
Package orcaterm is the terminal half of chat delivery (cli#907, C1): the bounded `orca` runner, the four terminal calls delivery may make, and the screen checks that decide whether a composer may be typed into.
Package output renders command results as human-readable text or JSON.
Package output renders command results as human-readable text or JSON.
Package secretfile creates a file that is going to hold a secret, so that the file is never wider than 0600 and never reached through a symlink as its final component (cli#1223).
Package secretfile creates a file that is going to hold a secret, so that the file is never wider than 0600 and never reached through a symlink as its final component (cli#1223).
Package skilldoc is the pure half of `hadron skill` (hadron-cli#580): the contract between a Hadron task node and the skill file exported from it.
Package skilldoc is the pure half of `hadron skill` (hadron-cli#580): the contract between a Hadron task node and the skill file exported from it.
Package terminalstatus is the `terminal-status@1` output contract of `hadron orca terminal status` (cli#1187) and the dark rule behind it.
Package terminalstatus is the `terminal-status@1` output contract of `hadron orca terminal status` (cli#1187) and the dark rule behind it.
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).

Jump to

Keyboard shortcuts

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