@yasaswy.nagavolu/agents 0.16.1 → 0.16.2
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.
|
@@ -39,10 +39,24 @@ except Exception: # psutil is optional -- degrade to "?" attribution, never cra
|
|
|
39
39
|
# to "next to this file" is exactly how one real call went missing from the terminal feed
|
|
40
40
|
# on 2026-08-02: it landed in the repo's calls.jsonl while the feed tailed the deployed
|
|
41
41
|
# one. CALL_LOG_PATH lets tests/alternate setups redirect it explicitly.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
#
|
|
43
|
+
# Resolved PER CALL (not once at import time): a test suite's conftest.py sets
|
|
44
|
+
# CALL_LOG_PATH before running any test, but test modules across this repo import
|
|
45
|
+
# call_log.py in whatever order pytest happens to collect them in -- some of that
|
|
46
|
+
# collection runs before a session fixture's setup code executes. A module-level
|
|
47
|
+
# constant would bake in whichever value was live at first import and ignore the
|
|
48
|
+
# fixture entirely. This is also what makes the documented "CALL_LOG_PATH lets you
|
|
49
|
+
# redirect it" claim actually true at runtime, not just at process-start time.
|
|
50
|
+
# Confirmed by a real incident 2026-08-02: council tests simulating a down proxy
|
|
51
|
+
# wrote fake "__preflight__ ... error" records straight into the user's live feed
|
|
52
|
+
# because nothing redirected it during the test run -- see repo-root conftest.py.
|
|
53
|
+
def _log_path() -> pathlib.Path:
|
|
54
|
+
return pathlib.Path(
|
|
55
|
+
os.environ.get("CALL_LOG_PATH")
|
|
56
|
+
or (pathlib.Path.home() / ".claude" / "proxy" / "litellm" / "calls.jsonl")
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
46
60
|
_SESSION_DIR = pathlib.Path.home() / ".claude" / "sessions"
|
|
47
61
|
|
|
48
62
|
_cached_attr = None
|
|
@@ -136,8 +150,9 @@ def log_call(caller: str, model: str, *, status: str = "ok", duration: float | N
|
|
|
136
150
|
rec["error"] = str(error)[:400]
|
|
137
151
|
if extra:
|
|
138
152
|
rec.update(extra)
|
|
139
|
-
|
|
140
|
-
|
|
153
|
+
log_path = _log_path()
|
|
154
|
+
log_path.parent.mkdir(parents=True, exist_ok=True)
|
|
155
|
+
with open(log_path, "a", encoding="utf-8") as fh:
|
|
141
156
|
fh.write(json.dumps(rec) + "\n")
|
|
142
157
|
except Exception:
|
|
143
158
|
pass
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yasaswy.nagavolu/agents",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "CLI for installing the yasaswy.nagavolu agent/skill/hook bundle. `install` opens an interactive bundle menu in a TTY (or `--bundle <key> --yes` for non-interactive installs), with hash-tracked idempotent deploys, automatic hook wiring into settings.json, and masked secret prompting. `update` reconciles installed bundles against the current source (hash-tracked: silent overwrite, conflict diff+prompt, or --theirs/--keep-mine). `uninstall` removes a bundle's files and wiring. `secrets` re-runs secret prompting for already-installed bundles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|