@caddis/cli 0.4.115 → 0.4.116
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.
- package/bundles/antigravity-plugin/plugin.json +1 -1
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/caddis_guide.json +4 -3
- package/bundles/antigravity-plugin/scripts/caddis_stories.py +18 -3
- package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +12 -0
- package/bundles/manifest.json +2 -2
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc
CHANGED
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"generated": "2026-11-14 01
|
|
3
|
+
"version": "1.3.199",
|
|
4
|
+
"generated": "2026-11-14 05:01 UTC",
|
|
5
5
|
"commands": [
|
|
6
6
|
{
|
|
7
7
|
"name": "add-rules",
|
|
@@ -341,7 +341,8 @@
|
|
|
341
341
|
"caddis_lanes.py",
|
|
342
342
|
"caddis_routing.py",
|
|
343
343
|
"caddis_spend.py",
|
|
344
|
-
"caddis_status.py"
|
|
344
|
+
"caddis_status.py",
|
|
345
|
+
"caddis_stories.py"
|
|
345
346
|
],
|
|
346
347
|
"noArgs": false,
|
|
347
348
|
"stage": "plan",
|
|
@@ -93,6 +93,7 @@ class PlanInfo:
|
|
|
93
93
|
epic: str | None
|
|
94
94
|
parent: str | None
|
|
95
95
|
stories: list[Story]
|
|
96
|
+
status: str | None = None
|
|
96
97
|
|
|
97
98
|
|
|
98
99
|
# ---------------------------------------------------------------- plan reading
|
|
@@ -138,12 +139,25 @@ def phase_headings(text: str) -> list[tuple[str, str, str | None]]:
|
|
|
138
139
|
|
|
139
140
|
|
|
140
141
|
def plain(text: str) -> str:
|
|
141
|
-
"""Short plain text: no links, bold or backticks, no `(...)` group, no dash with spaces, one space between words.
|
|
142
|
+
"""Short plain text: no links, bold or backticks, no `(...)` group, no dash with spaces, one space between words.
|
|
143
|
+
A code span keeps its brackets and dashes; only its backticks go. A `(...)` group that holds a code span still goes."""
|
|
144
|
+
code: list[str] = []
|
|
145
|
+
|
|
146
|
+
def hold(m: re.Match) -> str:
|
|
147
|
+
span = m.group(2)
|
|
148
|
+
if len(span) >= 2 and span[0] == span[-1] == " " and span.strip(" "):
|
|
149
|
+
span = span[1:-1] # CommonMark: one padding space each side
|
|
150
|
+
code.append(span)
|
|
151
|
+
return f"\x00{len(code) - 1}\x00"
|
|
152
|
+
|
|
153
|
+
text = text.replace("\x00", "")
|
|
154
|
+
text = re.sub(r"(?<!`)(`+)(?!`)(.*?)(?<!`)\1(?!`)", hold, text, flags=re.DOTALL)
|
|
142
155
|
text = re.sub(r"\[([^\]]*)\]\([^)]*\)", r"\1", text)
|
|
143
156
|
text = text.replace("**", "").replace("`", "")
|
|
144
157
|
text = re.sub(r"\([^()]*\)", "", text)
|
|
145
158
|
text = re.sub(r"\s*[—–]\s*", " ", text)
|
|
146
159
|
text = re.sub(r"\s+([,;:])(?=\s|$)", r"\1", text)
|
|
160
|
+
text = re.sub(r"\x00(\d+)\x00", lambda m: code[int(m.group(1))], text)
|
|
147
161
|
return re.sub(r"\s+", " ", text).strip()
|
|
148
162
|
|
|
149
163
|
|
|
@@ -285,7 +299,7 @@ def read_plan(path: Path) -> PlanInfo:
|
|
|
285
299
|
))
|
|
286
300
|
previous = pid
|
|
287
301
|
return PlanInfo(path=path, slug=slug, title=title, epic=_meta_text(meta, "jira_epic"),
|
|
288
|
-
parent=_meta_text(meta, "confluence_parent"), stories=out)
|
|
302
|
+
parent=_meta_text(meta, "confluence_parent"), stories=out, status=_meta_text(meta, "status"))
|
|
289
303
|
|
|
290
304
|
|
|
291
305
|
# ---------------------------------------------------------------- rendering
|
|
@@ -320,7 +334,8 @@ def _esc(text: str) -> str:
|
|
|
320
334
|
|
|
321
335
|
def storage_section(info: PlanInfo) -> str:
|
|
322
336
|
"""The plan's section in Confluence storage format: start marker (with the hash), heading, intro, table, end marker."""
|
|
323
|
-
|
|
337
|
+
status = f" (plan status: {info.status})" if info.status else ""
|
|
338
|
+
parts = [f"<h2>Development stories: {_esc(info.title + status)}</h2>",
|
|
324
339
|
f"<p>caddis writes this section from the plan file {_esc(info.path.name)}. Do not edit it. "
|
|
325
340
|
f"The next sync replaces it.</p>",
|
|
326
341
|
"<table><tbody><tr>" + "".join(f"<th>{_esc(c)}</th>" for c in COLUMNS) + "</tr>"]
|
|
@@ -508,6 +508,18 @@ Small work that does not meet a trigger skips its block.
|
|
|
508
508
|
|
|
509
509
|
**Trigger: The plan records a decision.** Record it with `/caddis:decide`.
|
|
510
510
|
|
|
511
|
+
## Step 3b — Offer to publish the stories (interactive only)
|
|
512
|
+
Skip this step in headless mode, and skip it when the plan frontmatter lacks either `jira_epic` or `confluence_parent`.
|
|
513
|
+
Run `python "${CLAUDE_PLUGIN_ROOT}/scripts/caddis_stories.py" sync --plan "<plan path>" --dry-run`.
|
|
514
|
+
- Exit 0: show the `ACTION:` and `PAGE:` lines, then ask one AskUserQuestion: "Publish the stories to the Epic page now?
|
|
515
|
+
The page shows the plan status, for example draft. `/caddis:implement` re-syncs them after each phase." On yes, run
|
|
516
|
+
the same command without `--dry-run`. On no, print `Stories: not published - run /caddis:stories <plan path> later`.
|
|
517
|
+
- Any non-zero exit, of the dry run or of the write (3 = no Confluence keys or the network failed; 1 or 4 = see
|
|
518
|
+
`/caddis:stories`): print `Stories: not published - exit <n> - <first output line>` and go on to Step 4. Never print
|
|
519
|
+
the token. The plan is still done.
|
|
520
|
+
|
|
521
|
+
The plan is a draft and may change after preflight. Publish only on the user's yes.
|
|
522
|
+
|
|
511
523
|
## Step 4 — Report
|
|
512
524
|
Output the plan path (`.caddis/plans/<feature-slug>.md`), the phase list (one line each, with each
|
|
513
525
|
phase's model tier + lane + execution), confirm the local-coder gate passed (or list the phases that need
|
package/bundles/manifest.json
CHANGED
package/package.json
CHANGED