Adds a UserPromptSubmit entry that forwards the hook payload verbatim to /api/sessions/:id/prompt, gated by a haiku-autoname feature that the daemon, the CLI and the umbrella binary all forward. With it off no hook points at the route. Refs #131
47 lines
1.3 KiB
TOML
47 lines
1.3 KiB
TOML
[package]
|
|
name = "maestro-daemon"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
description = "Per-host tmux wrapper + session orchestrator"
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
default = ["haiku-autoname"]
|
|
# Name a session after its first prompt (#131): the `/api/sessions/:id/prompt`
|
|
# route, the `claude -p` naming run behind it, and the agent hook that feeds
|
|
# it. Off leaves sessions on the handle the daemon generates at spawn.
|
|
haiku-autoname = ["maestro-hooks/haiku-autoname"]
|
|
|
|
[dependencies]
|
|
axum.workspace = true
|
|
chrono.workspace = true
|
|
clap.workspace = true
|
|
dirs.workspace = true
|
|
futures-util.workspace = true
|
|
libc.workspace = true
|
|
maestro-config.workspace = true
|
|
maestro-hooks = { workspace = true, default-features = false }
|
|
maestro-names.workspace = true
|
|
maestro-protocol.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
thiserror.workspace = true
|
|
tokio.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
uuid.workspace = true
|
|
|
|
[dev-dependencies]
|
|
reqwest.workspace = true
|
|
tokio-tungstenite.workspace = true
|
|
urlencoding = "2"
|
|
tempfile.workspace = true
|
|
maestro-names.workspace = true
|
|
# `test-util` enables `start_paused` for instant timeout tests (NAP-270).
|
|
tokio = { workspace = true, features = ["test-util"] }
|