AI•Pkg.Core .NET library and the aipkg CLI. This spec defines the normative API surface for both. Anyone building a compatible tool, client, or alternative implementation should use this document as the reference.
AI•Pkg.Core
Cross-platform .NET 10 class library. Consumed by servers, CLI tools, and test harnesses.
aipkg CLI
Command-line tool. Single-file binary. No runtime required.
Part 1: AI•Pkg.Core Public API
Overview
Public Types
- AI•Pkg.Core (root)
- AI•Pkg.Core.Packaging
- AI•Pkg.Core.Platform
- AI•Pkg.Core.Validation
- AI•Pkg.Core.Versioning
100% of public surface members must carry XML doc comments before the 1.0.0 release.
Part 2: aipkg CLI Command Reference
Command Reference
aipkg pack
aipkg pack
- Reads and validates the
.aispecmanifest - Resolves all file references (icon, readme, license, shared/, apm/)
- Builds the ZIP archive
- Reports the archive size and file count
aipkg push
aipkg push
aipkg install
aipkg install
.claude/, .cursor/, etc.) to infer the active platform. Falls back to prompting if ambiguous.aipkg restore
aipkg restore
aipkg.config.json and installs all declared packages.aipkg remove
aipkg remove
aipkg list
aipkg list
aipkg search
aipkg search
aipkg info
aipkg info
aipkg verify
aipkg verify
aipkg sources
aipkg sources
~/.aipkg/sources.json.aipkg new
aipkg new
{id}.aispec file in the current directory.Part 3: Configuration File Schemas
- aipkg.config.json
- aipkg.lock.json
- ~/.aipkg/config.json
Project dependencies file — analogous to
package.json (npm).Part 4: TypeScript SDK Interface (Post-MVP)
The TypeScript SDK packages provide registry client and manifest parsing functionality:TypeScript SDK is not in scope for MVP. Defined here for future reference.