fetch_ml/cli/src/local.zig
Jeremie Fraeys 551597b5df
feat(cli): Add core infrastructure for local mode support
- mode.zig: Automatic online/offline mode detection with API ping
- manifest.zig: Run manifest read/write/update operations
- core/: Common flags, output formatting, and context management
- local.zig + local/: Local mode experiment operations
- server.zig + server/: Server mode API client
- db.zig: Add pid column to ml_runs table for process tracking
- config.zig: Add force_local, [experiment] section with name/entrypoint
- utils/native_bridge.zig: Native library integration
2026-02-20 21:28:06 -05:00

22 lines
653 B
Zig

//! Local mode operations module
//!
//! Provides implementations for CLI commands when running in local mode (SQLite).
//! These functions are called by the command routers in `src/commands/` when
//! `Context.isLocal()` returns true.
//!
//! ## Usage
//!
//! ```zig
//! const local = @import("../local.zig");
//!
//! if (ctx.isLocal()) {
//! return try local.experiment.create(ctx.allocator, name, artifact_path, json);
//! }
//! ```
//!
//! ## Module Structure
//!
//! - `experiment_ops.zig` - Experiment CRUD operations for SQLite
//! - Future: `run_ops.zig`, `metrics_ops.zig`, etc.
pub const experiment = @import("local/experiment_ops.zig");