Skip to main content

Module agent_package

Module agent_package 

Source
Expand description

Repository-native agent packages.

An agent package is deliberately data, not executable plugin code: .supercode/package.toml describes an agent/ folder, capability requirements, workspace storage, and frontend-neutral JSON contributions. This lets a repository deepen its integration with any Supercode frontend without shipping another agent loop, CLI, MCP server, or UI bundle.

Structs§

AgentContribution
A portable, inert contribution a frontend may choose to render.
AgentFolder
The resolved instruction and skill roots of an agent package.
AgentPackage
A fully resolved, validated repository agent package.
AgentPackageCapabilities
Capability requirements declared by an agent package.
AgentPackageResource
Browser-safe content loaded for a contribution’s declared storage resource.
AgentPackageStorage
Durable workspace storage requested by an agent package.

Constants§

AGENT_PACKAGE_MANIFEST
Repository-relative location of an agent package manifest.
AGENT_PACKAGE_SCHEMA_VERSION
Current manifest schema version.
CONTRIBUTION_SCHEMA
Stable contribution envelope understood by Supercode frontends.
RESOURCE_SCHEMA
Stable envelope for one resolved contribution resource.

Functions§

declared_resource_contribution_ids
Contribution ids that declare a storage-scoped resource, in source order.
load_workspace_agent_package
Load the agent package rooted at workspace.
read_contribution_resource
Read one contribution’s declared resource from inside package storage.