@caddis/cli 0.4.116 → 0.4.117

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 (22) 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 +5 -4
  15. package/bundles/antigravity-plugin/skills/send-email/SKILL.md +16 -5
  16. package/bundles/antigravity-plugin/skills/send-email/email.toml.example +4 -0
  17. package/bundles/antigravity-plugin/skills/send-email/scripts/send_email.py +10 -3
  18. package/bundles/codex/.codex/skills/devops/send-email/SKILL.md +16 -5
  19. package/bundles/codex/.codex/skills/devops/send-email/email.toml.example +4 -0
  20. package/bundles/codex/.codex/skills/devops/send-email/scripts/send_email.py +10 -3
  21. package/bundles/manifest.json +2 -2
  22. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "caddis",
3
- "version": "1.3.200",
3
+ "version": "1.3.201",
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.199",
4
- "generated": "2026-11-14 05:01 UTC",
3
+ "version": "1.3.200",
4
+ "generated": "2026-11-15 01:51 UTC",
5
5
  "commands": [
6
6
  {
7
7
  "name": "add-rules",
@@ -10,7 +10,8 @@ Arguments: $ARGUMENTS
10
10
  1. Read the skill `send-email` first and follow it.
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
- 4. Subject: `caddis-<app-name> <subject>`. Take the app name from the project folder. If the owner gave subject words, use them.
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/`.
13
+ 4. Body: write it for its final reader, ready to forward with no edits (`Hi,` or `Hi DBA team,`, never `Hi <owner>, below is...`). Keep it short: the answer, one small table or a few bullets, the ask. Long detail goes in an attachment.
14
+ 5. Subject: for a note to the owner alone, `caddis-<app-name> <subject>` (app name from the project folder). For a note to forward to another team, a plain subject with no prefix. If the owner gave subject words, use them.
15
+ 6. Sign-off: `Thanks,` on one line, then the `signature` value from `~/.caddis/email.toml` (when unset, the first word of `git config user.name`) on the next line. Never sign as Claude, an agent, a session name or the mailbox.
16
+ 7. Recipient: the owner's own address unless `--to` is given. If `--to` is any other address, confirm with the owner before sending.
17
+ 8. Run a dry run, check the preview, then send. Report the provider, status, recipient and subject. Keep a copy of the file in `comms/`.
@@ -37,13 +37,23 @@ For a local test relay only, set `allow_insecure_auth = true` (a boolean) in the
37
37
  ## Steps
38
38
 
39
39
  1. Write the email as a Markdown file in the project's `comms/` folder (a copy stays in the repo).
40
+ - **Write it for its final reader, ready to forward with no edits.** The owner receives it, but a note meant
41
+ for a team is written to that team: `Hi,` or `Hi DBA team,`, never `Hi <owner>, below is the note...`.
42
+ Write to the owner only when the note is for the owner alone.
43
+ - **Keep it short:** the answer first, then one small table or a few bullets, then the ask. Put long detail
44
+ in an attachment (`--attach`), not in the body.
40
45
  - Put `<!-- email-start -->` before the greeting and `<!-- email-end -->` after the sign-off. Only that part is sent.
41
46
  - 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.
47
+ - Sign off with `Thanks,` on one line and the owner's name on the next line. The name is the `signature` value
48
+ in `~/.caddis/email.toml`; when it is not set, the first word of `git config user.name`. Never sign as
49
+ Claude, an agent, a bot, a session name or the sender mailbox.
44
50
  - Write a list as `1.` or `-` lines, one item per line. Wrapped lines join into one paragraph. To force a new
45
51
  line inside a paragraph, end the line with `\`. The sign-off line keeps its break by itself.
46
- 2. Subject line: `caddis-<app-name> <short subject>`, for example `caddis-myapp Data request for the weekly report`.
52
+ - A table needs a header row and a separator row (`|---|---|` or `--- | ---`). Outer pipes are optional.
53
+ Raw HTML is escaped, so write tables in Markdown.
54
+ 2. Subject line:
55
+ - A note for the owner alone: `caddis-<app-name> <short subject>`, for example `caddis-myapp Weekly report check`.
56
+ - A note to forward to another team: a plain subject with no prefix, for example `Data request for the weekly report`.
47
57
  3. Dry run. It sends nothing, needs no credentials and writes `<file>.preview.html`:
48
58
  `python -I scripts/send_email.py --dry-run --to x@example.com --subject t --body-file <file.md>`
49
59
  Read the preview, then delete it.
@@ -55,8 +65,9 @@ For a local test relay only, set `allow_insecure_auth = true` (a boolean) in the
55
65
 
56
66
  ## Rules
57
67
 
58
- - **Default recipient is the owner's own address.** The owner forwards it. Send to a team only when the owner says so
59
- in this request. Sending to any other address is an outward action: confirm first.
68
+ - **Default recipient is the owner's own address.** The owner forwards it, so the body is written for the final
69
+ reader (Step 1). Send to a team only when the owner says so in this request. Sending to any other address is an
70
+ outward action: confirm first.
60
71
  - Never put personal data, secrets, payment data or customer text in the body.
61
72
  - Errors show the provider, the HTTP or SMTP status code and the error name. Do not retry in a loop.
62
73
  - Exit codes: 0 done, 1 provider error, 2 missing or invalid setting.
@@ -17,6 +17,10 @@ sender = ""
17
17
  # Env var: CADDIS_EMAIL_ENV_FILE. Flag: --env-file.
18
18
  env_file = ""
19
19
 
20
+ # The name under "Thanks," at the end of every email, for example "Junaid".
21
+ # Leave empty to use the first word of `git config user.name`. The script does not read it; the skill does.
22
+ signature = ""
23
+
20
24
  [graph]
21
25
  # The NAMES of the keys in the env file (or environment) that hold the values.
22
26
  # These are the defaults. Change them only if your env file uses other names.
@@ -80,7 +80,14 @@ def md_to_html(md: str) -> str:
80
80
  para.clear()
81
81
 
82
82
  def cells(row):
83
- return [c.strip() for c in row.strip("|").split("|")]
83
+ return [c.strip() for c in row.strip().strip("|").split("|")]
84
+
85
+ def is_table_start(n):
86
+ # A header row with a "|", then a separator row such as "|---|:---:|" or "--- | ---" (outer pipes optional).
87
+ if "|" not in lines[n] or n + 1 >= len(lines):
88
+ return False
89
+ sep = lines[n + 1].strip()
90
+ return "|" in sep and re.match(r"^\|?\s*:?-+:?\s*(\|\s*:?-+:?\s*)*\|?$", sep) is not None
84
91
 
85
92
  while i < len(lines):
86
93
  s = lines[i].strip()
@@ -93,11 +100,11 @@ def md_to_html(md: str) -> str:
93
100
  flush()
94
101
  n = min(len(s) - len(s.lstrip("#")), 4)
95
102
  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()):
103
+ elif is_table_start(i):
97
104
  flush()
98
105
  rows = [s]
99
106
  i += 2
100
- while i < len(lines) and lines[i].strip().startswith("|"):
107
+ while i < len(lines) and "|" in lines[i] and lines[i].strip():
101
108
  rows.append(lines[i].strip())
102
109
  i += 1
103
110
  i -= 1
@@ -37,13 +37,23 @@ For a local test relay only, set `allow_insecure_auth = true` (a boolean) in the
37
37
  ## Steps
38
38
 
39
39
  1. Write the email as a Markdown file in the project's `comms/` folder (a copy stays in the repo).
40
+ - **Write it for its final reader, ready to forward with no edits.** The owner receives it, but a note meant
41
+ for a team is written to that team: `Hi,` or `Hi DBA team,`, never `Hi <owner>, below is the note...`.
42
+ Write to the owner only when the note is for the owner alone.
43
+ - **Keep it short:** the answer first, then one small table or a few bullets, then the ask. Put long detail
44
+ in an attachment (`--attach`), not in the body.
40
45
  - Put `<!-- email-start -->` before the greeting and `<!-- email-end -->` after the sign-off. Only that part is sent.
41
46
  - 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.
47
+ - Sign off with `Thanks,` on one line and the owner's name on the next line. The name is the `signature` value
48
+ in `~/.caddis/email.toml`; when it is not set, the first word of `git config user.name`. Never sign as
49
+ Claude, an agent, a bot, a session name or the sender mailbox.
44
50
  - Write a list as `1.` or `-` lines, one item per line. Wrapped lines join into one paragraph. To force a new
45
51
  line inside a paragraph, end the line with `\`. The sign-off line keeps its break by itself.
46
- 2. Subject line: `caddis-<app-name> <short subject>`, for example `caddis-myapp Data request for the weekly report`.
52
+ - A table needs a header row and a separator row (`|---|---|` or `--- | ---`). Outer pipes are optional.
53
+ Raw HTML is escaped, so write tables in Markdown.
54
+ 2. Subject line:
55
+ - A note for the owner alone: `caddis-<app-name> <short subject>`, for example `caddis-myapp Weekly report check`.
56
+ - A note to forward to another team: a plain subject with no prefix, for example `Data request for the weekly report`.
47
57
  3. Dry run. It sends nothing, needs no credentials and writes `<file>.preview.html`:
48
58
  `python -I scripts/send_email.py --dry-run --to x@example.com --subject t --body-file <file.md>`
49
59
  Read the preview, then delete it.
@@ -55,8 +65,9 @@ For a local test relay only, set `allow_insecure_auth = true` (a boolean) in the
55
65
 
56
66
  ## Rules
57
67
 
58
- - **Default recipient is the owner's own address.** The owner forwards it. Send to a team only when the owner says so
59
- in this request. Sending to any other address is an outward action: confirm first.
68
+ - **Default recipient is the owner's own address.** The owner forwards it, so the body is written for the final
69
+ reader (Step 1). Send to a team only when the owner says so in this request. Sending to any other address is an
70
+ outward action: confirm first.
60
71
  - Never put personal data, secrets, payment data or customer text in the body.
61
72
  - Errors show the provider, the HTTP or SMTP status code and the error name. Do not retry in a loop.
62
73
  - Exit codes: 0 done, 1 provider error, 2 missing or invalid setting.
@@ -17,6 +17,10 @@ sender = ""
17
17
  # Env var: CADDIS_EMAIL_ENV_FILE. Flag: --env-file.
18
18
  env_file = ""
19
19
 
20
+ # The name under "Thanks," at the end of every email, for example "Junaid".
21
+ # Leave empty to use the first word of `git config user.name`. The script does not read it; the skill does.
22
+ signature = ""
23
+
20
24
  [graph]
21
25
  # The NAMES of the keys in the env file (or environment) that hold the values.
22
26
  # These are the defaults. Change them only if your env file uses other names.
@@ -80,7 +80,14 @@ def md_to_html(md: str) -> str:
80
80
  para.clear()
81
81
 
82
82
  def cells(row):
83
- return [c.strip() for c in row.strip("|").split("|")]
83
+ return [c.strip() for c in row.strip().strip("|").split("|")]
84
+
85
+ def is_table_start(n):
86
+ # A header row with a "|", then a separator row such as "|---|:---:|" or "--- | ---" (outer pipes optional).
87
+ if "|" not in lines[n] or n + 1 >= len(lines):
88
+ return False
89
+ sep = lines[n + 1].strip()
90
+ return "|" in sep and re.match(r"^\|?\s*:?-+:?\s*(\|\s*:?-+:?\s*)*\|?$", sep) is not None
84
91
 
85
92
  while i < len(lines):
86
93
  s = lines[i].strip()
@@ -93,11 +100,11 @@ def md_to_html(md: str) -> str:
93
100
  flush()
94
101
  n = min(len(s) - len(s.lstrip("#")), 4)
95
102
  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()):
103
+ elif is_table_start(i):
97
104
  flush()
98
105
  rows = [s]
99
106
  i += 2
100
- while i < len(lines) and lines[i].strip().startswith("|"):
107
+ while i < len(lines) and "|" in lines[i] and lines[i].strip():
101
108
  rows.append(lines[i].strip())
102
109
  i += 1
103
110
  i -= 1
@@ -1,7 +1,7 @@
1
1
  {
2
- "poolVersion": "1.3.200",
2
+ "poolVersion": "1.3.201",
3
3
  "bundles": {
4
- "antigravity-plugin": "1.3.200",
4
+ "antigravity-plugin": "1.3.201",
5
5
  "antigravity-plugin-extras": "1.3.54",
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.116",
3
+ "version": "0.4.117",
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",