cyber-agentkit reference check
Check references, each composed as load composes it: an interface document against its shape, an implementation against its interface, a capability reference (<system>.capabilities) against its System, Detect, and Verified opening, a blueprint interface (an id ending .blueprints) for cardinality many, a blueprint against its <system>.capabilities and the features its Needs: lines name, a contract (a contract: block, named <id>.contract) for its parties in order, no version line in its body, and its own id or version once customized, every **Partial.** or **Unsupported.** mark for the sentence after it, and every document for the defects composing it raises. With no names, checks every name found. Every warning load raises is reported. A failure is an entry in failed, not an error; a warning never fails a check.
Synopsis
Section titled “Synopsis”cyber-agentkit reference check [arguments] [options]Arguments
Section titled “Arguments”| Argument | Type | Required | Description |
|---|---|---|---|
names |
string[] | no | Reference names, without the .md extension; <plugin>/<name> builds that plugin’s own stack. |
Options
Section titled “Options”| Option | Type | Required | Description |
|---|---|---|---|
--root |
string | no | The repository root: its .agents/references/ is the repo tier, and its package.json names the dependency plugins. Defaults to the nearest folder at or above the current directory holding .git, else the current directory. |
--plugin |
string | no | A plugin’s source folder in this repository: check the references its references/ ships, each as <plugin>/<name> through the plugin’s own stack (its extends, aliases, and its skills’ defaults), in place of an installed copy, with no repo, user, or project tier. With names, only those. |
--since |
string | no | The version guard: compare each contract file in the repository with its copy at this git ref, and fail one whose text changed while its version did not go up. |
--trace |
boolean | no | Add every entry checked, with its kind and unsupported and partial sections. |
Every command also takes the global options.
Examples
Section titled “Examples”Check every reference.
cyber-agentkit reference checkThe answer gives the failures, if any, the warnings passed on, and the count that pass. The command exits 0 when it answered, even when a check fails.
passed: 4Check the references a plugin’s source folder ships.
cyber-agentkit reference check --plugin packages/my-pluginEach file in the folder’s references/ is checked as <plugin>/<name>, composed through the plugin’s own stack, though the plugin is not installed. No repo or user file joins. Exits with code 1.
error: <project>/packages/my-plugin holds no plugin manifest, so it is not a plugin folder.code: folder-invalid