mait.sh1.132.1

Private beta: features and content may change. No warranty; use at your own risk.

aidc-pack workflows

Four things you do with AIDC Pack, from looking inside a package before it leaves your machine to sharing it, each with the commands and what to check.

Beta
AIDC Pack

Output examples are illustrative; your versions, paths, sizes and messages can differ. Check your installed version and each command result.

Review

Review a package before it leaves your machine

You captured a tool and want to be sure the archive holds what you intend to distribute, and nothing else.

You runaidc-pack inspect nodejs 22.23.3 --files, and aidc-pack -v verify nodejs 22.23.3.

The archive summary
# example output
$ aidc-pack inspect nodejs 22.23.3
Inspecting: ./packages/nodejs/22.23.3/nodejs-22.23.3-linux-amd64.tar.zst
Compressed size: 34590210 bytes
BLAKE3: ae96157e338191445468e93894a06d19a37d61ef0cdf3192991fae31bd144c4d
Total files: 5866
Uncompressed size: 196362450 bytes
Compression ratio: 82.4%
Mismatched pair

Catch a mismatched pair

The archive and the manifest were copied separately, or one was edited, and you want to know before anyone downloads the result.

You runaidc-pack verify nodejs 22.23.3 in the directory that holds the pair.

A manifest that does not match
# example output · the manifest checksum was altered on purpose
$ AIDC_PACK_STORAGE_PATH=alt aidc-pack verify nodejs 22.23.3
Verifying package: alt/nodejs/22.23.3/nodejs-22.23.3-linux-amd64.tar.zst...
[fail] Package verification failed
[error] Package error: BLAKE3 mismatch: manifest=00aa157e338191445468e93894a06d19a37d61ef0cdf3192991fae31bd144c4d computed=ae96157e338191445468e93894a06d19a37d61ef0cdf3192991fae31bd144c4d
Publish

Publish to the MAIT Hub

The pair passed review and you hold MAIT credentials with the publish feature on your account.

You runaidc-pack verify nodejs 22.23.3, then aidc-pack publish nodejs 22.23.3.

Publishing without credentials
# example output · no credentials on this machine
$ aidc-pack publish nodejs 22.23.3
Publishing package...
[fail] Publish failed
[error] Configuration error: Credentials not found.
Set CREDENTIALS_PATH or place credentials at /etc/mait/credentials or ~/.aidc/credentials
Other targets

Package another target or distribution

You distribute a tool for arm64, or a particular distribution of a tool.

You runaidc-pack build python 3.12.0 --platform linux --architecture arm64 on an arm64 Linux host, or aidc-pack build java:temurin 21.0.2.

Illustrative
Targets and distributions
aidc-pack build python 3.12.0 --platform linux --architecture arm64
aidc-pack build java:temurin 21.0.2
aidc-pack build android-sdk:tools 20-34
Next

Where to go next.