theway-core 0.1.21

theway core — stateful agent runtime + harness (Agent loop, skills, prompt templates, sessions, compaction) on top of theway-llm-provider.
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.85"
name = "theway-core"
version = "0.1.21"
authors = ["theway contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "theway core — stateful agent runtime + harness (Agent loop, skills, prompt templates, sessions, compaction) on top of theway-llm-provider."
homepage = "https://github.com/ptlzc/theway"
readme = "README.md"
license = "MIT"
repository = "https://github.com/ptlzc/theway"
resolver = "2"

[features]
default = [
    "harness",
    "default-providers",
]
default-providers = [
    "theway-llm-provider/anthropic",
    "theway-llm-provider/faux",
]
harness = [
    "dep:ignore",
    "dep:mermaid-rs-parser",
    "dep:once_cell",
    "dep:regex",
    "dep:serde_yaml",
    "dep:tracing",
    "dep:uuid",
]

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

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

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

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

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

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

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

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

[[bench]]
name = "dispatch"
path = "benches/dispatch.rs"
harness = false

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

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "serde",
]
default-features = false

[dependencies.futures]
version = "0.3"

[dependencies.ignore]
version = "0.4"
optional = true

[dependencies.mermaid-rs-parser]
version = "0.1.0"
optional = true

[dependencies.once_cell]
version = "1"
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.regex]
version = "1"
optional = true

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.strum]
version = "0.28"
features = ["derive"]

[dependencies.theway-contract]
version = "0.1.5"

[dependencies.theway-llm-provider]
version = "0.1.5"
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
]

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.uuid]
version = "1"
features = [
    "v7",
    "serde",
]
optional = true

[dev-dependencies.criterion]
version = "0.5"

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

[dev-dependencies.tests-bridge-macro]
version = "0.1.5"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "test-util",
]

[lints.clippy]
await_holding_lock = "allow"
field_reassign_with_default = "allow"
large_enum_variant = "allow"
manual_div_ceil = "allow"
module_inception = "allow"
new_without_default = "allow"
redundant_guards = "allow"
too_many_arguments = "allow"
type_complexity = "allow"