The usage endpoint answers 403 to a setup token (inference scope only), so the poll could never work. The connector's own claude -p call already carries the week in its rate_limit_event (captured 2026-11-03: seven_day utilization 0.06 and its reset). The meter makes that call (haiku, no tools, trivial prompt) when the seven_day reading is 15 minutes stale, only while the swarm brake store reads released, and backs off per consecutive miss. Deleted usage_poll, the ureq dependency, and the quota rule that only a polled reading needed (POLLED, rejection-stands). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
868 B
TOML
31 lines
868 B
TOML
[package]
|
|
name = "claude-connector"
|
|
description = "Claude backend for the connector kit: drives the unmodified claude binary in print stream-json mode"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish = false
|
|
|
|
[[bin]]
|
|
name = "claude-connector"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
chrono = { version = "0.4", default-features = false, features = ["serde"] }
|
|
hmac = "0.12"
|
|
cultcache-rs = { git = "https://github.com/GameCult/CultLib.git", rev = "a4eae9056152335662f1115f97bf35fb00ab6d23", package = "cultcache-rs" }
|
|
model-connector = { path = "../model-connector", features = ["daemon"] }
|
|
rmp-serde = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
sha2 = "0.10"
|
|
thiserror = "2"
|
|
zeroize = "1"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[dev-dependencies]
|
|
rmpv = "1"
|