tools/pkg (kale-pm)
Package Manager & Build Automation Tool
The package manager and build orchestrator for the Kale ecosystem. Manages module imports, resolves semantic version constraints, downloads distributed dependencies, and provides reproducible, incremental compiler invocations.

Zero-Overhead Foreign Function Interface
Kale links directly against native C dynamic libraries with no runtime marshaling wrapper. Functions declared with extern symbols resolve directly through the platform loader (kernel32, user32, opengl32, glfw3, sqlite3).

[package]
name = "kale_graphics"
version = "0.2.0"
authors = ["Kale Team <team@kale.lang>"]
[dependencies]
std = { path = "packages/std" }
render = { path = "libs/render", version = ">=0.1.0" }
glfw = { path = "libs/glfw" }
[build]
opt_level = 3
target = "x86_64-windows-msvc"Deterministic command-line invocations to build, link native dynamic dependencies, and run automated regression tests:
kale-pm new my_projectkale-pm build --releasekale-pm testGPG Key 1B917D4779A6102E • Continuous integration with automated symbol verification.
Produces bit-for-bit reproducible builds with cryptographic SHA-256 package verification.
Natively navigates Kale monorepo packages, libraries, and apps with intelligent symlinking.
Compiles packages directly into static binary artifacts with zero dynamic interpreter overhead.