nano-banana: emit MEDIA token for generated images (#271)
This commit is contained in:
@@ -56,6 +56,7 @@
|
|||||||
- Docs: document systemd lingering and logged-in session requirements on macOS/Windows.
|
- Docs: document systemd lingering and logged-in session requirements on macOS/Windows.
|
||||||
- Auto-reply: centralize tool/block/final dispatch across providers for consistent streaming + heartbeat/prefix handling. Thanks @MSch for PR #225.
|
- Auto-reply: centralize tool/block/final dispatch across providers for consistent streaming + heartbeat/prefix handling. Thanks @MSch for PR #225.
|
||||||
- Heartbeat: make HEARTBEAT_OK ack padding configurable across heartbeat and cron delivery. (#238) — thanks @jalehman
|
- Heartbeat: make HEARTBEAT_OK ack padding configurable across heartbeat and cron delivery. (#238) — thanks @jalehman
|
||||||
|
- Skills: emit MEDIA token after Nano Banana Pro image generation. Thanks @Iamadig for PR #271.
|
||||||
- WhatsApp: set sender E.164 for direct chats so owner commands work in DMs.
|
- WhatsApp: set sender E.164 for direct chats so owner commands work in DMs.
|
||||||
- Slack: keep auto-replies in the original thread when responding to thread messages. Thanks @scald for PR #251.
|
- Slack: keep auto-replies in the original thread when responding to thread messages. Thanks @scald for PR #251.
|
||||||
- Discord: surface missing-permission hints (muted/role overrides) when replies fail.
|
- Discord: surface missing-permission hints (muted/role overrides) when replies fail.
|
||||||
|
|||||||
@@ -26,4 +26,5 @@ API key
|
|||||||
Notes
|
Notes
|
||||||
- Resolutions: `1K` (default), `2K`, `4K`.
|
- Resolutions: `1K` (default), `2K`, `4K`.
|
||||||
- Use timestamps in filenames: `yyyy-mm-dd-hh-mm-ss-name.png`.
|
- Use timestamps in filenames: `yyyy-mm-dd-hh-mm-ss-name.png`.
|
||||||
|
- The script prints a `MEDIA:` line for Clawdbot to auto-attach on supported chat providers.
|
||||||
- Do not read the image back; report the saved path only.
|
- Do not read the image back; report the saved path only.
|
||||||
|
|||||||
@@ -154,6 +154,8 @@ def main():
|
|||||||
if image_saved:
|
if image_saved:
|
||||||
full_path = output_path.resolve()
|
full_path = output_path.resolve()
|
||||||
print(f"\nImage saved: {full_path}")
|
print(f"\nImage saved: {full_path}")
|
||||||
|
# Clawdbot parses MEDIA tokens and will attach the file on supported providers.
|
||||||
|
print(f"MEDIA: {full_path}")
|
||||||
else:
|
else:
|
||||||
print("Error: No image was generated in the response.", file=sys.stderr)
|
print("Error: No image was generated in the response.", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user