Documentation
¶
Overview ¶
Package jules is the Jules module (Google's asynchronous coding agent), a cloud-only module: Jules works in Google's cloud on a GitHub repository, and hopsesh reaches it only through Jules Tools, the jules CLI (jules remote list, jules remote pull), signed in as the user. It keeps nothing on any machine, so the file methods come from agent.NoLocal.
Index ¶
- func URL(sid agent.SessionID) string
- type Module
- func (m *Module) Detect(_ context.Context, h agent.Host) (agent.Install, error)
- func (m *Module) FetchCloud(ctx context.Context, h agent.Host, _ agent.Install, sid agent.SessionID, ...) (agent.Fetched, error)
- func (m *Module) ListCloud(ctx context.Context, h agent.Host, _ agent.Install, q agent.CloudQuery) (agent.CloudListing, error)
- func (m *Module) SendCloud(ctx context.Context, h agent.Host, _ agent.Install, r agent.SendRequest) (agent.Sent, error)
- func (*Module) Spec() agent.Spec
- func (m *Module) TestCloud(ctx context.Context, h agent.Host, _ agent.Install, _ string) (agent.CloudTest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Module ¶
Module is the Jules module.
func (*Module) FetchCloud ¶
func (m *Module) FetchCloud(ctx context.Context, h agent.Host, _ agent.Install, sid agent.SessionID, _ agent.FetchTarget) (agent.Fetched, error)
FetchCloud brings a session's code: jules remote pull --session <id> without --apply prints the session's patch (unverified: whether anything precedes it), which the core applies in a new worktree and commits on a branch of its own. The plan, messages and command output stay in the cloud.
func (*Module) ListCloud ¶
func (m *Module) ListCloud(ctx context.Context, h agent.Host, _ agent.Install, q agent.CloudQuery) (agent.CloudListing, error)
ListCloud lists Jules sessions (jules remote list --session). The CLI prints a table whose columns are split by two or more spaces; neither the layout nor its words are documented, so the parser finds the columns by the header's names when it can and by the shape of each cell otherwise. A row it cannot read goes in Errors.
func (*Module) SendCloud ¶
func (m *Module) SendCloud(ctx context.Context, h agent.Host, _ agent.Install, r agent.SendRequest) (agent.Sent, error)
SendCloud starts the session without a terminal (send) and returns it.
func (*Module) TestCloud ¶
func (m *Module) TestCloud(ctx context.Context, h agent.Host, _ agent.Install, _ string) (agent.CloudTest, error)
TestCloud asks Jules for the repositories it is connected to (jules remote list --repo: read-only; it needs the login and an account with Jules) and checks that the CLI still has the commands the module uses. It starts nothing.