Documentation
¶
Overview ¶
Package workbench composes the existing Copilot service for caller-owned hosts.
Index ¶
- func CanonicalRepositoryRoot(ctx context.Context, path string) (string, error)
- func MountUI(engine gin.IRouter, directory string)
- type Option
- func WithBridge(bridge copilotadapter.ICopilotBridge) Option
- func WithKanbanOrigins(origins ...string) Option
- func WithLogger(logger *slog.Logger) Option
- func WithRepository(path string) Option
- func WithShell(path string) Option
- func WithTaskContinuity(tasks *workcontinuity.Continuity) Option
- func WithWorktrees(path string) Option
- type Workbench
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalRepositoryRoot ¶
Types ¶
type Option ¶
type Option func(config *settings)
func WithBridge ¶
func WithBridge(bridge copilotadapter.ICopilotBridge) Option
func WithKanbanOrigins ¶
WithKanbanOrigins mounts the live board on the same router as the adapter. The host supplies its actual allowed browser origins; no listener is created.
func WithLogger ¶
func WithRepository ¶
func WithTaskContinuity ¶
func WithTaskContinuity(tasks *workcontinuity.Continuity) Option
func WithWorktrees ¶
type Workbench ¶
type Workbench struct {
Adapter *copilotadapter.CopilotAdapter
Store *store.PostgresStore
// contains filtered or unexported fields
}
Workbench shares one adapter and its SQLC store between HTTP and inspection. The caller owns the database and CLI bridge and mounts Adapter.Register.
func NewWorkbench ¶
NewWorkbench initializes durable stores and composes existing service libraries. It never starts a listener or a provider process, or restores sessions implicitly.
func (*Workbench) Close ¶
Close drains browser subscriptions before closing their adapter. The caller continues to own the database and provider bridge.