Documentation
¶
Overview ¶
Package bundle defines the content-bundle serialization format used by pack export/import (file-based CLI) and admin export/import (HTTP). These are wire types, not domain types — they exist to ship Soul / Persona / Rule / Brain content between systems with a stable schema.
Index ¶
Constants ¶
View Source
const SchemaVersion = 1
SchemaVersion is the current ContentBundle schema version. Import rejects bundles whose SchemaVersion does not match.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleBrain ¶
type BundlePersona ¶
type BundleRule ¶
type BundleSoul ¶
type BundleSoul struct {
Content string `json:"content"`
}
type BundleState ¶
type ContentBundle ¶
type ContentBundle struct {
SchemaVersion int `json:"schema_version"`
Souls map[models.Slug]BundleSoul `json:"souls"`
Personas map[models.Slug]BundlePersona `json:"personas"`
Rules map[models.Slug]BundleRule `json:"rules"`
Brains map[models.Slug]BundleBrain `json:"brains"`
State *BundleState `json:"state,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.