From 9e40b59984f65e3082d0f9aaa4979caf1aea2c3f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 13:58:29 +0000 Subject: [PATCH 1/3] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-cli-generator: 0.57.2 --- .fern/replay.lock | 10 +++ .fernignore | 3 + .gitattributes | 1 + Cargo.lock | 154 +++++++++++++++++----------------- Cargo.toml | 4 +- changelog.md | 18 ---- livingbrain-sdk/Cargo.toml | 2 +- livingbrain-sdk/src/config.rs | 2 +- livingbrain-types/Cargo.toml | 2 +- 9 files changed, 96 insertions(+), 100 deletions(-) create mode 100644 .fern/replay.lock create mode 100644 .gitattributes delete mode 100644 changelog.md diff --git a/.fern/replay.lock b/.fern/replay.lock new file mode 100644 index 0000000..cf92c91 --- /dev/null +++ b/.fern/replay.lock @@ -0,0 +1,10 @@ +# DO NOT EDIT MANUALLY - Managed by Fern Replay +version: "1.0" +generations: + - commit_sha: 4acf1c426a821e70a68099160e4ca56929097c94 + tree_hash: c3ce8272ce9626841d4d2b8234fc4f3ae7aca4b1 + timestamp: 2026-11-04T13:58:23.872Z + cli_version: unknown + generator_versions: {} +current_generation: 4acf1c426a821e70a68099160e4ca56929097c94 +patches: [] diff --git a/.fernignore b/.fernignore index b7a7eb9..5d34bec 100644 --- a/.fernignore +++ b/.fernignore @@ -2,3 +2,6 @@ cli/livingbrain/custom.rs README.md tests/auth_headers.rs +.fern/replay.lock +.fern/replay.yml +.gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..74928d6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.fern/replay.lock linguist-generated=true diff --git a/Cargo.lock b/Cargo.lock index 2587ecb..3a80f2d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -495,6 +495,56 @@ version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" +[[package]] +name = "livingbrain-cli" +version = "0.2.3" +dependencies = [ + "anyhow", + "base64", + "bytes", + "chrono", + "clap_complete", + "clap_mangen", + "clap", + "dotenvy", + "form_urlencoded", + "futures-util", + "hmac", + "httpdate", + "jmespath", + "keyring", + "libc", + "livingbrain_sdk", + "num-bigint", + "ordered-float", + "percent-encoding", + "pin-project", + "rand 0.8.6", + "reqwest-sse", + "reqwest", + "secrecy", + "security-framework 3.7.0", + "serde_json_path", + "serde_json", + "serde_qs", + "serde_yaml", + "serde", + "serial_test", + "sha2", + "tempfile", + "thiserror 2.0.18", + "tokio-tungstenite", + "tokio-util", + "tokio", + "toml_edit", + "tracing-appender", + "tracing-subscriber", + "tracing", + "unicode-normalization", + "webbrowser", + "wiremock", +] + [[package]] name = "find-msvc-tools" version = "0.1.9" @@ -1140,83 +1190,6 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" -[[package]] -name = "livingbrain-cli" -version = "0.2.2" -dependencies = [ - "anyhow", - "base64", - "bytes", - "chrono", - "clap", - "clap_complete", - "clap_mangen", - "dotenvy", - "form_urlencoded", - "futures-util", - "hmac", - "httpdate", - "jmespath", - "keyring", - "libc", - "livingbrain_sdk", - "num-bigint", - "ordered-float", - "percent-encoding", - "pin-project", - "rand 0.8.6", - "reqwest", - "reqwest-sse", - "secrecy", - "security-framework 3.7.0", - "serde", - "serde_json", - "serde_json_path", - "serde_qs", - "serde_yaml", - "serial_test", - "sha2", - "tempfile", - "thiserror 2.0.18", - "tokio", - "tokio-tungstenite", - "tokio-util", - "toml_edit", - "tracing", - "tracing-appender", - "tracing-subscriber", - "unicode-normalization", - "webbrowser", - "wiremock", -] - -[[package]] -name = "livingbrain_sdk" -version = "0.2.2" -dependencies = [ - "bytes", - "chrono", - "futures", - "livingbrain_types", - "reqwest", - "serde", - "serde_json", - "thiserror 1.0.69", - "tokio", -] - -[[package]] -name = "livingbrain_types" -version = "0.2.2" -dependencies = [ - "base64", - "chrono", - "num-bigint", - "ordered-float", - "serde", - "serde_json", -] - [[package]] name = "lock_api" version = "0.4.14" @@ -3344,3 +3317,30 @@ name = "zmij" version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" + +[[package]] +name = "livingbrain_types" +version = "0.2.3" +dependencies = [ + "base64", + "chrono", + "num-bigint", + "ordered-float", + "serde", + "serde_json", +] + +[[package]] +name = "livingbrain_sdk" +version = "0.2.3" +dependencies = [ + "bytes", + "chrono", + "futures", + "livingbrain_types", + "reqwest", + "serde", + "serde_json", + "thiserror 1.0.69", + "tokio", +] diff --git a/Cargo.toml b/Cargo.toml index 940a883..990592e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "livingbrain-cli" -version = "0.2.2" +version = "0.2.3" edition = "2021" description = "Command-line interface for the Living Brain API" license = "Apache-2.0" -repository = "https://github.com/fern-demo/livingbrain-cli" +repository = "https://github.com/ChatAndBuild/livingbrain-cli" homepage = "https://docs.livingbrain.com" authors = ["Fern "] keywords = ["cli", "openapi", "graphql", "fern", "codegen"] diff --git a/changelog.md b/changelog.md deleted file mode 100644 index 67e7f57..0000000 --- a/changelog.md +++ /dev/null @@ -1,18 +0,0 @@ -# Changelog - -## [0.2.1] - 2026-10-16 - -- Fixed: authenticated commands now send `x-api-key`. The spec declared auth as `apiKey AND subject`, but `x-subject-id` is a global header rather than an auth scheme, so per-endpoint auth routing found no `subject` provider and attached no API key (only `x-subject-id` went out and every call returned 401). The auth requirement is now the API key alone. -- `brains runBrief` is typed as nullable: the API returns `null` when the last 7 days had no activity. The SDK's `run_brief` now returns `Option`. -- README documents the required `LIVING_BRAIN_SUBJECT_ID` (a UUID) alongside the API key. -- Added `tests/auth_headers.rs`, which runs `livingbrain brains list` against a mock server and asserts both `x-api-key` and `x-subject-id` are sent, via env vars and via flags. - -## [0.2.0] - 2026-10-14 - -- Regenerated from the Oct 14 OpenAPI export. -- `Page` no longer has an `embedding` field (the API stopped returning it). -- `SearchResult` has a new required `matchedOn` field: `semantic`, `keyword`, or `both`. -- Brain deletion is now documented as a soft delete. - -## [0.1.0] - 2026-09-29 - diff --git a/livingbrain-sdk/Cargo.toml b/livingbrain-sdk/Cargo.toml index 90409f8..9f71fd5 100644 --- a/livingbrain-sdk/Cargo.toml +++ b/livingbrain-sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "livingbrain_sdk" -version = "0.2.2" +version = "0.2.3" edition = "2021" description = "Rust SDK for livingbrain_sdk generated by Fern" license = "MIT" diff --git a/livingbrain-sdk/src/config.rs b/livingbrain-sdk/src/config.rs index c666863..da07aea 100644 --- a/livingbrain-sdk/src/config.rs +++ b/livingbrain-sdk/src/config.rs @@ -40,7 +40,7 @@ impl Default for ClientConfig { custom_headers: HashMap::from([ ("X-Fern-Language".to_string(), "Rust".to_string()), ("X-Fern-SDK-Name".to_string(), "livingbrain_sdk".to_string()), - ("X-Fern-SDK-Version".to_string(), "0.2.2".to_string()), + ("X-Fern-SDK-Version".to_string(), "0.2.3".to_string()), ]), user_agent: "Api Rust SDK".to_string(), reqwest_client: None, diff --git a/livingbrain-types/Cargo.toml b/livingbrain-types/Cargo.toml index 4ec8f19..afa4a8c 100644 --- a/livingbrain-types/Cargo.toml +++ b/livingbrain-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "livingbrain_types" -version = "0.2.2" +version = "0.2.3" edition = "2021" [lib] From 946334e7fe0031071b3a188345b0c234d9c39d16 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 13:58:30 +0000 Subject: [PATCH 2/3] [fern-replay] advance lockfile --- .fern/replay.lock | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index cf92c91..1a48c88 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -6,5 +6,11 @@ generations: timestamp: 2026-11-04T13:58:23.872Z cli_version: unknown generator_versions: {} -current_generation: 4acf1c426a821e70a68099160e4ca56929097c94 + - commit_sha: efcea6986a307daff87726ea608832bee726a1cc + tree_hash: bc4a556a3b5a359d1b24321dde6964299da200e2 + timestamp: 2026-11-04T13:58:27.476Z + cli_version: unknown + generator_versions: + fernapi/fern-cli-generator: 0.57.2 +current_generation: efcea6986a307daff87726ea608832bee726a1cc patches: [] From c6a070dfce5913742d8aa108ef42952173cdfe87 Mon Sep 17 00:00:00 2001 From: highsoft-85 <120825530+highsoft-85@users.noreply.github.com> Date: Wed, 4 Nov 2026 14:03:42 +0000 Subject: [PATCH 3/3] docs: update canonical CLI release links Co-authored-by: Cursor --- .fernignore | 1 + README.md | 6 +++--- changelog.md | 23 +++++++++++++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 changelog.md diff --git a/.fernignore b/.fernignore index 5d34bec..545c324 100644 --- a/.fernignore +++ b/.fernignore @@ -5,3 +5,4 @@ tests/auth_headers.rs .fern/replay.lock .fern/replay.yml .gitattributes +changelog.md diff --git a/README.md b/README.md index b3b5a69..29b30f5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Living Brain Service CLI -[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-CLI%20generated%20by%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Ffern-demo%2Flivingbrain-cli) +[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-CLI%20generated%20by%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FChatAndBuild%2Flivingbrain-cli) Command-line interface for the Living Brain Service API. @@ -23,13 +23,13 @@ Command-line interface for the Living Brain Service API. ### Shell (macOS / Linux) ```bash -curl --proto '=https' --tlsv1.2 -LsSf https://github.com/fern-demo/livingbrain-cli/releases/latest/download/livingbrain-cli-installer.sh | sh +curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ChatAndBuild/livingbrain-cli/releases/latest/download/livingbrain-cli-installer.sh | sh ``` ### PowerShell (Windows) ```powershell -powershell -ExecutionPolicy ByPass -c "irm https://github.com/fern-demo/livingbrain-cli/releases/latest/download/livingbrain-cli-installer.ps1 | iex" +powershell -ExecutionPolicy ByPass -c "irm https://github.com/ChatAndBuild/livingbrain-cli/releases/latest/download/livingbrain-cli-installer.ps1 | iex" ``` ### Build from source diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..4ff96a3 --- /dev/null +++ b/changelog.md @@ -0,0 +1,23 @@ +# Changelog + +## [0.2.3] - 2026-11-04 + +- Updated repository metadata and installer links after the CLI moved to `ChatAndBuild`. +- Prepared the public multi-platform GitHub release. + +## [0.2.1] - 2026-10-16 + +- Fixed: authenticated commands now send `x-api-key`. The spec declared auth as `apiKey AND subject`, but `x-subject-id` is a global header rather than an auth scheme, so per-endpoint auth routing found no `subject` provider and attached no API key (only `x-subject-id` went out and every call returned 401). The auth requirement is now the API key alone. +- `brains runBrief` is typed as nullable: the API returns `null` when the last 7 days had no activity. The SDK's `run_brief` now returns `Option`. +- README documents the required `LIVING_BRAIN_SUBJECT_ID` (a UUID) alongside the API key. +- Added `tests/auth_headers.rs`, which runs `livingbrain brains list` against a mock server and asserts both `x-api-key` and `x-subject-id` are sent, via env vars and via flags. + +## [0.2.0] - 2026-10-14 + +- Regenerated from the Oct 14 OpenAPI export. +- `Page` no longer has an `embedding` field (the API stopped returning it). +- `SearchResult` has a new required `matchedOn` field: `semantic`, `keyword`, or `both`. +- Brain deletion is now documented as a soft delete. + +## [0.1.0] - 2026-09-29 +