Documentation
¶
Overview ¶
Package webui serves the embedded, workspace-free shell and trusted fragments.
Index ¶
Constants ¶
const CSP = "" /* 188-byte string literal not displayed */
Variables ¶
var ErrAssetsInvalid = errors.New("invalid embedded vendor assets")
Functions ¶
func RenderMarkdown ¶
RenderMarkdown is the sole trusted-HTML conversion. Raw HTML is disabled in goldmark; the independent allowlist excludes images and all active attributes. Relative links remain inert until resolved against canonical identities.
Types ¶
type Dependencies ¶
type Dependencies struct {
EmbeddingsEnabled bool
Operator *app.OperatorService
Retrieve func(context.Context, string, []string) (knowlapi.RetrieveResult, error)
OperationStatus func(domain.OperationStatus) string
Operation func(context.Context, string) (knowlapi.OperationResult, error)
}
Dependencies are read-only presentation inputs. They never expose writers.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(dependencies Dependencies) (*Handler, error)