internal/

directory
v0.7.0-rc.24 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package agents knows how each supported coding agent reports to Conductor: the hook files Conductor generates for it, the flags and environment that wire them in at launch, and how to install them into the agent's own configuration when an admin asks.
Package agents knows how each supported coding agent reports to Conductor: the hook files Conductor generates for it, the flags and environment that wire them in at launch, and how to install them into the agent's own configuration when an admin asks.
Package api exposes the HTTP and WebSocket surface of `conductor serve`.
Package api exposes the HTTP and WebSocket surface of `conductor serve`.
Package brakeman is the record of Brakeman, Conductor's sidekick agent (docs/plans/brakeman.md, Program items BK0 to BK3): its configuration, the requests people make of it, the briefs its turns hand back and the evidence references they cite, kept as JSON documents in the data directory's brakeman/ (0700).
Package brakeman is the record of Brakeman, Conductor's sidekick agent (docs/plans/brakeman.md, Program items BK0 to BK3): its configuration, the requests people make of it, the briefs its turns hand back and the evidence references they cite, kept as JSON documents in the data directory's brakeman/ (0700).
Package capacity is what Conductor knows of the logins its agents use and of their usage (docs/plans/capacity.md, Program item AC1): account references kept in capacity/accounts.json, the record of the agent versions a usage read may start kept in capacity/versions.json, and the readings of an agent's usage, kept in memory only (Cache) and shown as a View.
Package capacity is what Conductor knows of the logins its agents use and of their usage (docs/plans/capacity.md, Program item AC1): account references kept in capacity/accounts.json, the record of the agent versions a usage read may start kept in capacity/versions.json, and the readings of an agent's usage, kept in memory only (Cache) and shown as a View.
Package catalog defines the launchable agent commands.
Package catalog defines the launchable agent commands.
Package certs keeps a TLS listener's certificate: obtained from a CA through ACME (go-acme/lego) for the server's public address or its domains, stored in the data directory, renewed on its own, and the challenges answered on the listener itself (tls-alpn-01) or the plain one (http-01); or read from files of the person's own.
Package certs keeps a TLS listener's certificate: obtained from a CA through ACME (go-acme/lego) for the server's public address or its domains, stored in the data directory, renewed on its own, and the challenges answered on the listener itself (tls-alpn-01) or the plain one (http-01); or read from files of the person's own.
Package cli parses command-line flags and dispatches subcommands.
Package cli parses command-line flags and dispatches subcommands.
Package config loads the server configuration from an optional JSON file, applies CONDUCTOR_* environment overrides, fills defaults and validates.
Package config loads the server configuration from an optional JSON file, applies CONDUCTOR_* environment overrides, fills defaults and validates.
Package crew holds saved crews: named teams of agents, each member with a role prompt, extra arguments and a start condition, that a run launches together.
Package crew holds saved crews: named teams of agents, each member with a role prompt, extra arguments and a start condition, that a run launches together.
ledger
Package ledger keeps the managed runs' truth: one SQLite database per data directory, every transition of a run one transaction committed before the side effect it precedes, the events of a run in sequence, the receipts of the commands that caused them, and the evidence of its checks.
Package ledger keeps the managed runs' truth: one SQLite database per data directory, every transition of a run one transaction committed before the side effect it precedes, the events of a run in sequence, the receipts of the commands that caused them, and the evidence of its checks.
Package dispatch is the store of Dispatch, Conductor's own work tracking (docs/plans/dispatch.md, Program item DS1): projects, tickets with stable keys, their discussion and their history, in one SQLite database of its own in the data directory (<dataDir>/dispatch/dispatch.sqlite), local first, with no account and no network.
Package dispatch is the store of Dispatch, Conductor's own work tracking (docs/plans/dispatch.md, Program item DS1): projects, tickets with stable keys, their discussion and their history, in one SQLite database of its own in the data directory (<dataDir>/dispatch/dispatch.sqlite), local first, with no account and no network.
Package export is the data directory as one archive and back (docs/plans/ext.md, Program item C6): Write puts a data directory into a zip file, consistent while a server writes it, and Install (Restore) checks one and puts it into a data directory with no server data, on any machine, where the next `conductor serve` opens it as its own.
Package export is the data directory as one archive and back (docs/plans/ext.md, Program item C6): Write puts a data directory into a zip file, consistent while a server writes it, and Install (Restore) checks one and puts it into a data directory with no server data, on any machine, where the next `conductor serve` opens it as its own.
Package gitcli runs the git binary for the server and conductor host: the working directory's status with each file's added and removed lines, a file at a revision, and the helper the crew engine's worktrees use.
Package gitcli runs the git binary for the server and conductor host: the working directory's status with each file's added and removed lines, a file at a revision, and the helper the crew engine's worktrees use.
gitclitest
Package gitclitest makes repositories for the tests of the git Conductor runs: a repository whose own configuration names a program at each place git can start one (hooks, the file system monitor, the pager, external diff and text conversion, clean, smudge and process filters, the editor, credentials, transports, signatures), some of it through include and includeIf, each program a script that leaves a mark when it runs.
Package gitclitest makes repositories for the tests of the git Conductor runs: a repository whose own configuration names a program at each place git can start one (hooks, the file system monitor, the pager, external diff and text conversion, clean, smudge and process filters, the editor, credentials, transports, signatures), some of it through include and includeIf, each program a script that leaves a mark when it runs.
Package gitrepo reads a repository's history with go-git (design round 12, F5): the commits on the checked-out branch since a time or a base, and one commit's files with their added and removed lines against its first parent.
Package gitrepo reads a repository's history with go-git (design round 12, F5): the commits on the checked-out branch since a time or a base, and one commit's files with their added and removed lines against its first parent.
Package history is the index of Conductor's history and its search (docs/plans/history.md, Program item HS1): one SQLite database, history/index.sqlite in the data directory, of the entries its caller tells it, each under the source it was read from, with the links between their evidence references, searched with FTS5.
Package history is the index of Conductor's history and its search (docs/plans/history.md, Program item HS1): one SQLite database, history/index.sqlite in the data directory, of the entries its caller tells it, each under the source it was read from, with the links between their evidence references, searched with FTS5.
Package hostagent implements `conductor host`: it runs a command in a local PTY, registers the session with a conductor server over a control WebSocket, and serves browser viewers over WebRTC data channels or, as a fallback, through the server relay.
Package hostagent implements `conductor host`: it runs a command in a local PTY, registers the session with a conductor server over a control WebSocket, and serves browser viewers over WebRTC data channels or, as a fallback, through the server relay.
Package journal is the session journal (docs/plans/history.md, Program item HS1): one record of every session, kept as a JSON document in the data directory's history/sessions/<id>.json (the directory 0700, each file 0600) from the session's start: its agent and that agent's own session, its host and where it ran, its folder and commits, its launch, its crew, and the evidence Conductor saw pass through it (the lines Conductor typed into it, its questions and how each ended, its chat, what its agent reported, the files it reported touching).
Package journal is the session journal (docs/plans/history.md, Program item HS1): one record of every session, kept as a JSON document in the data directory's history/sessions/<id>.json (the directory 0700, each file 0600) from the session's start: its agent and that agent's own session, its host and where it ran, its folder and commits, its launch, its crew, and the evidence Conductor saw pass through it (the lines Conductor typed into it, its questions and how each ended, its chat, what its agent reported, the files it reported touching).
Package notify implements `conductor notify`: a tiny client agents (or their hooks) run inside a Conductor session to report whether they are waiting for a human.
Package notify implements `conductor notify`: a tiny client agents (or their hooks) run inside a Conductor session to report whether they are waiting for a human.
Package nvim embeds the real Neovim for the editor (design round 12, F8): one `nvim --embed` per open file on the machine that runs the session, the person's own config loaded, driven over msgpack-rpc by the official client.
Package nvim embeds the real Neovim for the editor (design round 12, F8): one `nvim --embed` per open file on the machine that runs the session, the person's own config loaded, driven over msgpack-rpc by the official client.
Package opencore checks the rules that keep this repository open core (CONTRIBUTING.md, The open-core rules; docs/plans/ext.md, The lint) on the module's source, as a test CI fails on: no module of the rocksolidlabs organization but this one is imported or required, no build constraint names a feature tag, ext/ stays on the standard library so that another module can take its types without this module's internals (ext/local's native Runtime takes the two runners it is made of, internal/pty and internal/proc, and nothing else), and no code outside ext/ asks the entitlement source.
Package opencore checks the rules that keep this repository open core (CONTRIBUTING.md, The open-core rules; docs/plans/ext.md, The lint) on the module's source, as a test CI fails on: no module of the rocksolidlabs organization but this one is imported or required, no build constraint names a feature tag, ext/ stays on the standard library so that another module can take its types without this module's internals (ext/local's native Runtime takes the two runners it is made of, internal/pty and internal/proc, and nothing else), and no code outside ext/ asks the entitlement source.
Package paste is the blob format of a paste invite: an SDP with every ICE candidate gathered (no trickle), deflated and base64url-encoded behind a version prefix, which people send through any messenger.
Package paste is the blob format of a paste invite: an SDP with every ICE candidate gathered (no trickle), deflated and base64url-encoded behind a version prefix, which people send through any messenger.
Package proc runs one command outside a PTY, bounded: an argv array and never a shell line, a directory, a timeout, the output capped at both ends, what the command leaves in its process group ended with it.
Package proc runs one command outside a PTY, bounded: an argv array and never a shell line, a directory, a timeout, the output capped at both ends, what the command leaves in its process group ended with it.
Package proto defines the binary framing and JSON messages shared by the server, the host agent and the browser (mirrored in web/app/utils/protocol.ts and documented in docs/protocol.md).
Package proto defines the binary framing and JSON messages shared by the server, the host agent and the browser (mirrored in web/app/utils/protocol.ts and documented in docs/protocol.md).
Package pty starts commands attached to a pseudo-terminal and manages their lifecycle.
Package pty starts commands attached to a pseudo-terminal and manages their lifecycle.
Package quoted writes text that was written outside Conductor (a GitHub issue's title, its description, its steps to reproduce) for an agent to read: inside Conductor's own words, which say where the text came from and that it is untrusted input, in a form the text cannot end (Program item IN1a, docs/plans/tracker-linking.md, "internal/crew").
Package quoted writes text that was written outside Conductor (a GitHub issue's title, its description, its steps to reproduce) for an agent to read: inside Conductor's own words, which say where the text came from and that it is untrusted input, in a form the text cannot end (Program item IN1a, docs/plans/tracker-linking.md, "internal/crew").
Package reach finds out how the server can be reached from outside its network and, when a router allows it, makes it so: the public address by STUN, a port mapping on the gateway through UPnP IGD, PCP or NAT-PMP, and a self-check through the public URL.
Package reach finds out how the server can be reached from outside its network and, when a router allows it, makes it so: the public address by STUN, a port mapping on the gateway through UPnP IGD, PCP or NAT-PMP, and a self-check through the public URL.
Package session owns the terminal session model shared by the server and the host agent: scrollback, subscriber fan-out, role enforcement, resize policy and bounded file reads.
Package session owns the terminal session model shared by the server and the host agent: scrollback, subscriber fan-out, role enforcement, resize policy and bounded file reads.
sessiontest
Package sessiontest supports the tests of packages that run a session.Local over a process of their own: FakeProc stands in for the PTY process.
Package sessiontest supports the tests of packages that run a session.Local over a process of their own: FakeProc stands in for the PTY process.
Package share issues and resolves share-link tokens.
Package share issues and resolves share-link tokens.
Package signal brokers hosted sessions: it tracks connected `conductor host` processes, forwards WebRTC signaling between viewers and hosts, and relays terminal frames when a data channel cannot be established.
Package signal brokers hosted sessions: it tracks connected `conductor host` processes, forwards WebRTC signaling between viewers and hosts, and relays terminal frames when a data channel cannot be established.
Package store persists small JSON documents in the server data directory: a directory of JSON documents, which may hold directories of its own (Sub), and a few plain files (WriteFile).
Package store persists small JSON documents in the server data directory: a directory of JSON documents, which may hold directories of its own (Sub), and a few plain files (WriteFile).
Package tracker is what an external tracker is to Conductor (docs/plans/tracker-linking.md, Program item IN1a): the adapter contract a system's adapter implements (Adapter), the records a read gives (Item, CheckSet, Target, Comment, Account), the credential an adapter alone opens (Credential), the typed errors the API maps to its answers, and the rules shared by every adapter: a reference's parsing (ref.go), an item's steps to reproduce (repro.go) and the hosts an image or a job's log may be fetched from (images.go).
Package tracker is what an external tracker is to Conductor (docs/plans/tracker-linking.md, Program item IN1a): the adapter contract a system's adapter implements (Adapter), the records a read gives (Item, CheckSet, Target, Comment, Account), the credential an adapter alone opens (Credential), the typed errors the API maps to its answers, and the rules shared by every adapter: a reference's parsing (ref.go), an item's steps to reproduce (repro.go) and the hosts an image or a job's log may be fetched from (images.go).
github
Package github is the GitHub adapter of internal/tracker (docs/plans/tracker-linking.md, Program item IN1a): GitHub's REST API over net/http and encoding/json, no client library, and GraphQL, a JSON POST over the same client, for the three calls that address an item by its node id (Resolve, Comment, Close; graphql.go).
Package github is the GitHub adapter of internal/tracker (docs/plans/tracker-linking.md, Program item IN1a): GitHub's REST API over net/http and encoding/json, no client library, and GraphQL, a JSON POST over the same client, for the three calls that address an item by its node id (Resolve, Comment, Close; graphql.go).
github/githubtest
Package githubtest is a fake GitHub for the tracker's tests: one httptest TLS server that every host's requests reach (Transport dials it whatever the address, so a fixture keeps github.com's hosts: the API host, the image hosts, a log's storage host), and a plain one for the loopback hosts the e2e harness uses.
Package githubtest is a fake GitHub for the tracker's tests: one httptest TLS server that every host's requests reach (Transport dials it whatever the address, so a fixture keeps github.com's hosts: the API host, the image hosts, a log's storage host), and a plain one for the loopback hosts the e2e harness uses.
Package version exposes build metadata injected through -ldflags.
Package version exposes build metadata injected through -ldflags.
Package web serves the generated Nuxt single-page app embedded at build time.
Package web serves the generated Nuxt single-page app embedded at build time.

Jump to

Keyboard shortcuts

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