@caddis/cli 0.4.59 → 0.4.61

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "caddis",
3
- "version": "1.3.145",
3
+ "version": "1.3.147",
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
  }
@@ -103,6 +103,9 @@ except ModuleNotFoundError as exc:
103
103
  _NO_WINDOW = 0x08000000 if os.name == "nt" else 0
104
104
 
105
105
  SCRIPTS_DIR = Path(__file__).resolve().parent
106
+ # This module object, taken while it loads. `render` hands it to the page builder. A lookup by name at call time
107
+ # (`sys.modules[__name__]`) can return a different copy when the file was loaded twice in one process.
108
+ _THIS_MODULE = sys.modules[__name__]
106
109
  STATUSES = ("todo", "in-progress", "code-done/data-pending", "done", "not-needed")
107
110
  FINISHED = ("done", "not-needed")
108
111
  OPEN = ("todo", "in-progress")
@@ -2292,7 +2295,7 @@ def _render(root: Path, args: argparse.Namespace) -> int:
2292
2295
  for slug in slugs: # --all: one bad roadmap must not stop the others
2293
2296
  try:
2294
2297
  path = caddis_roadmap_page.write_page(root, slug, Path(args.out) if args.out else None,
2295
- sys.modules[__name__])
2298
+ _THIS_MODULE)
2296
2299
  if path is None: # a newer caddis owns this page: kept, and neither written nor failed
2297
2300
  continue
2298
2301
  written += 1