webui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package webui embeds and serves the local PowerContext web interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(mux *http.ServeMux, options Options) error

Mount registers only the frozen Dashboard surface on mux. The caller keeps ownership of authentication, request IDs, API fallback, and listener state.

Types

type Options

type Options struct {
	DashboardEnabled       bool
	Scopes                 []Scope
	HandoffReportEnabled   bool
	AuthenticationRequired bool
	AgentSkillTargets      []skill.AgentSkillTarget
	SkillProjections       SkillProjectionOperations
}

type Scope

type Scope struct {
	ScopeID     string `json:"scope_id"`
	DisplayName string `json:"display_name"`
}

Scope is one explicit Server scope exposed by the personal Dashboard. It is deliberately configuration-owned; the Dashboard never enumerates scope identifiers from persistence.

type SkillProjectionOperations

type SkillProjectionOperations interface {
	GetCandidate(context.Context, string, string) (review.Snapshot, error)
	GetSkill(context.Context, string, artifact.Ref) (skill.Skill, error)
	ListExternalSkills(context.Context, string, bool) ([]skill.Resolution, error)
	ScanExternalSkills(context.Context, string) (skill.ProviderScan, error)
}

Jump to

Keyboard shortcuts

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