Add this Piglet
Add the Piglet source
pig piglet add npm:@pi-in-go/pigpen-piglet-pig-typesafePiG copies the Piglet source into ~/.pig/piglets/ and validates it. Start it with pig --piglet pig-typesafe.
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.
- Go only. Selects the pi-typesafe Package: the typesafe_evaluate tool and the /typesafe command, off until the operator enables them. Run npm run stage before using its generated manifest under dist/staged.
- Content submitted goes to api.typesafe.ai unless the own-model backend is selected, which sends it to the provider of the model PiG is configured with. The Piglet says which in its consent dialog.
- A Piglet Binary builds locally from the staged manifest with PIG_SOURCE_ROOT set to a git checkout of the PiG source. No release is published; version 0.1.0 is a development default and 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; neither is a support claim.
Selects
Extensions (1)
pi-typesafefrom package:pi-typesafe
Packages it uses
- @pi-in-go/pigpen-pi-typesafe
^0.1.1 - @pi-in-go/pigpen-pi-typesafe-api
^0.1.2 - @pi-in-go/pigpen-typesafe
^0.2.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/pig-typesafe/piglet.yaml. Do not edit.
name: pig-typesafe
description: The typesafe_evaluate tool and /typesafe command (Go port of pi-typesafe). Off until enabled; content goes to api.typesafe.ai unless the own-model backend (the model PiG is configured with) is selected.
release:
version: 0.1.1
build:
targets:
- linux/amd64
- linux/arm64
- darwin/arm64
- darwin/amd64
- windows/amd64
extensionRealization: fused
packages:
pi-typesafe: npm:@pi-in-go/pigpen-pi-typesafe@^0.1.1
pi-typesafe-api: npm:@pi-in-go/pigpen-pi-typesafe-api@^0.1.2
typesafe: npm:@pi-in-go/pigpen-typesafe@^0.2.0
extensions:
- name: pi-typesafe
origins:
- package:pi-typesafe
skills: []
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.
pig-typesafe
Batched TypeSafe (Jev) judgments for the agent, as a Go Piglet: the typesafe_evaluate tool, the /typesafe command (login,
consent, status, sample test, playground) and the result renderers, from the Package
pi-typesafe (a port of pi-typesafe by Ryan Gapac).
Off by default, and where content goes
Selecting this Piglet does not turn anything on. The tool refuses every call until the operator runs /typesafe enable and
confirms the notice (or sets PI_TYPESAFE_ENABLED=1 for a headless run). Submitted state and questions go to api.typesafe.ai
and may incur charges, unless the own-model backend is selected (PI_TYPESAFE_BACKEND=ownmodel, or /typesafe backend ownmodel): then they go to the provider of the model PiG is configured with, and nothing goes to TypeSafe. Do not submit secrets.
What it selects
| Resource | From | Role |
|---|---|---|
Extension pi-typesafe (Go, fused) | Package pi-typesafe | The tool, the command, the renderers. |
| (libraries) | Packages pi-typesafe-api, typesafe | Imported by the extension; they carry no extension of their own. |
Built-in tools stay at PiG's defaults; discovery of ambient extensions and Skills is off.
Run from a checkout
npm ci --ignore-scripts
npm run stage
pig piglet validate dist/staged/piglets/pig-typesafe/piglet.yaml
PIG_BIN=pig PIG_SOURCE_ROOT=<git checkout of the PiG source> npm run build:piglet -- pig-typesafe --out dist/bin/pig-typesafe
Isolate the run (temporary HOME, PIG_HOME, PIG_CODING_AGENT_DIR) unless you want your own PiG state.
Signed Binary
This npm package is the Piglet's source: pig piglet add npm:@pi-in-go/pigpen-piglet-pig-typesafe registers it, and its Packages install from npm. The signed per-platform Binary is published separately on GitHub Releases (release pig-typesafe/v0.1.1):
pig piglet pull 'github:MichaelKinsy/pigpen/pig-typesafe@0.1.1'