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
23 lines
626 B
TOML
23 lines
626 B
TOML
[package]
|
|
name = "maestro-hooks"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
description = "Agent activity hooks (#106): shipped script + idempotent settings.json installer"
|
|
|
|
[features]
|
|
default = ["haiku-autoname"]
|
|
# Also report the first prompt of a turn, so the daemon can name the session
|
|
# after it (#131). Off, no `UserPromptSubmit` entry is installed and the
|
|
# script never posts a prompt anywhere.
|
|
haiku-autoname = []
|
|
|
|
[dependencies]
|
|
serde_json.workspace = true
|
|
thiserror.workspace = true
|
|
|
|
[dev-dependencies]
|
|
tempfile.workspace = true
|