PAM Native Plugin Kit
pam add plugin-kitpam doctor
vendor/bin/pam-native-plugin new acme/pam-native-biometric ./pam-native-biometricvendor/bin/pam-native-plugin validate ./pam-native-biometric/pam-native.plugin.jsonvendor/bin/pam-native-plugin compile ./pam-native-biometric/pam-native.idl.json ./generatedScaffolder creates a package plus CI; ManifestValidator verifies metadata,
native sources, and contracts; IdlCompiler emits deterministic PHP/Kotlin/
Swift; Diagnostic and ValidationResult expose typed findings.
IDL coded variants are sequential integer enums beginning at 1; gaps and
string variants fail compilation. Commit generated output, regenerate into a
temporary directory in CI, and require a clean diff. PAM records manifest and
IDL digests in .pam-native/plugins.lock.json.
The vendor/bin commands are package tooling after pam add plugin-kit; package
installation itself remains a PAM workflow.
Diagnostics use integer-backed DiagnosticSeverity; invalid IDL raises
IdlException. Apple manifest requirements are modeled by
IosExtensionKind and SwiftPackageRequirementKind rather than free-form
strings.