@caddis/cli 0.4.69 → 0.4.71
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/caddis_budget.py +0 -38
- package/bundles/antigravity-plugin/scripts/caddis_coordinate.py +1083 -0
- package/bundles/antigravity-plugin/scripts/caddis_roadmap_run.py +5 -6
- package/bundles/antigravity-plugin/scripts/caddis_rows.py +10 -451
- package/bundles/antigravity-plugin/scripts/caddis_tidy.py +6 -7
- package/bundles/antigravity-plugin/scripts/caddis_todo.py +35 -352
- package/bundles/antigravity-plugin/scripts/caddis_upstream_check.py +107 -0
- package/bundles/antigravity-plugin/scripts/schemas/coordinator.schema.json +95 -0
- package/bundles/antigravity-plugin/scripts/schemas/request.schema.json +39 -0
- package/bundles/antigravity-plugin/skills/_registry.md +1 -1
- package/bundles/antigravity-plugin/skills/brainstorming/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +64 -1
- package/bundles/antigravity-plugin/skills/flow-studio/README.md +1 -1
- package/bundles/antigravity-plugin/skills/handoff/SKILL.md +25 -39
- package/bundles/antigravity-plugin/skills/implement/SKILL.md +14 -0
- package/bundles/antigravity-plugin/skills/usage-review/SKILL.md +9 -0
- package/bundles/antigravity-plugin/skills/writing-plans/SKILL.md +15 -375
- package/bundles/antigravity-plugin/warm_start_agy.py +3 -40
- package/bundles/codex/.codex/skills/docs/writing-plans/SKILL.md +15 -375
- package/bundles/codex/.codex/skills/frontend/flow-studio/README.md +1 -1
- package/bundles/codex/.codex/skills/workflow/brainstorming/SKILL.md +1 -1
- package/bundles/manifest.json +2 -2
- package/package.json +1 -1
|
@@ -52,12 +52,6 @@ BUDGETS: tuple[Budget, ...] = (
|
|
|
52
52
|
60,
|
|
53
53
|
"rendered by render-index; drop relays with status closed",
|
|
54
54
|
),
|
|
55
|
-
Budget(
|
|
56
|
-
".caddis/open-work.md",
|
|
57
|
-
"rows with Status done",
|
|
58
|
-
10,
|
|
59
|
-
"move done rows to .caddis/done/open-work-archive.md with a one-line pointer",
|
|
60
|
-
),
|
|
61
55
|
Budget(
|
|
62
56
|
"DECISIONS.md, .caddis/DECISIONS.md, .caddis/decisions/DECISIONS.md", # the last is the fleet's real path
|
|
63
57
|
"History table rows",
|
|
@@ -150,36 +144,6 @@ def _count_table_rows(text: str) -> int:
|
|
|
150
144
|
return sum(len(t.data_rows) for t in tables) + loose_rows
|
|
151
145
|
|
|
152
146
|
|
|
153
|
-
def _norm_status(cell: str) -> str:
|
|
154
|
-
return cell.replace("**", "").replace("__", "").replace("`", "").strip().lower()
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
def _count_done_rows(text: str) -> int:
|
|
158
|
-
tables, _ = _parse_tables(text)
|
|
159
|
-
done_re = re.compile(r"^done\b")
|
|
160
|
-
count = 0
|
|
161
|
-
if tables:
|
|
162
|
-
for t in tables:
|
|
163
|
-
col_map = {c.lower(): idx for idx, c in enumerate(t.columns)}
|
|
164
|
-
if "status" in col_map:
|
|
165
|
-
s_idx = col_map["status"]
|
|
166
|
-
for row in t.data_rows:
|
|
167
|
-
if len(row) > s_idx and done_re.search(_norm_status(row[s_idx])):
|
|
168
|
-
count += 1
|
|
169
|
-
else:
|
|
170
|
-
for row in t.data_rows:
|
|
171
|
-
if any(_norm_status(c) == "done" for c in row):
|
|
172
|
-
count += 1
|
|
173
|
-
return count
|
|
174
|
-
|
|
175
|
-
for line in text.splitlines():
|
|
176
|
-
if line.lstrip().startswith("|") and not _is_separator(line):
|
|
177
|
-
cells = _split_cells(line)
|
|
178
|
-
if any(_norm_status(c) == "done" for c in cells):
|
|
179
|
-
count += 1
|
|
180
|
-
return count
|
|
181
|
-
|
|
182
|
-
|
|
183
147
|
def _count_history_rows(text: str) -> int:
|
|
184
148
|
tables, loose_rows = _parse_tables(text)
|
|
185
149
|
history_tables = [t for t in tables if t.heading and "history" in t.heading.lower()]
|
|
@@ -198,8 +162,6 @@ def _measure_file(path: Path, unit: str) -> int:
|
|
|
198
162
|
return _count_table_rows(text)
|
|
199
163
|
if unit in ("lines", "lines per file"):
|
|
200
164
|
return len(text.splitlines())
|
|
201
|
-
if unit == "rows with Status done":
|
|
202
|
-
return _count_done_rows(text)
|
|
203
165
|
if unit == "History table rows":
|
|
204
166
|
return _count_history_rows(text)
|
|
205
167
|
raise ValueError(f"unknown budget unit: {unit}")
|