- Rust (latest stable).
sqlx-cli:cargo install sqlx-cli- Docker (for running the local Postgres dev instance).
This runs the single-player CLI.
# Initialize local PostgreSQL-compatible DB
cd crates/sulcus
export SULCUS_DATABASE_URL=postgres://sulcus:sulcus@127.0.0.1:5433/sulcus_test
sqlx migrate run --database-url "$SULCUS_DATABASE_URL"cargo run --bin sulcus
This runs the multi-tenant API.
Bash
docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=password postgres
cd crates/sulcus-server sqlx migrate run --database-url postgres://postgres:password@localhost:5432/sulcus_test
cargo run -p sulcus-server --features server-bin
cargo run -p sulcus -- demo
cargo run -p sulcus -- add-memory "note summary" 42.0
cargo run -p sulcus -- list-ops
cargo run -p sulcus -- show-active
export SULCUS_SERVER_URL="http://localhost:3000" export SULCUS_API_KEY="test-key" cargo run -p sulcus -- sync-now
node crates/sulcus/examples/openclaw-node/index.js $(which sulcus)
python3 crates/sulcus/examples/openclaw-python/openclaw_client.py $(which sulcus)
cargo test -p sulcus --test openclaw_examples
- Testing the "Hard Line" To verify the Thermodynamics engine is working:
Run cargo test -p sulcus-core.
Check the test_spreading_activation unit test.
Ensure that heating "Node A" correctly increases the heat of "Node B" via the edge weight.