brainwires-agent 0.11.0

Agent coordination primitives + multi-agent patterns for the Brainwires Agent Framework — communication hub, file/resource locks, task manager/queue, git coordination, contract net, saga, optimistic concurrency, market allocation, workflow graph, three-state model. LLM-driven workhorses live in `brainwires-inference`.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.91"
name = "brainwires-agent"
version = "0.11.0"
authors = ["Brainwires"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Agent coordination primitives + multi-agent patterns for the Brainwires Agent Framework — communication hub, file/resource locks, task manager/queue, git coordination, contract net, saga, optimistic concurrency, market allocation, workflow graph, three-state model. LLM-driven workhorses live in `brainwires-inference`."
homepage = "https://github.com/Brainwires/brainwires-framework"
documentation = "https://docs.rs/brainwires-agent"
readme = "README.md"
keywords = [
    "ai-agents",
    "multi-agent",
    "task-orchestration",
    "llm",
    "autonomous",
]
categories = ["development-tools"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Brainwires/brainwires-framework"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["native"]
native = [
    "dep:git2",
    "dep:libc",
    "brainwires-core/native",
    "brainwires-call-policy/native",
]
otel = ["dep:opentelemetry"]
telemetry = [
    "dep:brainwires-telemetry",
    "brainwires-telemetry/native",
]
wasm = [
    "brainwires-core/wasm",
    "brainwires-call-policy/wasm",
]

[lib]
name = "brainwires_agent"
path = "src/lib.rs"

[[example]]
name = "contract_net"
path = "examples/contract_net.rs"

[[example]]
name = "optimistic_concurrency"
path = "examples/optimistic_concurrency.rs"

[[example]]
name = "saga_compensation"
path = "examples/saga_compensation.rs"

[[example]]
name = "task_queue_scheduling"
path = "examples/task_queue_scheduling.rs"

[[example]]
name = "three_state_model"
path = "examples/three_state_model.rs"

[[example]]
name = "workflow_dag"
path = "examples/workflow_dag.rs"

[[test]]
name = "communication_hub"
path = "tests/communication_hub.rs"

[[test]]
name = "coordination_patterns"
path = "tests/coordination_patterns.rs"

[[test]]
name = "file_lock_coordination"
path = "tests/file_lock_coordination.rs"

[[test]]
name = "task_lifecycle"
path = "tests/task_lifecycle.rs"

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.brainwires-call-policy]
version = "0.11.0"
default-features = false

[dependencies.brainwires-core]
version = "0.11.0"
default-features = false

[dependencies.brainwires-telemetry]
version = "0.11.0"
optional = true
default-features = false

[dependencies.brainwires-tool-builtins]
version = "0.11.0"
default-features = false

[dependencies.brainwires-tool-runtime]
version = "0.11.0"
default-features = false

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.futures]
version = "0.3"

[dependencies.git2]
version = "0.20"
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.opentelemetry]
version = "0.28"
optional = true

[dependencies.petgraph]
version = "0.7"

[dependencies.regex]
version = "1"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tokio]
version = "1.43"
features = [
    "sync",
    "time",
    "rt",
    "macros",
    "process",
]

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dev-dependencies.brainwires-knowledge]
version = "0.11.0"
features = ["knowledge"]
default-features = false

[dev-dependencies.brainwires-permission]
version = "0.11.0"

[dev-dependencies.brainwires-prompting]
version = "0.11.0"
features = ["knowledge"]
default-features = false

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1.43"
features = [
    "full",
    "test-util",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"