From 391277c939868676b81b9bbea21dccfeff2693c7 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Wed, 3 Jun 2026 07:45:27 -0700 Subject: [PATCH] fix(build): commit the datespec-move wiring (orphaned in T2c) The T2c commit moved datespec.rs into hephd but left its wiring uncommitted: hephd's lib never exported `pub mod datespec`, hephd lacked the chrono dep, and the CLI still declared `mod datespec` for a file that had moved. The working tree had these (so local builds passed) but the pushed tree didn't, breaking `cargo install` of heph + heph-tui. Commit them. Co-Authored-By: Claude Opus 4.8 (1M context) --- Cargo.lock | 1 + crates/heph/src/main.rs | 3 +-- crates/hephd/Cargo.toml | 1 + crates/hephd/src/datespec.rs | 7 ++++--- crates/hephd/src/lib.rs | 1 + 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c34e345..ee18d03 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1286,6 +1286,7 @@ dependencies = [ "anyhow", "axum", "base64", + "chrono", "clap", "fs4", "heph-core", diff --git a/crates/heph/src/main.rs b/crates/heph/src/main.rs index 02dbb6d..a383a0b 100644 --- a/crates/heph/src/main.rs +++ b/crates/heph/src/main.rs @@ -13,9 +13,8 @@ use clap::{Parser, Subcommand}; use serde_json::{json, Value}; use heph_core::{Node, RankedTask, Task}; -use hephd::{default_socket_path, Client, DeviceFlow, KeyringTokenStore, TokenStore}; +use hephd::{datespec, default_socket_path, Client, DeviceFlow, KeyringTokenStore, TokenStore}; -mod datespec; mod service; #[derive(Parser, Debug)] diff --git a/crates/hephd/Cargo.toml b/crates/hephd/Cargo.toml index 807feb4..facf7d1 100644 --- a/crates/hephd/Cargo.toml +++ b/crates/hephd/Cargo.toml @@ -18,6 +18,7 @@ path = "src/main.rs" [dependencies] heph-core = { path = "../heph-core" } +chrono.workspace = true tokio.workspace = true serde.workspace = true serde_json.workspace = true diff --git a/crates/hephd/src/datespec.rs b/crates/hephd/src/datespec.rs index d37ed21..1ffadfe 100644 --- a/crates/hephd/src/datespec.rs +++ b/crates/hephd/src/datespec.rs @@ -1,7 +1,8 @@ -//! Human-friendly date and recurrence parsing for the CLI (tech-spec §1, §8). +//! Human-friendly date and recurrence parsing for client surfaces — the CLI +//! and the TUI (tech-spec §1, §8, §8.1). //! -//! `heph-core` is clock-pure (no ambient wall-clock reads); the CLI is a client, -//! so it may read the local clock. Date parsing is split so the logic is +//! `heph-core` is clock-pure (no ambient wall-clock reads); clients may read the +//! local clock. Date parsing is split so the logic is //! deterministically testable: the pure functions take `today` / a year, and the //! thin wrappers supply `Local::now()`. //! diff --git a/crates/hephd/src/lib.rs b/crates/hephd/src/lib.rs index ef80eb1..d4521b1 100644 --- a/crates/hephd/src/lib.rs +++ b/crates/hephd/src/lib.rs @@ -10,6 +10,7 @@ pub mod auth; pub mod client; pub mod clock; +pub mod datespec; pub mod lock; pub mod oauth; pub mod remote;