Add this Piglet
Add the Piglet source
pig piglet add npm:@pi-in-go/pigpen-piglet-a2aPiG copies the Piglet source into ~/.pig/piglets/ and validates it. Start it with pig --piglet a2a.
Piglets run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party Piglet. This one is published by the PiG project from the Pigpen repository; that is not a verification claim.
What this Piglet is
Pigpen index status: planned (it records no signed Binary release for this Piglet). Source in the Pigpen repository ↗
- Not released yet: no signed Piglet Binary is published and no remote install command is offered. The source composition is in this repository; see RELEASE-BLOCKERS.md.
- The A2A listener is off unless a2a.json, PIG_A2A_LISTEN or --a2a-listen configures it, and it refuses to start without authentication tokens.
- The extension is Go and fuses into the Piglet Binary; it depends on the upstream a2a-go v2.6.0 (Apache-2.0).
- Also selected by pig-with-batteries; the listener is off there too until configured.
- The manifest lists five build targets, but only linux/amd64 has been built and run; linux/arm64, darwin/arm64, darwin/amd64 and windows/amd64 are listed in the manifest and compile-checked only, so no platform is a support claim.
Selects
Extensions (1)
a2afrom package:a2a
Packages it uses
- @pi-in-go/pigpen-a2a
^0.3.0
Binary targets
linux/amd64linux/arm64darwin/arm64darwin/amd64windows/amd64
These are the targets the manifest lists for pig piglet build. Which of them have been built and run is in the notes above.
Signing
- Signed Piglet Binary: none published. Nothing has been signed for this Piglet yet, so
pig piglet pullhas no release to pull. - npm package: 2 registry signatures.
piglet.yaml
# GENERATED by scripts/npm-piglets.mjs from piglets/a2a/piglet.yaml. Do not edit.
name: a2a
description: "PiG that speaks A2A (Agent2Agent): call remote A2A agents from tools, and serve PiG tasks to A2A agents when you configure a listener. Off until configured."
release:
version: 0.1.1
build:
targets:
- linux/amd64
- linux/arm64
- darwin/arm64
- darwin/amd64
- windows/amd64
extensionRealization: fused
packages:
a2a: npm:@pi-in-go/pigpen-a2a@^0.3.0
extensions:
- name: a2a
origins:
- package:a2a
strip:
features:
- node-extensions
- extension-sdk-go
- extension-sdk-rust
- extension-sdk-python
- self-update
discovery:
extensions: []
skills: []
PiG manifest JSON
The pig field of package.json.
{
"piglet": "piglet.yaml"
}README
Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.
a2a
PiG that speaks A2A (Agent2Agent): three tools call remote A2A agents, and PiG can serve its own
tasks to A2A agents such as kagent. Everything is in the standalone Package
components/a2a; this Piglet only selects it as a named agent and fuses it into a Binary.
The listener is off. Nothing opens a port until a2a.json, PIG_A2A_LISTEN or --a2a-listen configures one, and the server
refuses to start without authentication tokens (or insecureNoAuth on a loopback address). Configuration, authentication, tenant
boundaries and cancellation are documented in the Package README.
Source only, not a published release. Try it from the checkout:
npm run stage
pig piglet validate dist/staged/piglets/a2a/piglet.yaml
pig --piglet dist/staged/piglets/a2a/piglet.yaml
Build a Binary (needs a git checkout of PiG as PIG_SOURCE_ROOT, a Go toolchain, and network or a warm Go module cache for
github.com/a2aproject/a2a-go/v2):
PIG_SOURCE_ROOT=<pig git checkout> pig piglet build dist/staged/piglets/a2a/piglet.yaml --format binary --targets <os>/<arch> --out ./pig-a2a
pig-with-batteries selects the same Package (its tools appear, its listener stays off until configured). To have the Binary serve tasks, set
worker.command to the Binary itself in a2a.json, so each task's worker is the same composition without its listener
(PIG_A2A_WORKER=1 keeps children from listening).
Signed Binary
This npm package is the Piglet's source: pig piglet add npm:@pi-in-go/pigpen-piglet-a2a registers it, and its Packages install from npm. The signed per-platform Binary is published separately on GitHub Releases (release a2a/v0.1.1):
pig piglet pull 'github:MichaelKinsy/pigpen/a2a@0.1.1'