daemon

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, socket string, h Handler) error

Types

type AgentMessage

type AgentMessage struct{ Kind, Text string }

type Handler

type Handler func(context.Context, Request) Response

type Lock

type Lock interface{ Close() error }

func Acquire

func Acquire(path string) (Lock, error)

type Request

type Request struct {
	Method, WorkspaceID                                string
	ProjectID, WorkstreamID, MemberID, SessionID, Root string
	// APIBaseURL and DeviceID name the backend a Project being registered
	// lives on, and the device identity this profile uses with it (ADR-074).
	// They travel together, and only workspace registration carries them: a
	// Project joined on a friend's server may be the first thing this profile
	// has ever heard of that server.
	APIBaseURL, DeviceID                                                                string
	Title, IntendedOutcome                                                              string
	ApproachSummary                                                                     string
	Components, Contracts, WaitingOn                                                    []string
	AnticipatedPaths, PlanItemIDs                                                       []string
	IdempotencyKey, Trigger, SinceCursor, CheckpointID, BriefID, Kind, Summary, Outcome string
	Revision, ManifestRevision, ApproximateTokenBudget                                  int64
	Discoveries, ConsideredItemIDs                                                      []string
	Verification                                                                        []VerificationSummary
	AgentVendor, AgentCWD, AgentWorkstreamID, AgentSessionAlias                         string
	AgentEvent, AgentStatus, AgentAction, AgentTool, AgentType, AgentSubagentAlias      string
	AgentPaths                                                                          []string
	// AgentCandidateRoots holds every workspace root a vendor reported, for
	// vendors that report more than one. Only the service knows which of them is
	// registered, so the selection happens there.
	AgentCandidateRoots []string
	// AgentSessionTitle is already-classified title text (ADR-042). It is never
	// raw vendor text: the adapter runs ClassifyCoordinationTitle before this
	// field is populated.
	AgentSessionTitle                         string
	AgentTranscriptPath, AgentVendorSessionID string
	SinceRevision                             int64
	// FocusSeconds bounds how long an agent session stays free of injected
	// coordination. Zero means the service default; the store caps the maximum.
	FocusSeconds int64
}

type Response

type Response struct {
	OK    bool   `json:"ok"`
	Error string `json:"error,omitempty"`
	Data  any    `json:"data,omitempty"`
}

func Call

func Call(ctx context.Context, socket string, req Request) (Response, error)

type VerificationSummary

type VerificationSummary struct {
	State, CheckKind, Label, Summary, AffectedComponent, Source, ObservedAt string
	ManifestRevision                                                        int64
}

Jump to

Keyboard shortcuts

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