Skip to content

V0.9.8#61

Merged
Hendler merged 5 commits intomainfrom
v0.9.8
Mar 20, 2026
Merged

V0.9.8#61
Hendler merged 5 commits intomainfrom
v0.9.8

Conversation

@Hendler
Copy link
Copy Markdown
Contributor

@Hendler Hendler commented Mar 20, 2026

No description provided.

Hendler added 5 commits March 20, 2026 00:13
     - Task 001 -- Added config_dir: Option<PathBuf> field to Config struct (/Users/jonathan.hendler/personal/JACS/jacs/src/config/mod.rs). Field is #[serde(skip)], set automatically by Config::from_file(), used by load_by_config to
     resolve storage paths correctly. 6 new tests.
     - Task 002 -- Added Agent::from_config(config: Config, password: Option<&str>) constructor (/Users/jonathan.hendler/personal/JACS/jacs/src/agent/mod.rs). Named from_config (not load) to avoid collision with existing
     Agent::load(&str). Extracted shared calculate_storage_root_and_normalize helper to eliminate ~100 lines of duplication. 4 new tests.
     - Task 003 -- Deprecated load_config_12factor, load_config_12factor_optional, load_config_file_only with #[deprecated(since="0.9.8")] (/Users/jonathan.hendler/personal/JACS/jacs/src/config/mod.rs). Added #[allow(deprecated)] to all
      internal callers.

     Wave 2 (JACS callers) -- 4 tasks complete:

     - Task 004 -- Migrated jacs-cli (/Users/jonathan.hendler/personal/JACS/jacs-cli/src/main.rs). Created load_agent_from_config helper. Replaced all 7 load_agent() calls and config read subcommand. Zero deprecated function usage.
     - Task 005 -- Migrated binding-core (/Users/jonathan.hendler/personal/JACS/binding-core/src/lib.rs). load(), load_file_only(), load_with_info() now use Agent::from_config. Password passed directly, not via env var.
     - Task 006 -- Blocked (depends on Task 009 removing last caller from haisdk).
     - Task 007 -- Complete (transitive via Task 005, no code changes needed).
load_agent_from_config accepted agent_file as its first parameter but
used it as a config path. When -a /path/to/agent.json was passed, it
tried to parse the agent JSON as a jacs.config.json and failed.

Replaced with load_agent() — no parameters, resolves config from
JACS_CONFIG env / ./jacs.config.json, resolves password from CLI chain.
load_agent_with_cli_dns_policy wraps it with DNS flag overrides.

The --agent-file flag variables are kept (prefixed with _) for future
use when agent-file loading is properly implemented as a post-init step.
@Hendler Hendler merged commit 7d4eea8 into main Mar 20, 2026
18 checks passed
@Hendler Hendler deleted the v0.9.8 branch March 20, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant