@caddis/cli 0.4.103 → 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 (20) hide show
  1. package/bundles/antigravity-plugin/plugin.json +1 -1
  2. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
  3. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
  4. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
  5. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
  6. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
  7. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
  8. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
  9. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
  10. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
  11. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
  12. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
  13. package/bundles/antigravity-plugin/scripts/caddis_guide.json +2 -2
  14. package/bundles/antigravity-plugin/skills/graph-email/SKILL.md +3 -2
  15. package/bundles/antigravity-plugin/skills/send-email/SKILL.md +4 -0
  16. package/bundles/antigravity-plugin/skills/send-email/scripts/send_email.py +22 -7
  17. package/bundles/codex/.codex/skills/devops/send-email/SKILL.md +4 -0
  18. package/bundles/codex/.codex/skills/devops/send-email/scripts/send_email.py +22 -7
  19. package/bundles/manifest.json +2 -2
  20. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "caddis",
3
- "version": "1.3.187",
3
+ "version": "1.3.188",
4
4
  "description": "caddis — agent-agnostic dev harness as an Antigravity (agy) plugin: TDD skills + commands, single-sourced with the Claude Code plugin."
5
5
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "1.3.186",
4
- "generated": "2026-11-09 12:53 UTC",
3
+ "version": "1.3.187",
4
+ "generated": "2026-11-11 02:32 UTC",
5
5
  "commands": [
6
6
  {
7
7
  "name": "add-rules",
@@ -11,5 +11,6 @@ Arguments: $ARGUMENTS
11
11
  2. If `~/.caddis/email.toml` is missing, or `--check` fails, tell the owner to type `! caddis email setup` in the prompt, then stop. The `!` runs it in their own terminal, so the secret never enters the chat. Name what is missing (setting names only, never values). Do not guess values and do not ask for a secret in the chat.
12
12
  3. The first argument is the Markdown file. If there is none, ask which file, or offer to write one in the project's `comms/` folder.
13
13
  4. Subject: `caddis-<app-name> <subject>`. Take the app name from the project folder. If the owner gave subject words, use them.
14
- 5. Recipient: the owner's own address unless `--to` is given. If `--to` is any other address, confirm with the owner before sending.
15
- 6. Run a dry run, check the preview, then send. Report the provider, status, recipient and subject. Keep a copy of the file in `comms/`.
14
+ 5. Sign-off: `Thanks,` on one line, then the owner's first name (the first word of `git config user.name`) on the next line. Never sign as Claude, an agent or the mailbox.
15
+ 6. Recipient: the owner's own address unless `--to` is given. If `--to` is any other address, confirm with the owner before sending.
16
+ 7. Run a dry run, check the preview, then send. Report the provider, status, recipient and subject. Keep a copy of the file in `comms/`.
@@ -39,6 +39,10 @@ For a local test relay only, set `allow_insecure_auth = true` (a boolean) in the
39
39
  1. Write the email as a Markdown file in the project's `comms/` folder (a copy stays in the repo).
40
40
  - Put `<!-- email-start -->` before the greeting and `<!-- email-end -->` after the sign-off. Only that part is sent.
41
41
  - Write plain, short sentences. No em dashes, no arrows, no emoji, no check marks.
42
+ - Sign off with the owner's first name: the first word of `git config user.name`. Put `Thanks,` on one line
43
+ and the name on the next line. Never sign as Claude, an agent, a bot or the sender mailbox.
44
+ - Write a list as `1.` or `-` lines, one item per line. Wrapped lines join into one paragraph. To force a new
45
+ line inside a paragraph, end the line with `\`. The sign-off line keeps its break by itself.
42
46
  2. Subject line: `caddis-<app-name> <short subject>`, for example `caddis-myapp Data request for the weekly report`.
43
47
  3. Dry run. It sends nothing, needs no credentials and writes `<file>.preview.html`:
44
48
  `python -I scripts/send_email.py --dry-run --to x@example.com --subject t --body-file <file.md>`
@@ -40,6 +40,7 @@ SMTP_PORTS = {"starttls": 587, "ssl": 465, "none": 25}
40
40
  DEFAULT_GRAPH_KEYS = ("ALERT_GRAPH_TENANT_ID", "ALERT_GRAPH_CLIENT_ID", "ALERT_GRAPH_CLIENT_SECRET")
41
41
  DEFAULT_SMTP_PASSWORD_KEY = "EMAIL_SMTP_PASSWORD"
42
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)
43
44
 
44
45
 
45
46
  class ConfigError(Exception):
@@ -65,8 +66,17 @@ def md_to_html(md: str) -> str:
65
66
  out, para, lines, i = [], [], md.splitlines(), 0
66
67
 
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.
68
71
  if para:
69
- out.append("<p>" + " ".join(inline(p) for p in para) + "</p>")
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>")
70
80
  para.clear()
71
81
 
72
82
  def cells(row):
@@ -96,21 +106,26 @@ def md_to_html(md: str) -> str:
96
106
  for r in rows[1:]:
97
107
  t += "<tr>" + "".join(f"<td>{inline(c)}</td>" for c in cells(r)) + "</tr>"
98
108
  out.append(t + "</table>")
99
- elif re.match(r"^[-*] ", s):
109
+ elif re.match(r"^[-*] ", s) or re.match(r"^\d+[.)] ", s):
100
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
101
114
  items = []
102
- while i < len(lines) and re.match(r"^\s*[-*] ", lines[i]):
103
- item = re.sub(r"^\s*[-*] ", "", lines[i])
115
+ while i < len(lines) and marker.match(lines[i]):
116
+ item = marker.sub("", lines[i])
104
117
  i += 1
105
118
  while (i < len(lines) and lines[i].startswith(" ") and lines[i].strip()
106
- and not re.match(r"^\s*[-*] ", lines[i])):
119
+ and not marker.match(lines[i])):
107
120
  item += " " + lines[i].strip()
108
121
  i += 1
109
122
  items.append(f"<li>{inline(item)}</li>")
110
123
  i -= 1
111
- out.append("<ul>" + "".join(items) + "</ul>")
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}>")
112
127
  else:
113
- para.append(s)
128
+ para.append(lines[i])
114
129
  i += 1
115
130
  flush()
116
131
  return f'<div style="{STYLE}">' + "\n".join(out) + "</div>"
@@ -39,6 +39,10 @@ For a local test relay only, set `allow_insecure_auth = true` (a boolean) in the
39
39
  1. Write the email as a Markdown file in the project's `comms/` folder (a copy stays in the repo).
40
40
  - Put `<!-- email-start -->` before the greeting and `<!-- email-end -->` after the sign-off. Only that part is sent.
41
41
  - Write plain, short sentences. No em dashes, no arrows, no emoji, no check marks.
42
+ - Sign off with the owner's first name: the first word of `git config user.name`. Put `Thanks,` on one line
43
+ and the name on the next line. Never sign as Claude, an agent, a bot or the sender mailbox.
44
+ - Write a list as `1.` or `-` lines, one item per line. Wrapped lines join into one paragraph. To force a new
45
+ line inside a paragraph, end the line with `\`. The sign-off line keeps its break by itself.
42
46
  2. Subject line: `caddis-<app-name> <short subject>`, for example `caddis-myapp Data request for the weekly report`.
43
47
  3. Dry run. It sends nothing, needs no credentials and writes `<file>.preview.html`:
44
48
  `python -I scripts/send_email.py --dry-run --to x@example.com --subject t --body-file <file.md>`
@@ -40,6 +40,7 @@ SMTP_PORTS = {"starttls": 587, "ssl": 465, "none": 25}
40
40
  DEFAULT_GRAPH_KEYS = ("ALERT_GRAPH_TENANT_ID", "ALERT_GRAPH_CLIENT_ID", "ALERT_GRAPH_CLIENT_SECRET")
41
41
  DEFAULT_SMTP_PASSWORD_KEY = "EMAIL_SMTP_PASSWORD"
42
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)
43
44
 
44
45
 
45
46
  class ConfigError(Exception):
@@ -65,8 +66,17 @@ def md_to_html(md: str) -> str:
65
66
  out, para, lines, i = [], [], md.splitlines(), 0
66
67
 
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.
68
71
  if para:
69
- out.append("<p>" + " ".join(inline(p) for p in para) + "</p>")
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>")
70
80
  para.clear()
71
81
 
72
82
  def cells(row):
@@ -96,21 +106,26 @@ def md_to_html(md: str) -> str:
96
106
  for r in rows[1:]:
97
107
  t += "<tr>" + "".join(f"<td>{inline(c)}</td>" for c in cells(r)) + "</tr>"
98
108
  out.append(t + "</table>")
99
- elif re.match(r"^[-*] ", s):
109
+ elif re.match(r"^[-*] ", s) or re.match(r"^\d+[.)] ", s):
100
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
101
114
  items = []
102
- while i < len(lines) and re.match(r"^\s*[-*] ", lines[i]):
103
- item = re.sub(r"^\s*[-*] ", "", lines[i])
115
+ while i < len(lines) and marker.match(lines[i]):
116
+ item = marker.sub("", lines[i])
104
117
  i += 1
105
118
  while (i < len(lines) and lines[i].startswith(" ") and lines[i].strip()
106
- and not re.match(r"^\s*[-*] ", lines[i])):
119
+ and not marker.match(lines[i])):
107
120
  item += " " + lines[i].strip()
108
121
  i += 1
109
122
  items.append(f"<li>{inline(item)}</li>")
110
123
  i -= 1
111
- out.append("<ul>" + "".join(items) + "</ul>")
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}>")
112
127
  else:
113
- para.append(s)
128
+ para.append(lines[i])
114
129
  i += 1
115
130
  flush()
116
131
  return f'<div style="{STYLE}">' + "\n".join(out) + "</div>"
@@ -1,7 +1,7 @@
1
1
  {
2
- "poolVersion": "1.3.187",
2
+ "poolVersion": "1.3.188",
3
3
  "bundles": {
4
- "antigravity-plugin": "1.3.187",
4
+ "antigravity-plugin": "1.3.188",
5
5
  "antigravity-plugin-extras": "1.3.52",
6
6
  "codex": "unknown"
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caddis/cli",
3
- "version": "0.4.103",
3
+ "version": "0.4.104",
4
4
  "description": "Install, update and diagnose the caddis dev harness across every coding agent you use (Claude Code, agy/Antigravity, and more).",
5
5
  "keywords": [
6
6
  "caddis",