fix node build

This commit is contained in:
Nicolò Boschi 2025-12-05 01:21:30 +01:00
parent e2fea8fecc
commit c41490085a
9 changed files with 29 additions and 14 deletions

View file

@ -241,10 +241,10 @@ pub use types::{
BankProfileResponse,
CreateBankRequest,
DeleteResponse,
DispositionTraits,
DocumentResponse,
ListDocumentsResponse,
MemoryItem,
PersonalityTraits,
RecallRequest,
RecallResponse,
RecallResult,

View file

@ -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<BankProfileResponse> {
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,
},
});

View file

@ -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

View file

@ -81,7 +81,7 @@ const response = await client.reflect('my-bank', 'What do you think about remote
</Tabs>
:::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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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" },