catalogembed

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package catalogembed composes manifest YAML into the SDK catalog embed schema. Server-module only — imports app/* and writes sdk/catalog/catalog.json.

Index

Constants

This section is empty.

Variables

View Source
var SDKAdapters = map[string]struct{}{
	"openai":           {},
	"openai_responses": {},
	"anthropic":        {},
	"gemini":           {},
}

SDKAdapters is the adapter-name set the public SDK client supports today.

Functions

func Compose

func Compose(docs []manifest.Document, generatedAt time.Time) (*sdkcatalog.Catalog, error)

Compose loads manifest documents into a catalog snapshot and flattens it to the SDK embed schema. Cross-refs resolve via minted ids (no Postgres).

func MarshalJSON

func MarshalJSON(c *sdkcatalog.Catalog) ([]byte, error)

MarshalJSON encodes c deterministically (sorted hosts and bindings).

func ValidateAdapters

func ValidateAdapters(c *sdkcatalog.Catalog) error

ValidateAdapters returns an error if any binding uses an adapter name outside SDKAdapters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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