JSPM

@agentproto/manifest

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 140
  • Score
    100M100P100Q100864F
  • License MIT

agentproto/manifest — generic verbs for AIP doctypes (create, load, list, update, resolve, delete). Each per-AIP package supplies a DoctypeSpec describing its name / AIP number / schema literal / path convention / validator+parser; createVerbs(spec) returns the full lifecycle. Adding a new verb (hash, sign, migrate, …) is one place; every package picks it up automatically.

Package Exports

  • @agentproto/manifest
  • @agentproto/manifest/package.json

Readme

@agentproto/manifest

Generic verbs for AIP doctypes. See AIP-1.

import { createVerbs } from "@agentproto/manifest"

const verbs = createVerbs({
  name: "tool",
  aip: 14,
  schemaLiteral: "agentproto/tool/v1",
  pathOf: (h) => `${h.id}/TOOL.md`,
  define: defineTool,
  parse: parseToolManifest,
})

await verbs.create({ id: "echo", ... }, { dir: "tools" })
const echo = await verbs.load("tools/echo/TOOL.md")
const all = await verbs.list("tools")
await verbs.update("tools/echo/TOOL.md", (p) => ({ ...p, version: "1.0.1" }))
const resolved = await verbs.resolve({ ref: "@agentik/runners/python" }, ctx)
await verbs.delete("tools/echo/TOOL.md")

License

MIT