From 19edde150e8ec3a1d0fd9f8b57b4edc143272552 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Sun, 12 Jul 2026 13:52:33 +0200 Subject: [PATCH] chore: pin chain-module-sdk v0.3.0 and switch to #[chain_module] The pre-rename #[fai_module] attribute is gone in SDK 0.3.0; the dependency is tag-pinned so an SDK push can no longer change what this module builds against. Rebuilt artifact where tracked. Signed-off-by: flemming-it --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5f7f6c0..79c2d27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ repository = "https://git.flemming.ws/chain-modules/orchestrator-llm" crate-type = ["cdylib", "rlib"] [dependencies] -chain-module-sdk = { git = "https://git.flemming.ai/fai/chain-module-sdk-rust.git", branch = "main" } +chain-module-sdk = { git = "https://git.flemming.ai/fai/chain-module-sdk-rust.git", tag = "v0.3.0" } serde = { version = "1", features = ["derive"] } serde_json = "1" thiserror = "2" diff --git a/src/lib.rs b/src/lib.rs index adc4e2a..d849e23 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ //! orchestrator-llm — turns natural-language goals into Plan JSON. //! //! v0.3.0 migrates from a hand-written wit_bindgen scaffold to the -//! `#[fai_module]` macro from `chain-module-sdk`. The behavior is +//! `#[chain_module]` macro from `chain-module-sdk`. The behavior is //! unchanged from v0.2.1: a configured Ollama-compatible endpoint //! drives a real plan when `llm_endpoint` is set, otherwise the //! deterministic stub from v0.1.0 takes over. @@ -21,7 +21,7 @@ pub use plan::{Plan, PlanStep, build_stub_plan, parse_and_validate, validate}; use chain_module_sdk::prelude::*; -#[fai_module] +#[chain_module] pub fn invoke(_ctx: Context, inputs: Inputs) -> Result { let goal = inputs.require_text("goal")?; let llm_endpoint = inputs