@caddis/cli 0.4.102 → 0.4.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/README.md +8 -0
  2. package/bundles/antigravity-plugin/plugin.json +1 -1
  3. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
  4. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
  5. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
  6. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
  7. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
  8. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
  9. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
  10. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
  11. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
  12. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
  13. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
  14. package/bundles/antigravity-plugin/scripts/caddis_guide.json +9 -9
  15. package/bundles/antigravity-plugin/skills/_registry.md +2 -1
  16. package/bundles/antigravity-plugin/skills/graph-email/SKILL.md +6 -5
  17. package/bundles/{antigravity-plugin-extras/skills/graph-email → antigravity-plugin/skills/send-email}/SKILL.md +13 -2
  18. package/bundles/{antigravity-plugin-extras/skills/graph-email → antigravity-plugin/skills/send-email}/email.toml.example +1 -1
  19. package/bundles/{antigravity-plugin-extras/skills/graph-email → antigravity-plugin/skills/send-email}/scripts/send_email.py +22 -7
  20. package/bundles/antigravity-plugin-extras/plugin.json +1 -1
  21. package/bundles/antigravity-plugin-extras/skills/_registry.md +0 -1
  22. package/bundles/codex/.codex/skills/devops/send-email/SKILL.md +64 -0
  23. package/bundles/codex/.codex/skills/devops/send-email/email.toml.example +44 -0
  24. package/bundles/codex/.codex/skills/devops/send-email/scripts/send_email.py +447 -0
  25. package/bundles/manifest.json +3 -3
  26. package/dist/cli.js +894 -234
  27. package/package.json +1 -1
@@ -0,0 +1,447 @@
1
+ #!/usr/bin/env python3
2
+ """Send one email with Microsoft Graph (sendMail, client credentials) or SMTP.
3
+
4
+ Settings come from three places. The first one that has a value wins:
5
+ 1. a command-line flag
6
+ 2. an environment variable (CADDIS_EMAIL_*)
7
+ 3. the config file ~/.caddis/email.toml (see email.toml.example)
8
+
9
+ Secrets (Graph client secret, SMTP password) are never read from the config file. They come from
10
+ the process environment or from the env file named by `env_file`. The script never prints a
11
+ secret or a token. Errors show the provider, the HTTP or SMTP status code and the error name only.
12
+
13
+ Exit codes: 0 done, 1 provider error, 2 missing or invalid setting.
14
+ Standard library only.
15
+ """
16
+ from __future__ import annotations
17
+
18
+ import argparse
19
+ import base64
20
+ import html
21
+ import json
22
+ import mimetypes
23
+ import os
24
+ import re
25
+ import smtplib
26
+ import ssl
27
+ import sys
28
+ import urllib.error
29
+ import urllib.parse
30
+ import urllib.request
31
+ from dataclasses import dataclass
32
+ from email.message import EmailMessage
33
+ from pathlib import Path
34
+
35
+ import tomllib
36
+
37
+ PROVIDERS = ("graph", "smtp")
38
+ SECURITY = ("starttls", "ssl", "none")
39
+ SMTP_PORTS = {"starttls": 587, "ssl": 465, "none": 25}
40
+ DEFAULT_GRAPH_KEYS = ("ALERT_GRAPH_TENANT_ID", "ALERT_GRAPH_CLIENT_ID", "ALERT_GRAPH_CLIENT_SECRET")
41
+ DEFAULT_SMTP_PASSWORD_KEY = "EMAIL_SMTP_PASSWORD"
42
+ STYLE = "font-family:Segoe UI,Arial,sans-serif;font-size:14px;line-height:1.5;color:#222"
43
+ SIGN_OFF = re.compile(r"^(thanks|thank you|many thanks|regards|kind regards|best regards|best|cheers),?$", re.I)
44
+
45
+
46
+ class ConfigError(Exception):
47
+ """A setting is invalid. The message never holds a secret."""
48
+
49
+
50
+ # ---------------------------------------------------------------- markdown
51
+
52
+ def extract_section(md: str) -> str:
53
+ md = re.sub(r"\A---\n.*?\n---\n", "", md, flags=re.DOTALL)
54
+ m = re.search(r"<!-- email-start -->(.*?)<!-- email-end -->", md, flags=re.DOTALL)
55
+ return m.group(1) if m else md
56
+
57
+
58
+ def inline(text: str) -> str:
59
+ text = html.escape(text)
60
+ text = re.sub(r"\*\*(.+?)\*\*", r"<b>\1</b>", text)
61
+ return re.sub(r"`(.+?)`", r"<code>\1</code>", text)
62
+
63
+
64
+ def md_to_html(md: str) -> str:
65
+ md = extract_section(md)
66
+ out, para, lines, i = [], [], md.splitlines(), 0
67
+
68
+ def flush():
69
+ # Wrapped lines join into one paragraph, as in Markdown. A line keeps its break when it
70
+ # ends in "\" or two spaces, or when it is a sign-off such as "Thanks," before the name.
71
+ if para:
72
+ text = ""
73
+ for n, raw in enumerate(para):
74
+ hard = raw.endswith(" ") or raw.rstrip().endswith("\\")
75
+ line = raw.strip().removesuffix("\\").rstrip()
76
+ text += inline(line)
77
+ if n < len(para) - 1:
78
+ text += "<br>" if hard or SIGN_OFF.match(line) else " "
79
+ out.append(f"<p>{text}</p>")
80
+ para.clear()
81
+
82
+ def cells(row):
83
+ return [c.strip() for c in row.strip("|").split("|")]
84
+
85
+ while i < len(lines):
86
+ s = lines[i].strip()
87
+ if not s:
88
+ flush()
89
+ elif s == "---":
90
+ flush()
91
+ out.append("<hr>")
92
+ elif s.startswith("#"):
93
+ flush()
94
+ n = min(len(s) - len(s.lstrip("#")), 4)
95
+ out.append(f"<h{n}>{inline(s.lstrip('#').strip())}</h{n}>")
96
+ elif s.startswith("|") and i + 1 < len(lines) and re.match(r"^\|[\s:|-]+\|$", lines[i + 1].strip()):
97
+ flush()
98
+ rows = [s]
99
+ i += 2
100
+ while i < len(lines) and lines[i].strip().startswith("|"):
101
+ rows.append(lines[i].strip())
102
+ i += 1
103
+ i -= 1
104
+ t = '<table style="border-collapse:collapse" border="1" cellpadding="6"><tr>'
105
+ t += "".join(f"<th>{inline(c)}</th>" for c in cells(rows[0])) + "</tr>"
106
+ for r in rows[1:]:
107
+ t += "<tr>" + "".join(f"<td>{inline(c)}</td>" for c in cells(r)) + "</tr>"
108
+ out.append(t + "</table>")
109
+ elif re.match(r"^[-*] ", s) or re.match(r"^\d+[.)] ", s):
110
+ flush()
111
+ ordered = bool(re.match(r"^\d", s))
112
+ marker = re.compile(r"^\s*\d+[.)] " if ordered else r"^\s*[-*] ")
113
+ start = int(re.match(r"\d+", s).group()) if ordered else 1
114
+ items = []
115
+ while i < len(lines) and marker.match(lines[i]):
116
+ item = marker.sub("", lines[i])
117
+ i += 1
118
+ while (i < len(lines) and lines[i].startswith(" ") and lines[i].strip()
119
+ and not marker.match(lines[i])):
120
+ item += " " + lines[i].strip()
121
+ i += 1
122
+ items.append(f"<li>{inline(item)}</li>")
123
+ i -= 1
124
+ tag = "ol" if ordered else "ul"
125
+ attr = f' start="{start}"' if start != 1 else ""
126
+ out.append(f"<{tag}{attr}>" + "".join(items) + f"</{tag}>")
127
+ else:
128
+ para.append(lines[i])
129
+ i += 1
130
+ flush()
131
+ return f'<div style="{STYLE}">' + "\n".join(out) + "</div>"
132
+
133
+
134
+ # ---------------------------------------------------------------- config
135
+
136
+ @dataclass
137
+ class Config:
138
+ provider: str = "graph"
139
+ sender: str = ""
140
+ env_file: str = ""
141
+ # graph: names of the keys that hold the secrets (not the secrets)
142
+ tenant_key: str = DEFAULT_GRAPH_KEYS[0]
143
+ client_id_key: str = DEFAULT_GRAPH_KEYS[1]
144
+ client_secret_key: str = DEFAULT_GRAPH_KEYS[2]
145
+ # smtp
146
+ smtp_host: str = ""
147
+ smtp_port: int = 0
148
+ smtp_security: str = "starttls"
149
+ smtp_username: str = ""
150
+ smtp_password_key: str = DEFAULT_SMTP_PASSWORD_KEY
151
+ smtp_timeout: float = 30.0
152
+ smtp_allow_insecure_auth: bool = False
153
+
154
+
155
+ def config_path(flag: str | None) -> Path:
156
+ chosen = flag or os.environ.get("CADDIS_EMAIL_CONFIG")
157
+ return Path(chosen).expanduser() if chosen else Path.home() / ".caddis" / "email.toml"
158
+
159
+
160
+ def read_toml(path: Path) -> dict:
161
+ if not path.is_file():
162
+ return {}
163
+ try:
164
+ return tomllib.loads(path.read_text(encoding="utf-8"))
165
+ except (tomllib.TOMLDecodeError, OSError, UnicodeDecodeError) as e:
166
+ raise ConfigError(f"cannot read config file ({type(e).__name__})") from None
167
+
168
+
169
+ def read_env(path: Path) -> dict:
170
+ out = {}
171
+ for line in path.read_text(encoding="utf-8").splitlines():
172
+ line = line.strip()
173
+ if not line or line.startswith("#") or "=" not in line:
174
+ continue
175
+ k, v = line.split("=", 1)
176
+ out[k.strip()] = v.strip().strip('"').strip("'")
177
+ return out
178
+
179
+
180
+ def _pick(flag, env_names, file_value, default=""):
181
+ """flag, then the first set env var, then the config file value, then the default."""
182
+ if flag not in (None, ""):
183
+ return flag
184
+ for name in env_names:
185
+ v = os.environ.get(name)
186
+ if v:
187
+ return v
188
+ if file_value not in (None, ""):
189
+ return file_value
190
+ return default
191
+
192
+
193
+ def _number(value, name, cast):
194
+ try:
195
+ return cast(value)
196
+ except (TypeError, ValueError):
197
+ raise ConfigError(f"{name} must be a number") from None
198
+
199
+
200
+ def load_config(a: argparse.Namespace) -> Config:
201
+ f = read_toml(config_path(a.config))
202
+ g, s = f.get("graph", {}) or {}, f.get("smtp", {}) or {}
203
+ c = Config()
204
+ c.provider = str(_pick(a.provider, ["CADDIS_EMAIL_PROVIDER"], f.get("provider"), "graph")).lower()
205
+ if c.provider not in PROVIDERS:
206
+ raise ConfigError(f"provider must be one of {', '.join(PROVIDERS)}")
207
+ c.sender = _pick(a.sender, ["CADDIS_EMAIL_SENDER", "GRAPH_EMAIL_SENDER"], f.get("sender"))
208
+ c.env_file = _pick(a.env_file, ["CADDIS_EMAIL_ENV_FILE", "GRAPH_EMAIL_ENV_FILE"], f.get("env_file"))
209
+ c.tenant_key = g.get("tenant_id_key") or c.tenant_key
210
+ c.client_id_key = g.get("client_id_key") or c.client_id_key
211
+ c.client_secret_key = g.get("client_secret_key") or c.client_secret_key
212
+ c.smtp_host = _pick(a.smtp_host, ["CADDIS_EMAIL_SMTP_HOST"], s.get("host"))
213
+ c.smtp_security = str(_pick(a.smtp_security, ["CADDIS_EMAIL_SMTP_SECURITY"], s.get("security"),
214
+ "starttls")).lower()
215
+ if c.smtp_security not in SECURITY:
216
+ raise ConfigError(f"smtp security must be one of {', '.join(SECURITY)}")
217
+ port = _pick(a.smtp_port, ["CADDIS_EMAIL_SMTP_PORT"], s.get("port"), SMTP_PORTS[c.smtp_security])
218
+ c.smtp_port = _number(port, "smtp port", int)
219
+ c.smtp_username = _pick(a.smtp_username, ["CADDIS_EMAIL_SMTP_USERNAME"], s.get("username"))
220
+ c.smtp_password_key = s.get("password_key") or c.smtp_password_key
221
+ c.smtp_timeout = _number(_pick(a.smtp_timeout, ["CADDIS_EMAIL_SMTP_TIMEOUT"], s.get("timeout"), 30),
222
+ "smtp timeout", float)
223
+ # Only a real TOML boolean true opts in; a string such as "true" does not.
224
+ c.smtp_allow_insecure_auth = s.get("allow_insecure_auth") is True
225
+ return c
226
+
227
+
228
+ def check_smtp_security(cfg: Config) -> None:
229
+ """Refuse a login (username or password) over security "none" unless the user opted in.
230
+
231
+ The message names settings only. It never holds a username, a password or a host.
232
+ """
233
+ if cfg.provider != "smtp" or cfg.smtp_security != "none" or cfg.smtp_allow_insecure_auth:
234
+ return
235
+ if cfg.smtp_username or get_secret(cfg, cfg.smtp_password_key):
236
+ raise ConfigError('smtp security is off and a login is set, so the login would go in clear text; '
237
+ 'set security to "starttls" or "ssl"')
238
+
239
+
240
+ def _env_file_values(cfg: Config) -> dict:
241
+ if not cfg.env_file:
242
+ return {}
243
+ try:
244
+ return read_env(Path(cfg.env_file).expanduser())
245
+ except (OSError, UnicodeDecodeError):
246
+ return {}
247
+
248
+
249
+ def get_secret(cfg: Config, key: str) -> str:
250
+ """The process environment first, then the env file. Never the config file."""
251
+ return os.environ.get(key) or _env_file_values(cfg).get(key, "")
252
+
253
+
254
+ def missing_settings(cfg: Config) -> list[str]:
255
+ """Names of settings that are not set. Never a value."""
256
+ miss = []
257
+ if not cfg.sender:
258
+ miss.append("sender")
259
+ if cfg.provider == "graph":
260
+ keys = (cfg.tenant_key, cfg.client_id_key, cfg.client_secret_key)
261
+ else:
262
+ if not cfg.smtp_host:
263
+ miss.append("smtp.host")
264
+ keys = (cfg.smtp_password_key,) if cfg.smtp_username else ()
265
+ absent = [k for k in keys if not get_secret(cfg, k)]
266
+ if absent:
267
+ miss.extend(["env_file"] if not cfg.env_file else absent)
268
+ return miss
269
+
270
+
271
+ # ---------------------------------------------------------------- attachments and messages
272
+
273
+ def _ctype(name: str) -> str:
274
+ return mimetypes.guess_type(name)[0] or "application/octet-stream"
275
+
276
+
277
+ def build_graph_payload(subject, html_body, to, attach_paths) -> dict:
278
+ attachments = []
279
+ for p in attach_paths:
280
+ pp = Path(p)
281
+ attachments.append({
282
+ "@odata.type": "#microsoft.graph.fileAttachment", "name": pp.name,
283
+ "contentType": _ctype(pp.name),
284
+ "contentBytes": base64.b64encode(pp.read_bytes()).decode(),
285
+ })
286
+ return {"message": {
287
+ "subject": subject, "body": {"contentType": "HTML", "content": html_body},
288
+ "toRecipients": [{"emailAddress": {"address": t}} for t in to],
289
+ "attachments": attachments}, "saveToSentItems": True}
290
+
291
+
292
+ def build_smtp_message(sender, to, subject, plain, html_body, attach_paths) -> EmailMessage:
293
+ msg = EmailMessage()
294
+ msg["From"], msg["To"], msg["Subject"] = sender, ", ".join(to), subject
295
+ msg.set_content(plain)
296
+ msg.add_alternative(html_body, subtype="html")
297
+ for p in attach_paths:
298
+ pp = Path(p)
299
+ main, _, sub = _ctype(pp.name).partition("/")
300
+ msg.add_attachment(pp.read_bytes(), maintype=main, subtype=sub or "octet-stream", filename=pp.name)
301
+ return msg
302
+
303
+
304
+ # ---------------------------------------------------------------- senders
305
+
306
+ def post(url: str, data: bytes, headers: dict, timeout: float = 30):
307
+ req = urllib.request.Request(url, data=data, headers=headers, method="POST")
308
+ try:
309
+ with urllib.request.urlopen(req, timeout=timeout) as r:
310
+ return r.status, r.read()
311
+ except urllib.error.HTTPError as e:
312
+ return e.code, e.read()
313
+
314
+
315
+ def _err_name(raw: bytes) -> str:
316
+ try:
317
+ err = json.loads(raw or b"{}").get("error", "unknown")
318
+ except (ValueError, AttributeError):
319
+ return "unknown"
320
+ if isinstance(err, dict):
321
+ err = err.get("code", "unknown")
322
+ return str(err) if re.fullmatch(r"[A-Za-z0-9_.-]{1,64}", str(err)) else "unknown"
323
+
324
+
325
+ def send_graph(cfg: Config, a, html_body: str) -> int:
326
+ tenant = get_secret(cfg, cfg.tenant_key)
327
+ tok_url = f"https://login.microsoftonline.com/{urllib.parse.quote(tenant)}/oauth2/v2.0/token"
328
+ form = urllib.parse.urlencode({
329
+ "client_id": get_secret(cfg, cfg.client_id_key), "client_secret": get_secret(cfg, cfg.client_secret_key),
330
+ "scope": "https://graph.microsoft.com/.default", "grant_type": "client_credentials",
331
+ }).encode()
332
+ try:
333
+ status, raw = post(tok_url, form, {"Content-Type": "application/x-www-form-urlencoded"})
334
+ if status != 200:
335
+ print(f"error: provider graph, token request failed, HTTP {status}, {_err_name(raw)}", file=sys.stderr)
336
+ return 1
337
+ token = json.loads(raw)["access_token"]
338
+ payload = build_graph_payload(a.subject, html_body, a.to, a.attach)
339
+ url = f"https://graph.microsoft.com/v1.0/users/{urllib.parse.quote(cfg.sender)}/sendMail"
340
+ status, raw = post(url, json.dumps(payload).encode(),
341
+ {"Authorization": f"Bearer {token}", "Content-Type": "application/json"})
342
+ except (OSError, ValueError, KeyError) as e:
343
+ print(f"error: provider graph, request failed, {type(e).__name__}", file=sys.stderr)
344
+ return 1
345
+ if status == 202:
346
+ print(f"sent: provider graph, HTTP 202 (accepted for delivery) to {', '.join(a.to)} subject '{a.subject}'")
347
+ return 0
348
+ print(f"error: provider graph, sendMail failed, HTTP {status}, {_err_name(raw)}", file=sys.stderr)
349
+ return 1
350
+
351
+
352
+ def send_smtp(cfg: Config, a, html_body: str, plain: str) -> int:
353
+ try:
354
+ msg = build_smtp_message(cfg.sender, a.to, a.subject, plain, html_body, a.attach)
355
+ password = get_secret(cfg, cfg.smtp_password_key) if cfg.smtp_username else ""
356
+ # smtplib's own default context does not check the certificate; this one does.
357
+ ctx = ssl.create_default_context()
358
+ if cfg.smtp_security == "ssl":
359
+ conn = smtplib.SMTP_SSL(cfg.smtp_host, cfg.smtp_port, timeout=cfg.smtp_timeout, context=ctx)
360
+ else:
361
+ conn = smtplib.SMTP(cfg.smtp_host, cfg.smtp_port, timeout=cfg.smtp_timeout)
362
+ with conn as s:
363
+ if cfg.smtp_security == "starttls":
364
+ s.ehlo()
365
+ s.starttls(context=ctx)
366
+ s.ehlo()
367
+ if cfg.smtp_username:
368
+ s.login(cfg.smtp_username, password)
369
+ s.send_message(msg)
370
+ except smtplib.SMTPResponseException as e:
371
+ print(f"error: provider smtp, SMTP {e.smtp_code}, {type(e).__name__}", file=sys.stderr)
372
+ return 1
373
+ except (smtplib.SMTPException, OSError) as e:
374
+ print(f"error: provider smtp, {type(e).__name__}", file=sys.stderr)
375
+ return 1
376
+ print(f"sent: provider smtp, accepted by server for {', '.join(a.to)} subject '{a.subject}'")
377
+ return 0
378
+
379
+
380
+ # ---------------------------------------------------------------- cli
381
+
382
+ def parse_args(argv=None) -> argparse.Namespace:
383
+ ap = argparse.ArgumentParser(description="Send one email with Microsoft Graph or SMTP.")
384
+ ap.add_argument("--to", action="append")
385
+ ap.add_argument("--subject")
386
+ ap.add_argument("--body-file")
387
+ ap.add_argument("--attach", action="append", default=[])
388
+ ap.add_argument("--dry-run", action="store_true", help="write <body>.preview.html, send nothing")
389
+ ap.add_argument("--check", action="store_true", help="validate settings, send nothing, print no secret")
390
+ ap.add_argument("--config", help="config file (default ~/.caddis/email.toml)")
391
+ ap.add_argument("--provider")
392
+ ap.add_argument("--sender")
393
+ ap.add_argument("--env-file")
394
+ ap.add_argument("--smtp-host")
395
+ ap.add_argument("--smtp-port")
396
+ ap.add_argument("--smtp-security")
397
+ ap.add_argument("--smtp-username")
398
+ ap.add_argument("--smtp-timeout")
399
+ a = ap.parse_args(argv)
400
+ if not a.check and not (a.to and a.subject and a.body_file):
401
+ ap.error("--to, --subject and --body-file are required (unless --check)")
402
+ return a
403
+
404
+
405
+ def check(cfg: Config) -> int:
406
+ miss = missing_settings(cfg)
407
+ print(f"provider: {cfg.provider}")
408
+ print(f"sender: {'set' if cfg.sender else 'MISSING'}")
409
+ if cfg.provider == "smtp":
410
+ print(f"smtp: host {'set' if cfg.smtp_host else 'MISSING'}, port {cfg.smtp_port}, "
411
+ f"security {cfg.smtp_security}, login {'yes' if cfg.smtp_username else 'no'}")
412
+ if miss:
413
+ print(f"missing: {', '.join(miss)}")
414
+ return 2
415
+ print("check ok: all settings and credentials are present (nothing sent)")
416
+ return 0
417
+
418
+
419
+ def main(argv=None) -> int:
420
+ a = parse_args(argv)
421
+ if a.dry_run and not a.check:
422
+ body = md_to_html(Path(a.body_file).read_text(encoding="utf-8"))
423
+ out = Path(a.body_file).with_suffix(".preview.html")
424
+ out.write_text(f"<html><body>{body}</body></html>", encoding="utf-8")
425
+ print(f"dry run: preview written to {out}; nothing sent")
426
+ return 0
427
+ try:
428
+ cfg = load_config(a)
429
+ check_smtp_security(cfg)
430
+ except ConfigError as e:
431
+ print(f"error: {e}", file=sys.stderr)
432
+ return 2
433
+ if a.check:
434
+ return check(cfg)
435
+ miss = missing_settings(cfg)
436
+ if miss:
437
+ print(f"error: missing settings for provider {cfg.provider}: {', '.join(miss)}", file=sys.stderr)
438
+ return 2
439
+ md = Path(a.body_file).read_text(encoding="utf-8")
440
+ html_body = md_to_html(md)
441
+ if cfg.provider == "smtp":
442
+ return send_smtp(cfg, a, html_body, extract_section(md).strip())
443
+ return send_graph(cfg, a, html_body)
444
+
445
+
446
+ if __name__ == "__main__":
447
+ sys.exit(main())
@@ -1,8 +1,8 @@
1
1
  {
2
- "poolVersion": "1.3.186",
2
+ "poolVersion": "1.3.188",
3
3
  "bundles": {
4
- "antigravity-plugin": "1.3.186",
5
- "antigravity-plugin-extras": "1.3.51",
4
+ "antigravity-plugin": "1.3.188",
5
+ "antigravity-plugin-extras": "1.3.52",
6
6
  "codex": "unknown"
7
7
  }
8
8
  }