Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
with:
components: rustfmt
- run: cargo fmt --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
with:
components: clippy
- uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
- run: cargo clippy --all-targets --all-features -- -D warnings

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
- uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
- run: cargo test --lib --all-features
- run: cargo test --test '*_types'
- run: cargo test --test wire_format_peers
- run: cargo test --test compile_assertions

doc:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
- uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
- run: cargo doc --all-features --no-deps
env:
RUSTDOCFLAGS: "-D warnings"

audit:
name: Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
target/
/target
Cargo.lock
*.rs.bk
*.pdb
.DS_Store
.env
2 changes: 1 addition & 1 deletion .openapi-inventory.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OpenAPI Schema Inventory — Honcho v3.0.3

Source: `docs/v3/openapi.json`
Source: `tests/schemas/openapi.json`

## Summary

Expand Down
10 changes: 5 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- gitnexus:start -->
# GitNexus — Code Intelligence

This project is indexed by GitNexus as **rust** (1992 symbols, 4528 relationships, 173 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
This project is indexed by GitNexus as **honcho-rust-sdk** (2147 symbols, 4981 relationships, 186 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.

> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.

Expand All @@ -26,10 +26,10 @@ This project is indexed by GitNexus as **rust** (1992 symbols, 4528 relationship

| Resource | Use for |
|----------|---------|
| `gitnexus://repo/rust/context` | Codebase overview, check index freshness |
| `gitnexus://repo/rust/clusters` | All functional areas |
| `gitnexus://repo/rust/processes` | All execution flows |
| `gitnexus://repo/rust/process/{name}` | Step-by-step execution trace |
| `gitnexus://repo/honcho-rust-sdk/context` | Codebase overview, check index freshness |
| `gitnexus://repo/honcho-rust-sdk/clusters` | All functional areas |
| `gitnexus://repo/honcho-rust-sdk/processes` | All execution flows |
| `gitnexus://repo/honcho-rust-sdk/process/{name}` | Step-by-step execution trace |

## CLI

Expand Down
10 changes: 5 additions & 5 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- gitnexus:start -->
# GitNexus — Code Intelligence

This project is indexed by GitNexus as **rust** (1992 symbols, 4528 relationships, 173 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
This project is indexed by GitNexus as **honcho-rust-sdk** (2147 symbols, 4981 relationships, 186 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.

> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.

Expand All @@ -26,10 +26,10 @@ This project is indexed by GitNexus as **rust** (1992 symbols, 4528 relationship

| Resource | Use for |
|----------|---------|
| `gitnexus://repo/rust/context` | Codebase overview, check index freshness |
| `gitnexus://repo/rust/clusters` | All functional areas |
| `gitnexus://repo/rust/processes` | All execution flows |
| `gitnexus://repo/rust/process/{name}` | Step-by-step execution trace |
| `gitnexus://repo/honcho-rust-sdk/context` | Codebase overview, check index freshness |
| `gitnexus://repo/honcho-rust-sdk/clusters` | All functional areas |
| `gitnexus://repo/honcho-rust-sdk/processes` | All execution flows |
| `gitnexus://repo/honcho-rust-sdk/process/{name}` | Step-by-step execution trace |

## CLI

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version = "0.1.1"
edition = "2024"
rust-version = "1.88"
license = "MIT"
repository = "https://github.com/plastic-labs/honcho"
homepage = "https://github.com/plastic-labs/honcho"
repository = "https://github.com/leszek3737/honcho-rust-sdk"
homepage = "https://github.com/leszek3737/honcho-rust-sdk"
documentation = "https://docs.rs/honcho-ai"
description = "Rust SDK for Honcho — AI agent memory and social cognition infrastructure"
keywords = ["honcho", "ai", "memory", "agents"]
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# honcho-ai

![rust-sdk](https://github.com/plastic-labs/honcho/actions/workflows/rust-sdk.yml/badge.svg)
![CI](https://github.com/leszek3737/honcho-rust-sdk/actions/workflows/ci.yml/badge.svg)

> **Status:** Alpha — do not use in production. This SDK is under active development.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The CI status badge was removed. Since this PR establishes a new GitHub Actions workflow, the badge should be updated to point to the new repository's workflow instead of being deleted. This provides immediate visibility into the build status for users and contributors.

Suggested change
> **Status:** Alpha — do not use in production. This SDK is under active development.
![CI](https://github.com/leszek3737/honcho-rust-sdk/actions/workflows/rust-sdk.yml/badge.svg)
> **Status:** Alpha — do not use in production. This SDK is under active development.


Expand Down Expand Up @@ -244,8 +244,9 @@ These APIs have no equivalent in the Python/TypeScript SDKs:

## Links

- [Repository](https://github.com/leszek3737/honcho-rust-sdk)
- [Honcho Server](https://github.com/plastic-labs/honcho)
- [OpenAPI Spec](./tests/schemas/openapi.json)
- [Documentation](https://docs.rs/honcho-ai)
- [Repository](https://github.com/plastic-labs/honcho)
- [OpenAPI Spec](https://github.com/plastic-labs/honcho/tree/main/docs)
- [Migration Guide](./MIGRATION.md)
- [Changelog](./CHANGELOG.md)
2 changes: 1 addition & 1 deletion tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn openapi_spec() -> &'static serde_json::Value {
SCHEMAS.get_or_init(|| {
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set");
let path = std::env::var("HONCHO_OPENAPI_SPEC").map_or_else(
|_| Path::new(&manifest_dir).join("../../docs/v3/openapi.json"),
|_| Path::new(&manifest_dir).join("tests/schemas/openapi.json"),
PathBuf::from,
);
let content = std::fs::read_to_string(&path)
Expand Down
Loading
Loading