Agent Forge

source.schema.json field reference#

Purpose#

A source manifest describes one independently consumable Agent Forge metadata catalog. It may be an Agent/type projection or an all-Agent catalog. It describes metadata endpoints only; it is not a plugin-artifact mirror.

Fields#

FieldPurpose
schemaVersionFixed at 2.
sourceIdStable machine ID such as agent-forge:dsh:plugin.
nameHuman-readable source name.
agentIdCovered Agent; null means all Agents.
typemcp, plugin, skill, general, or bundle.
baseUrlBase URL containing the manifest and index.
indexIndex path relative to baseUrl.
revisionImmutable revision shared by manifest, index, and generated assets.
generatedAtManifest generation time.
updatedAtLast catalog data change.
mirrorOfCanonical sourceId mirrored by this endpoint; null for a canonical source.
priorityConsumer selection priority; lower values win.
officialOperator declaration, not a security proof.
descriptionCatalog description.
indexChecksumDigest declaration for the index bytes.
sourceMirrorsMetadata endpoints serving the same revision, with sourceId, URL, mirrorOf, revision, priority, region, and official.
relatedSourcesRelated endpoints with sourceId, URL, relation, revision, priority, and region.
_metaNamespaced extension data.

sourceMirrors switches Agent Forge metadata endpoints only. It does not describe package-artifact URLs from package.schema.json. Consumers should report revision conflicts or apply an explicit priority.

TypeScript example#

typescript
const source = {
  schemaVersion: 2, // Manifest contract version.
  sourceId: "agent-forge:dsh:plugin", // Stable source ID.
  name: "Agent Forge DSH Plugins", // Human name.
  agentId: "dsh", // Agent projection.
  type: "plugin", // Package category.
  baseUrl: "https://ratapi.com/data/dsh/plugin/", // Base URL.
  index: "index.json", // Relative index path.
  revision: "20261001T000000Z", // Immutable publication revision.
  generatedAt: "2026-10-01T00:00:00Z", // Generation time.
  updatedAt: "2026-09-30T23:45:00Z", // Data update time.
  mirrorOf: null, // Canonical source has no parent mirror.
  priority: 0, // Preferred endpoint.
  official: true, // Operator declaration only.
  description: "Read-only DSH plugin metadata.", // Description.
  indexChecksum: { sha256: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, // Index digest declaration.
  sourceMirrors: [{ sourceId: "agent-forge-cn:dsh:plugin", url: "https://mirror.example.cn/agent-forge/data/dsh/plugin/", mirrorOf: "agent-forge:dsh:plugin", revision: "20261001T000000Z", priority: 10, region: "cn", official: false }], // Metadata mirror.
  relatedSources: [{ sourceId: "agent-forge:dsh:bundle", url: "https://ratapi.com/data/dsh/bundle/", relation: "regional", revision: "20261001T000000Z", priority: 20, region: "global" }], // Related catalog.
  _meta: { "org.example/catalog": { generatedBy: "pages" } }, // Extension data.
} as const;