catalog

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package catalog checks an organization's catalog: a repository laid out as a workspace's .agents folder, whose agents, rules, skills, guardrails, commands, MCP servers and connectors every person's Blitz works under (spec_053_enterprise EN-30, EN-31). Each file is read as Blitz reads it, by the engine's own parsers, so a file Blitz would refuse can't be published. Each item may say how it applies: lock (locked, or a default a workspace or person may override) and groups (who it's for; everyone when it names none).

agents/<name>.md          an agent
rules/<name>.md           a rule
skills/<name>/SKILL.md    a skill, and its other files beside it
guardrails/<name>.md      a guardrail
commands/<name>.md        a slash command
workflows/<name>.flow.yaml  a workflow
evals/<name>.md           an eval (the cases an agent or skill is
                          checked against; an organization's stay on
                          its service)
mcp/<name>.toml           an MCP server: [mcp.servers]'s fields, with
                          secrets as {secrets:<name>}, never values
connectors/…/<name>.yaml  a connector's descriptor or connection, its
                          lock and groups in "# lock:" and "# groups:"
                          comments

Index

Constants

View Source
const (
	Agent     = "agent"
	Rule      = "rule"
	Skill     = "skill"
	SkillFile = "skill_file" // a file in a skill's folder beside SKILL.md
	Guardrail = "guardrail"
	Command   = "command"
	Workflow  = "workflow"
	Eval      = "eval"
	MCP       = "mcp"
	Connector = "connector"
)

Kinds of item.

View Source
const (
	// Locked applies, and can't be changed or switched off.
	Locked = "locked"
	// Default applies unless a workspace or the person overrides it.
	Default = "default"
)

How an item applies (EN-31).

Variables

This section is empty.

Functions

func Of

func Of(p string) (kind, name string, ok bool)

Of is what kind of item a path in the repository is, and its name; ok is false for a path that isn't an item (a README, policy.toml).

func Place

func Place(p string, data []byte, lock string, groups []string) ([]byte, error)

Place sets how the item at p (a path in the catalog) applies: its lock (Locked or Default) and groups (none: everyone), in a Markdown file's front matter, made when it has none, an MCP server's TOML, or a connector's "# lock:" and "# groups:" comments; any other file (a skill's script) is as it was. The rest of the file is kept (spec_053_enterprise EN-36, Publish to organization).

Types

type Item

type Item struct {
	Kind   string   `json:"kind"`
	Name   string   `json:"name"`
	Path   string   `json:"path"`
	Lock   string   `json:"lock"`             // Locked or Default
	Groups []string `json:"groups,omitempty"` // who it's for; everyone when empty
}

Item is a catalog file as an item.

func Check

func Check(p string, data []byte) (Item, []string)

Check reads the file at p (a path in the repository) as Blitz would, and says what's wrong with it: nothing when it can be published.

func (Item) For

func (it Item) For(groups []string) bool

For is whether the item applies to someone in groups.

Jump to

Keyboard shortcuts

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