Loads an exported agent artifact JSON file (produced by examples/export) back into an in-memory OCI store.
With a registry reference, pushes the artifact to the target repository using Docker credentials.
Usage
# Import into memory (print digest only)
go run ./examples/import/ <input.json>
# Import and push to a registry
go run ./examples/import/ <input.json> <registry-ref>
# Push to a plain HTTP registry
go run ./examples/import/ -plain-http <input.json> <registry-ref>
Examples
# Roundtrip: export then import
go run ./examples/export/ demo/meteo/Agentfile meteo.json
go run ./examples/import/ meteo.json
# Import and push to a remote registry
go run ./examples/import/ meteo.json ghcr.io/openotters/agents/meteo:1.0.0
Import loads an exported agent artifact JSON file.
Without a registry reference, loads into memory and prints the digest.
With a registry reference, pushes the artifact to the target repository.
Usage:
go run ./examples/import/ <input.json>
go run ./examples/import/ <input.json> <registry-ref>
go run ./examples/import/ -plain-http <input.json> <registry-ref>