plugin

package
v1.801.360 Latest Latest
Warning

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

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

Documentation

Overview

Package plugin carries the fleet's build-time PROJECTIONS into the host: what each subsystem serves, known without running it.

Both are a function of the plugin's own router and typed-op registry, so both are known when the plugin is BUILT: `<app> describe plugin/<app>` writes mcp.json and openapi.json from one mount of one router (describe.go). This package embeds those files. The tool lists go to zip as Plugin.Tools, which is what lets the host answer tools/list for all 113 subsystems without starting a single one; the specs are what the host weaves into the fleet document it serves at /v1/openapi.json. Same invariant, two consumers: MCPTools() and the router are in-process, and a host cannot ask a plugin that is not running.

It exists as its own leaf package for one reason: go:embed cannot reach outside its own directory, so the bytes must be embedded from HERE, and cmd/cloud must stay light. This file imports embed and nothing else — no apps, no cloud root — so `go list -deps ./cmd/cloud` gains exactly one package and still links no subsystem.

The catalogue can only be INCOMPLETE, never wrong: the child's own registry answers the call, so a name the host still lists but the child no longer serves yields that child's -32602 rather than a mis-dispatch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Spec

func Spec(app string) []byte

Spec is app's own OpenAPI subset: the document its binary projected from its own router at build time. Nil for an app that ships none.

func Tools

func Tools(app string) []byte

Tools is app's MCP catalogue: the JSON array its own App.MCPTools() projected at build time, ready to hand to zip.Plugin.Tools. Nil for an app that ships none, which is exactly how a plugin opts out of the composed door.

Types

This section is empty.

Directories

Path Synopsis
Command gen-app-cmds keeps the per-app command stubs in step with the fleet manifest.
Command gen-app-cmds keeps the per-app command stubs in step with the fleet manifest.
Command kmsreseal is the CR-driven re-seal migration tool for embedding the fleet KMS into cloud (#79).
Command kmsreseal is the CR-driven re-seal migration tool for embedding the fleet KMS into cloud (#79).
Command migrate-pg-to-sqlite copies a legacy `hanzo_cloud` PostgreSQL database into per-(org, user) SQLite files served by the Hanzo cloud orchestrator (HIP-0106).
Command migrate-pg-to-sqlite copies a legacy `hanzo_cloud` PostgreSQL database into per-(org, user) SQLite files served by the Hanzo cloud orchestrator (HIP-0106).
o11y is the observability subsystem built as its OWN binary.
o11y is the observability subsystem built as its OWN binary.
Command smoke is the durable, authenticated functional smoke for the unified cloud API (api.hanzo.ai).
Command smoke is the durable, authenticated functional smoke for the unified cloud API (api.hanzo.ai).

Jump to

Keyboard shortcuts

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