cc-continuity 0.3.6__tar.gz → 0.3.8__tar.gz
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.
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/PKG-INFO +1 -1
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/README.md +14 -10
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/__init__.py +1 -1
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/cli.py +23 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity.egg-info/PKG-INFO +1 -1
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/pyproject.toml +1 -1
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_cli.py +38 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/LICENSE +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/__main__.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/atomic.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/blink.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/blink_watch.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/bootstrap.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/checkpoint.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/config.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/daemon_supervisor.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/doctor.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/gitsnap.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hooks/__init__.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hooks/common.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hooks/pre_compact.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hooks/pre_tool_use.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hooks/session_end.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hooks/session_start.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hooks/stop.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hooks/task.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hooks/tool_use.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hooks/user_prompt.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/hosting.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/install.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/launch.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/ledger.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/lock.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/managed.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/naming.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/notify.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/paths.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/power_plug.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/progress_pane.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/project.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/redact.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/rotator.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/settings_merge.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/skills.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/state.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/statusline.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/thresholds.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/transcript.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/validate.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/watchdog.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/watchdog_digest.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity/watchdogd.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity.egg-info/SOURCES.txt +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity.egg-info/dependency_links.txt +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity.egg-info/entry_points.txt +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/cc_continuity.egg-info/top_level.txt +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/setup.cfg +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_atomic.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_blink.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_blink_watch.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_bootstrap.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_checkpoint.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_config.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_daemon_supervisor.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_doctor.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_gitsnap.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hooks_common.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hooks_pre_compact.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hooks_pre_tool_use.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hooks_session_end.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hooks_session_start.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hooks_stop.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hooks_task.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hooks_tool_use.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hooks_user_prompt.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hosting.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_hygiene.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_install.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_integration_phase5.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_integration_phase6.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_integration_phase7.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_launch.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_ledger.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_lock.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_managed.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_naming.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_notify.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_notify_integration.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_paths.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_power_plug.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_progress_pane.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_project.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_redact.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_rotator.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_settings_merge.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_skills.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_state.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_status.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_statusline.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_thresholds.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_tmux_host.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_transcript.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_transcript_finalize.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_uninstall.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_validate.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_watchdog.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_watchdog_digest.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_watchdog_integration.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_watchdogd.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_wsl_doctor.py +0 -0
- {cc_continuity-0.3.6 → cc_continuity-0.3.8}/tests/test_wsl_install.py +0 -0
|
@@ -26,6 +26,14 @@ The five most recent updates, newest first. Each line links to its
|
|
|
26
26
|
commit, so you can see what changed lately without digging through the
|
|
27
27
|
log:
|
|
28
28
|
|
|
29
|
+
- **2026-11-10**: `cc-continuity signal --dry-run` now prints the exact
|
|
30
|
+
push (title, priority, body, enabled state) without sending it -
|
|
31
|
+
formatting checks are silent now
|
|
32
|
+
([commit](https://github.com/pqant/claude-continuity/commit/534a6d6)).
|
|
33
|
+
- **2026-11-10**: The quickstart now recommends `pipx install` (and
|
|
34
|
+
`uv tool install`) for the CLI - the Python environment stays clean,
|
|
35
|
+
the command lands on PATH
|
|
36
|
+
([commit](https://github.com/pqant/claude-continuity/commit/6ea23a9)).
|
|
29
37
|
- **2026-11-10**: New `cc-continuity ratio [slug]` prints the live
|
|
30
38
|
context ratio of a project on one line - the manual metric-file read
|
|
31
39
|
in trial bookkeeping is gone
|
|
@@ -39,14 +47,6 @@ log:
|
|
|
39
47
|
finishes silently, so the built-in "Stop hook error" line only appears
|
|
40
48
|
when the model genuinely fails to produce a draft after being told
|
|
41
49
|
([commit](https://github.com/pqant/claude-continuity/commit/2c9d2bf)).
|
|
42
|
-
- **2026-11-09**: Routine rotations no longer print a red error: at the
|
|
43
|
-
hard context limit the in-flight tool call now passes and the handoff
|
|
44
|
-
instruction arrives as a neutral notice, so the pane stays clean
|
|
45
|
-
([commit](https://github.com/pqant/claude-continuity/commit/d8e015c)).
|
|
46
|
-
- **2026-11-09**: When the gate does deny a tool (only after the model
|
|
47
|
-
was told to write the handoff and kept working), the full guidance
|
|
48
|
-
shows as an informational message instead of a red error line
|
|
49
|
-
([commit](https://github.com/pqant/claude-continuity/commit/f8a6cc9)).
|
|
50
50
|
## How it works
|
|
51
51
|
|
|
52
52
|
The whole flow in one picture: the automatic session loop, the optional
|
|
@@ -114,15 +114,19 @@ exec zsh # reload the shell (claude() wrapper)
|
|
|
114
114
|
cc-continuity doctor # everything should be green
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
From PyPI:
|
|
117
|
+
From PyPI (recommended: `pipx`, the standard way to install Python CLIs):
|
|
118
118
|
|
|
119
119
|
```bash
|
|
120
|
-
|
|
120
|
+
pipx install cc-continuity # or: uv tool install cc-continuity
|
|
121
121
|
cc-continuity install
|
|
122
122
|
exec zsh
|
|
123
123
|
cc-continuity doctor
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
+
Plain `pip install cc-continuity` also works inside a venv or when
|
|
127
|
+
embedding it as a library; `pipx`/`uv tool` put the CLI on PATH without
|
|
128
|
+
touching your Python environment.
|
|
129
|
+
|
|
126
130
|
On Windows (WSL) the same steps run inside the distro (bash as the
|
|
127
131
|
login shell); the full WSL guide is [`docs/WINDOWS.md`](docs/WINDOWS.md).
|
|
128
132
|
|
|
@@ -225,6 +225,9 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
225
225
|
p_sig = sub.add_parser("signal",
|
|
226
226
|
help="agent signal: needs-human / done (Phase 9)")
|
|
227
227
|
p_sig.add_argument("kind", choices=["needs-human", "done"])
|
|
228
|
+
p_sig.add_argument("--dry-run", action="store_true",
|
|
229
|
+
help="print the resolved push without sending "
|
|
230
|
+
"or recording (issue #30)")
|
|
228
231
|
p_sig.add_argument("text",
|
|
229
232
|
help="reason (needs-human) or summary (done)")
|
|
230
233
|
|
|
@@ -690,6 +693,26 @@ def cmd_signal(args: argparse.Namespace) -> int:
|
|
|
690
693
|
nnn = int(record["nnn"])
|
|
691
694
|
slug = notify.project_slug(key)
|
|
692
695
|
cfg = config.load_config()
|
|
696
|
+
if args.dry_run:
|
|
697
|
+
# issue #30: render the exact push, touch nothing (no network,
|
|
698
|
+
# no ledger).
|
|
699
|
+
if args.kind == "needs-human":
|
|
700
|
+
event, fields = "needs_human", {"reason": args.text,
|
|
701
|
+
"host": notify.host()}
|
|
702
|
+
else:
|
|
703
|
+
event, fields = "task_done", {"summary": args.text}
|
|
704
|
+
title, body, prio = notify.build_message(event, slug=slug, nnn=nnn,
|
|
705
|
+
**fields)
|
|
706
|
+
on = notify.enabled(cfg)
|
|
707
|
+
print("cc-continuity: dry run (nothing sent, nothing recorded)")
|
|
708
|
+
print(f"enabled: {on}"
|
|
709
|
+
+ ("" if on else " — would NOT send (disabled or bad config)"))
|
|
710
|
+
print(f"title: {title}")
|
|
711
|
+
print(f"priority: {prio}")
|
|
712
|
+
print("body:")
|
|
713
|
+
for ln in body.splitlines():
|
|
714
|
+
print(f" {ln}")
|
|
715
|
+
return 0
|
|
693
716
|
if args.kind == "needs-human":
|
|
694
717
|
sent = notify.safe_send(cfg, "needs_human", slug=slug, nnn=nnn,
|
|
695
718
|
reason=args.text, host=notify.host(),
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cc-continuity"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.8"
|
|
8
8
|
description = "Zero-touch session rotation for Claude Code (local large-context model)"
|
|
9
9
|
requires-python = ">=3.11"
|
|
10
10
|
dependencies = [] # stdlib only at runtime (PRD §0.5)
|
|
@@ -675,6 +675,44 @@ def test_signal_done_pushes_and_records(cc_home, tmp_path, monkeypatch):
|
|
|
675
675
|
assert last == {"type": "task_done", "summary": "all 14 tasks green"}
|
|
676
676
|
|
|
677
677
|
|
|
678
|
+
def test_signal_dry_run_renders_without_sending(cc_home, tmp_path, monkeypatch,
|
|
679
|
+
capsys):
|
|
680
|
+
# issue #30: --dry-run renders the exact push and sends nothing
|
|
681
|
+
from cc_continuity import notify
|
|
682
|
+
repo = make_repo(tmp_path)
|
|
683
|
+
(cc_home / "config.json").write_text(json.dumps(
|
|
684
|
+
{"notify_enabled": True,
|
|
685
|
+
"notify_endpoint": "https://ntfy.sh/example-topic"}),
|
|
686
|
+
encoding="utf-8")
|
|
687
|
+
key, nnn = register_session(repo)
|
|
688
|
+
sent = []
|
|
689
|
+
monkeypatch.setattr(notify, "send",
|
|
690
|
+
lambda *a, **kw: sent.append(a) or True)
|
|
691
|
+
monkeypatch.setenv("CC_CONTINUITY_SESSION", SID)
|
|
692
|
+
monkeypatch.chdir(repo)
|
|
693
|
+
assert cli.main(["signal", "--dry-run", "done", "all tests green"]) == 0
|
|
694
|
+
assert sent == [] # nothing leaves the machine
|
|
695
|
+
out = capsys.readouterr().out
|
|
696
|
+
assert "title: ✅ cc-continuity: task complete" in out
|
|
697
|
+
assert "priority: default" in out
|
|
698
|
+
assert "summary=all tests green" in out
|
|
699
|
+
types = [e["type"] for e in ledger.read(paths.session_dir(key, nnn))]
|
|
700
|
+
assert "task_done" not in types # ledger untouched too
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
def test_signal_dry_run_reports_disabled(cc_home, tmp_path, monkeypatch,
|
|
704
|
+
capsys):
|
|
705
|
+
# disabled notify must be visible in the render instead of a silent no-op
|
|
706
|
+
repo = make_repo(tmp_path)
|
|
707
|
+
register_session(repo) # default cc_home config: notify disabled
|
|
708
|
+
monkeypatch.setenv("CC_CONTINUITY_SESSION", SID)
|
|
709
|
+
monkeypatch.chdir(repo)
|
|
710
|
+
assert cli.main(["signal", "--dry-run", "needs-human", "stuck?"]) == 0
|
|
711
|
+
out = capsys.readouterr().out
|
|
712
|
+
assert "would NOT send" in out
|
|
713
|
+
assert "🛑 cc-continuity: BLOCKED" in out
|
|
714
|
+
|
|
715
|
+
|
|
678
716
|
def test_signal_without_session_exits_1_no_push(cc_home, tmp_path,
|
|
679
717
|
monkeypatch, capsys):
|
|
680
718
|
from cc_continuity import notify
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|