@caddis/cli 0.4.112 → 0.4.113

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.196",
3
+ "version": "1.3.197",
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.195",
4
- "generated": "2026-11-13 03:53 UTC",
3
+ "version": "1.3.196",
4
+ "generated": "2026-11-13 12:58 UTC",
5
5
  "commands": [
6
6
  {
7
7
  "name": "add-rules",
@@ -775,15 +775,17 @@ def _kill_tree(proc) -> None:
775
775
  proc.kill()
776
776
 
777
777
 
778
- def _run_capped(argv: list[str], timeout: float, stdin_text: str | None = None) -> tuple[int, str, str]:
779
- """Run `argv`; (exit, stdout, stderr). stdin carries `stdin_text`, then closes (closed at once when None).
778
+ def _run_capped(argv: list[str], timeout: float, stdin_text: str | None = None,
779
+ cwd: str | None = None) -> tuple[int, str, str]:
780
+ """Run `argv` in `cwd` (None: this process's cwd); (exit, stdout, stderr). stdin carries `stdin_text`, then
781
+ closes (closed at once when None).
780
782
  On timeout kill the whole tree and raise TimeoutError: a killed caddis_spend must not leave agy running on."""
781
783
  group = ({"creationflags": subprocess.CREATE_NEW_PROCESS_GROUP} if os.name == "nt"
782
784
  else {"start_new_session": True})
783
785
  env = {**os.environ, "CADDIS_HEADLESS": "1"}
784
786
  stdin = subprocess.DEVNULL if stdin_text is None else subprocess.PIPE
785
787
  proc = subprocess.Popen(argv, stdin=stdin, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
786
- text=True, encoding="utf-8", errors="replace", env=env, **group)
788
+ text=True, encoding="utf-8", errors="replace", env=env, cwd=cwd, **group)
787
789
  try:
788
790
  stdout, stderr = proc.communicate(input=stdin_text, timeout=timeout)
789
791
  except subprocess.TimeoutExpired:
@@ -824,15 +826,18 @@ def agy_stdin(prompt: str) -> str:
824
826
  return json.dumps({"event": "user", "message": {"content": prompt}}) + "\n"
825
827
 
826
828
 
827
- def call_agy(launcher: list[str], prompt: str, timeout: float = AGY_TIMEOUT_S, model: str = AGY_MODEL) -> str:
829
+ def call_agy(launcher: list[str], prompt: str, timeout: float = AGY_TIMEOUT_S, model: str = AGY_MODEL,
830
+ cwd: str | None = None) -> str:
828
831
  """One review by agy Carbon (`model`) through `caddis_spend.py run` -> the reply text.
829
832
 
833
+ `cwd` roots the agy run there (None: this process's cwd).
834
+
830
835
  The prompt goes on stdin (agy_stdin), never on the command line.
831
836
  ProviderSkipped: caddis_spend refused (exit 75) or agy is missing.
832
837
  ProviderFailure: a non-zero exit, a status other than SUCCESS (ERROR, RESOURCE_EXHAUSTED), no result
833
838
  event, or an empty reply."""
834
839
  argv = [*launcher, "--model", model, "--mode", "plan", *AGY_STREAM_FLAGS, "--print="]
835
- code, stdout, stderr = _run_capped(argv, timeout, stdin_text=agy_stdin(prompt))
840
+ code, stdout, stderr = _run_capped(argv, timeout, stdin_text=agy_stdin(prompt), cwd=cwd)
836
841
  if code in SPEND_REFUSED:
837
842
  raise ProviderSkipped(f"caddis_spend refused the agy call (exit {code}): "
838
843
  f"{stderr.strip()[-300:]}")
@@ -1,7 +1,7 @@
1
1
  {
2
- "poolVersion": "1.3.196",
2
+ "poolVersion": "1.3.197",
3
3
  "bundles": {
4
- "antigravity-plugin": "1.3.196",
4
+ "antigravity-plugin": "1.3.197",
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.112",
3
+ "version": "0.4.113",
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",