From c41490085addef9f505cca0d441b2893aceca741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Fri, 5 Dec 2025 01:21:30 +0100 Subject: [PATCH] fix node build --- hindsight-cli/src/api.rs | 2 +- hindsight-clients/typescript/src/index.ts | 6 +++--- .../docs/developer/api/main-methods.md | 2 +- hindsight-docs/docs/developer/api/reflect.md | 2 +- hindsight-docs/docs/developer/index.md | 2 +- hindsight-docs/docs/developer/retain.md | 2 +- hindsight-docs/docs/developer/retrieval.md | 2 +- scripts/generate-clients.sh | 17 ++++++++++++++++- uv.lock | 8 ++++---- 9 files changed, 29 insertions(+), 14 deletions(-) diff --git a/hindsight-cli/src/api.rs b/hindsight-cli/src/api.rs index 82a39166..513b5e6c 100644 --- a/hindsight-cli/src/api.rs +++ b/hindsight-cli/src/api.rs @@ -241,10 +241,10 @@ pub use types::{ BankProfileResponse, CreateBankRequest, DeleteResponse, + DispositionTraits, DocumentResponse, ListDocumentsResponse, MemoryItem, - PersonalityTraits, RecallRequest, RecallResponse, RecallResult, diff --git a/hindsight-clients/typescript/src/index.ts b/hindsight-clients/typescript/src/index.ts index b9e41019..fcd7b873 100644 --- a/hindsight-clients/typescript/src/index.ts +++ b/hindsight-clients/typescript/src/index.ts @@ -192,11 +192,11 @@ export class HindsightClient { } /** - * Create or update a bank with personality and background. + * Create or update a bank with disposition and background. */ async createBank( bankId: string, - options: { name?: string; background?: string; personality?: any } + options: { name?: string; background?: string; disposition?: any } ): Promise { const response = await sdk.createOrUpdateBank({ client: this.client, @@ -204,7 +204,7 @@ export class HindsightClient { body: { name: options.name, background: options.background, - personality: options.personality, + disposition: options.disposition, }, }); diff --git a/hindsight-docs/docs/developer/api/main-methods.md b/hindsight-docs/docs/developer/api/main-methods.md index 69dfe804..434e5149 100644 --- a/hindsight-docs/docs/developer/api/main-methods.md +++ b/hindsight-docs/docs/developer/api/main-methods.md @@ -10,7 +10,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; :::tip Prerequisites -Make sure you've [installed Hindsight](./installation) and completed the [Quick Start](./quickstart). +Make sure you've [installed Hindsight](../installation) and completed the [Quick Start](./quickstart). ::: ## Retain: Store Information diff --git a/hindsight-docs/docs/developer/api/reflect.md b/hindsight-docs/docs/developer/api/reflect.md index 56d109c1..9bcba1fa 100644 --- a/hindsight-docs/docs/developer/api/reflect.md +++ b/hindsight-docs/docs/developer/api/reflect.md @@ -81,7 +81,7 @@ const response = await client.reflect('my-bank', 'What do you think about remote :::info How Reflect Works -Learn about personality-driven reasoning and opinion formation in the [Reflect Architecture](/developer/personality) guide. +Learn about personality-driven reasoning and opinion formation in the [Reflect Architecture](/developer/reflect) guide. ::: ## Opinion Formation diff --git a/hindsight-docs/docs/developer/index.md b/hindsight-docs/docs/developer/index.md index 753ab15c..6ef077c5 100644 --- a/hindsight-docs/docs/developer/index.md +++ b/hindsight-docs/docs/developer/index.md @@ -108,7 +108,7 @@ The `bias_strength` parameter (0-1) controls how much personality influences opi ### Core Concepts - [**Retain**](/developer/retain) — How memories are stored with multi-dimensional facts - [**Recall**](/developer/retrieval) — How TEMPR's 4-way search retrieves memories -- [**Reflect**](/developer/personality) — How personality influences reasoning and opinion formation +- [**Reflect**](/developer/reflect) — How personality influences reasoning and opinion formation ### API Methods - [**Retain**](/developer/api/retain) — Store information in memory banks diff --git a/hindsight-docs/docs/developer/retain.md b/hindsight-docs/docs/developer/retain.md index 1eb3f3a4..0384da01 100644 --- a/hindsight-docs/docs/developer/retain.md +++ b/hindsight-docs/docs/developer/retain.md @@ -188,5 +188,5 @@ All stored in your isolated **memory bank**, ready for `recall()` and `reflect() ## Next Steps - [**Recall**](./retrieval) — How multi-strategy search retrieves relevant memories -- [**Reflect**](./personality) — How personality influences reasoning and opinion formation +- [**Reflect**](./reflect) — How personality influences reasoning and opinion formation - [API Reference](./api/retain) — Code examples for retaining memories diff --git a/hindsight-docs/docs/developer/retrieval.md b/hindsight-docs/docs/developer/retrieval.md index 2bfee56b..91c07204 100644 --- a/hindsight-docs/docs/developer/retrieval.md +++ b/hindsight-docs/docs/developer/retrieval.md @@ -203,4 +203,4 @@ The **fusion** of all four gives you exactly what you're looking for, even thoug ## Next Steps - [**Retain**](./retain) — How memories are stored with rich context -- [**Reflect**](./personality) — How personality influences reasoning +- [**Reflect**](./reflect) — How personality influences reasoning diff --git a/scripts/generate-clients.sh b/scripts/generate-clients.sh index 3bbe97a1..56264701 100755 --- a/scripts/generate-clients.sh +++ b/scripts/generate-clients.sh @@ -76,6 +76,14 @@ if [ -f "$WRAPPER_FILE" ]; then cp "$WRAPPER_FILE" "$WRAPPER_BACKUP" fi +# Backup the README.md +README_FILE="$PYTHON_CLIENT_DIR/README.md" +README_BACKUP="/tmp/hindsight_python_readme_backup.md" +if [ -f "$README_FILE" ]; then + echo "📦 Backing up README.md" + cp "$README_FILE" "$README_BACKUP" +fi + # Remove old generated code (but keep config and maintained files) if [ -d "$PYTHON_CLIENT_DIR/hindsight_client_api" ]; then echo "Removing old generated code..." @@ -115,6 +123,13 @@ if [ -f "$WRAPPER_BACKUP" ]; then rm "$WRAPPER_BACKUP" fi +# Restore the README.md +if [ -f "$README_BACKUP" ]; then + echo "📦 Restoring README.md" + cp "$README_BACKUP" "$README_FILE" + rm "$README_BACKUP" +fi + # Keep our custom pyproject.toml (don't let generator overwrite it) if [ -f "setup.py" ]; then echo "Note: setup.py generated but we're using pyproject.toml" @@ -162,7 +177,7 @@ echo "Rust client: $RUST_CLIENT_DIR" echo "Python client: $PYTHON_CLIENT_DIR" echo "TypeScript client: $TYPESCRIPT_CLIENT_DIR" echo "" -echo "⚠️ Important: The maintained wrapper hindsight_client.py was preserved" +echo "⚠️ Important: The maintained wrapper hindsight_client.py and README.md were preserved" echo "" echo "Next steps:" echo " 1. Review the generated clients" diff --git a/uv.lock b/uv.lock index 408cebe0..055c40bd 100644 --- a/uv.lock +++ b/uv.lock @@ -1155,7 +1155,7 @@ wheels = [ [[package]] name = "hindsight-all" -version = "0.0.19" +version = "0.0.20" source = { editable = "hindsight" } dependencies = [ { name = "hindsight-api" }, @@ -1179,7 +1179,7 @@ provides-extras = ["test"] [[package]] name = "hindsight-api" -version = "0.0.19" +version = "0.0.20" source = { editable = "hindsight-api" } dependencies = [ { name = "alembic" }, @@ -1283,7 +1283,7 @@ dev = [ [[package]] name = "hindsight-client" -version = "0.0.19" +version = "0.0.20" source = { editable = "hindsight-clients/python" } dependencies = [ { name = "aiohttp" }, @@ -1315,7 +1315,7 @@ provides-extras = ["test"] [[package]] name = "hindsight-dev" -version = "0.0.19" +version = "0.0.20" source = { editable = "hindsight-dev" } dependencies = [ { name = "hindsight-api" },