test: cover hook deliver default (#533) (thanks @mcinteerj)
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
- Agent: add claude-cli/opus-4.5 runner via Claude CLI with resume support (tools disabled).
|
- Agent: add claude-cli/opus-4.5 runner via Claude CLI with resume support (tools disabled).
|
||||||
- CLI: move `clawdbot message` to subcommands (`message send|poll|…`), fold Discord/Slack/Telegram/WhatsApp tools into `message`, and require `--provider` unless only one provider is configured.
|
- CLI: move `clawdbot message` to subcommands (`message send|poll|…`), fold Discord/Slack/Telegram/WhatsApp tools into `message`, and require `--provider` unless only one provider is configured.
|
||||||
- CLI: improve `logs` output (pretty/plain/JSONL), add gateway unreachable hint, and document logging.
|
- CLI: improve `logs` output (pretty/plain/JSONL), add gateway unreachable hint, and document logging.
|
||||||
|
- Hooks: default hook agent delivery to true. (#533) — thanks @mcinteerj
|
||||||
- WhatsApp: route queued replies to the original sender instead of the bot's own number. (#534) — thanks @mcinteerj
|
- WhatsApp: route queued replies to the original sender instead of the bot's own number. (#534) — thanks @mcinteerj
|
||||||
- Models: add OAuth expiry checks in doctor, expanded `models status` auth output (missing auth + `--check` exit codes). (#538) — thanks @latitudeki5223
|
- Models: add OAuth expiry checks in doctor, expanded `models status` auth output (missing auth + `--check` exit codes). (#538) — thanks @latitudeki5223
|
||||||
- Deps: bump Pi to 0.40.0 and drop pi-ai patch (upstream 429 fix). (#543) — thanks @mcinteerj
|
- Deps: bump Pi to 0.40.0 and drop pi-ai patch (upstream 429 fix). (#543) — thanks @mcinteerj
|
||||||
|
|||||||
@@ -66,6 +66,16 @@ describe("gateway hooks helpers", () => {
|
|||||||
expect(ok.value.sessionKey).toBe("hook:fixed");
|
expect(ok.value.sessionKey).toBe("hook:fixed");
|
||||||
expect(ok.value.provider).toBe("last");
|
expect(ok.value.provider).toBe("last");
|
||||||
expect(ok.value.name).toBe("Hook");
|
expect(ok.value.name).toBe("Hook");
|
||||||
|
expect(ok.value.deliver).toBe(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
const explicitNoDeliver = normalizeAgentPayload(
|
||||||
|
{ message: "hello", deliver: false },
|
||||||
|
{ idFactory: () => "fixed" },
|
||||||
|
);
|
||||||
|
expect(explicitNoDeliver.ok).toBe(true);
|
||||||
|
if (explicitNoDeliver.ok) {
|
||||||
|
expect(explicitNoDeliver.value.deliver).toBe(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
const imsg = normalizeAgentPayload(
|
const imsg = normalizeAgentPayload(
|
||||||
|
|||||||
Reference in New Issue
Block a user