# Distribution Build Output

**Purpose**: Compiled binaries and bundled libraries ready for packaging and distribution.

## Contents

This directory contains the build output from the core platform build system:

### Subdirectories

- **`core/`** - Nushell core libraries and CLI bundles (from `bundle-core.nu`)
  - Nushell provisioning CLI wrapper
  - Core libraries (lib_provisioning)
  - Configuration system
  - Template system
  - Extensions and plugins

- **`platform/`** - Compiled Rust binaries (from `compile-platform.nu`)
  - provisioning-orchestrator binary
  - control-center binary
  - control-center-ui binary
  - mcp-server-rust binary
  - All cross-platform target binaries

- **`config/`** - Configuration files and templates
  - Default configurations
  - Configuration examples
  - Schema definitions

- **`provisioning-kcl-1.0.0/`** - Deprecated KCL distribution (archived)
  - Historical reference only
  - Migrated to `.coder/archive/kcl/` for long-term storage

## Usage

This directory is generated by the build system. Do not commit contents to git (configured in .gitignore).

Build the distribution:

```bash
just build-all          # Complete build (platform + core)
just build-platform     # Platform binaries only
just build-core         # Core libraries only
```

View distribution contents:

```bash
ls dist/core/           # Nushell libraries
ls dist/platform/       # Compiled binaries
ls dist/config/         # Configuration files
```

## Cleanup

Remove all distribution artifacts:

```bash
just clean-dist         # Remove dist/ directory
```

## Related Directories

- `distribution/` - Distribution package generation
- `package/` - Package creation (deb, rpm, tar.gz, etc.)
- `release/` - Release management and versioning
