cc-continuity 0.3.35__tar.gz → 0.3.37__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.35 → cc_continuity-0.3.37}/PKG-INFO +1 -1
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/README.md +2 -2
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/__init__.py +1 -1
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/transcript.py +22 -2
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity.egg-info/PKG-INFO +1 -1
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/pyproject.toml +1 -1
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_transcript.py +39 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/LICENSE +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/__main__.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/atomic.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/blink.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/blink_watch.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/bootstrap.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/checkpoint.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/cli.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/config.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/daemon_supervisor.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/doctor.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/gitsnap.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hooks/__init__.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hooks/common.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hooks/pre_compact.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hooks/pre_tool_use.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hooks/session_end.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hooks/session_start.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hooks/stop.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hooks/task.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hooks/tool_use.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hooks/user_prompt.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/hosting.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/install.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/launch.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/ledger.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/lock.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/managed.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/naming.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/notify.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/paths.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/power_plug.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/progress_pane.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/project.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/redact.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/rotator.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/settings_merge.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/skills.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/state.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/statusline.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/thresholds.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/validate.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/watchdog.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/watchdog_digest.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity/watchdogd.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity.egg-info/SOURCES.txt +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity.egg-info/dependency_links.txt +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity.egg-info/entry_points.txt +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/cc_continuity.egg-info/top_level.txt +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/setup.cfg +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_atomic.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_blink.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_blink_watch.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_bootstrap.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_checkpoint.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_cli.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_cli_ledger.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_config.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_daemon_supervisor.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_doctor.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_gitsnap.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hooks_common.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hooks_pre_compact.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hooks_pre_tool_use.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hooks_session_end.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hooks_session_start.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hooks_stop.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hooks_task.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hooks_tool_use.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hooks_user_prompt.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hosting.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_hygiene.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_install.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_integration_phase5.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_integration_phase6.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_integration_phase7.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_launch.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_ledger.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_lock.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_managed.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_naming.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_notify.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_notify_integration.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_paths.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_power_plug.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_progress_pane.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_project.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_redact.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_rotator.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_settings_merge.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_skills.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_state.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_status.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_statusline.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_thresholds.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_tmux_host.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_transcript_finalize.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_uninstall.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_validate.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_watchdog.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_watchdog_digest.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_watchdog_integration.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_watchdogd.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_wsl_doctor.py +0 -0
- {cc_continuity-0.3.35 → cc_continuity-0.3.37}/tests/test_wsl_install.py +0 -0
|
@@ -26,11 +26,11 @@ 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-15**: The transcript header panel gets out of the way: "panel up" folds it into a slim one-line bar carrying the session name, "panel down" brings the full panel back, and a new "2-column · 75%" checkbox in the controls row re-flows the whole conversation into two balanced columns at reduced zoom, so a screen holds roughly twice the conversation. Both choices persist in your browser; search, theme, sessions switcher and the image lightbox behave exactly the same in every state ([commit](https://github.com/pqant/claude-continuity/commit/594820d), [commit](https://github.com/pqant/claude-continuity/commit/2450369)).
|
|
30
|
+
- **2026-11-14**: The overlay's prev/next row now hides when there is nothing to navigate: it used to sit under the icon chip's note text and next to single-image galleries, because the row's author CSS rule overrode the [hidden] attribute. Both the CSS rule and a count-based toggle are in place now, so navigation appears only with two or more images and the i / n counter stays untouched ([commit](https://github.com/pqant/claude-continuity/commit/15ada27)).
|
|
29
31
|
- **2026-11-14**: The dark icon chip now speaks: clicking it opens a small note that says why the image is missing (removed from disk, over the 4 MB embed cap, or an unsupported format), never an image - the note branch clears any previous gallery selection and hides the image row while it is up. The chip stays the same dark pulsing icon, and numbered thumbnails still open at the clicked index ([commit](https://github.com/pqant/claude-continuity/commit/614ddf8)).
|
|
30
32
|
- **2026-11-14**: The dark icon chip (the trace a pruned image leaves behind) is finally static: clicking it no longer popped the lightbox open with a stale image from an earlier gallery on the page, because the click handler un-hid the overlay before it noticed the chip carries no gallery. The chip is now a plain span (no button semantics, no gallery data) and the lightbox handler bails out for gallery-less chips, while numbered thumbnails still open at the exact clicked index ([commit](https://github.com/pqant/claude-continuity/commit/a1cf55e)).
|
|
31
33
|
- **2026-11-14**: The `image` text chip in the transcript export is no more: every embeddable image renders inline as a small thumbnail with a numbered badge (1, 2, 3, ...), and all thumbnails pulse in sync through a tiny JS timer, so a turn containing screenshots announces itself at a glance. An image that could not be embedded shows a solid dark photo icon instead of the old emoji-plus-word trace, and clicking a thumbnail opens the lightbox at that very image ([commit](https://github.com/pqant/claude-continuity/commit/722749a)).
|
|
32
|
-
- **2026-11-14**: Tab-completion for the whole command tree: `cc-continuity completion zsh|bash` prints a completion script generated from the very argparse tree the CLI builds, so a subcommand added upstream shows up on the next Tab for free. Install it with one eval line in `~/.zshrc`: `eval "$(cc-continuity completion zsh)"`; unsupported shells exit 1 with a clear stderr line instead of a half-script ([commit](https://github.com/pqant/claude-continuity/commit/2d7ddfe)).
|
|
33
|
-
- **2026-11-12**: A `cc-continuity signal needs-human` fired while the session idles now lights up the animated pane too: in progress mode 1 the animator owns the blink but only consulted the rendered status-line text, the reply flag and the pane capture, never `ledger.blocked_reason`, so the push reached the phone while the tab stayed dark. The animator's ~1 s blink poll now reads the ledger and paints the blocked chip with a reason-carrying gate key, mirroring the reply-flag pattern ([commit](https://github.com/pqant/claude-continuity/commit/055c824)).
|
|
34
34
|
|
|
35
35
|
## How it works
|
|
36
36
|
|
|
@@ -321,6 +321,11 @@ button:hover{border-color:var(--muted)}
|
|
|
321
321
|
select{padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--fg);font-size:13px;max-width:340px}
|
|
322
322
|
select:disabled{opacity:.55}
|
|
323
323
|
#stats{font-size:12px;color:var(--muted);min-width:140px}
|
|
324
|
+
header .hdmini{display:none;align-items:center;gap:10px;font-size:13px}
|
|
325
|
+
header.mini .hd{display:none}
|
|
326
|
+
header.mini .hdmini{display:flex}
|
|
327
|
+
main.split{max-width:none;columns:2;column-gap:28px;zoom:.75}
|
|
328
|
+
main.split .block{break-inside:avoid}
|
|
324
329
|
main{max-width:1160px;margin:0 auto;padding:10px 28px 80px}
|
|
325
330
|
section.block{padding:6px 14px 12px;margin:10px 0;border-radius:10px}
|
|
326
331
|
section.block.user{background:var(--userbg)}
|
|
@@ -348,6 +353,7 @@ mark{background:var(--mark);color:inherit;border-radius:2px;padding:0 1px}
|
|
|
348
353
|
.lbb{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:92vw}
|
|
349
354
|
.lbb img{max-width:92vw;max-height:80vh;border-radius:8px;background:#fff}
|
|
350
355
|
.lbn{display:flex;gap:10px;align-items:center}
|
|
356
|
+
.lbn[hidden]{display:none}
|
|
351
357
|
.lbn button,.lbx{background:#222b;border:1px solid #555;color:#fff;border-radius:6px;padding:4px 12px;font-size:15px;cursor:pointer}
|
|
352
358
|
.lbn span{color:#fff;font-size:14px}
|
|
353
359
|
.lbx{position:fixed;top:14px;right:18px}
|
|
@@ -381,6 +387,16 @@ const bt=document.getElementById('t'),root=document.documentElement;
|
|
|
381
387
|
const modes=['auto','light','dark'];let i=+(localStorage.getItem('th')||0);
|
|
382
388
|
root.dataset.theme=modes[i];bt.textContent='theme: '+modes[i];
|
|
383
389
|
bt.onclick=()=>{i=(i+1)%3;root.dataset.theme=modes[i];localStorage.setItem('th',i);bt.textContent='theme: '+modes[i];};
|
|
390
|
+
var hdEl=document.querySelector('header'),pb=document.getElementById('panelbtn'),ps=document.getElementById('panelsbtn');
|
|
391
|
+
function hcGet(){try{return localStorage.getItem('hc')==='1'}catch(e){return false}}
|
|
392
|
+
function hcSet(v){hdEl.classList.toggle('mini',v);try{localStorage.setItem('hc',v?'1':'0')}catch(e){}}
|
|
393
|
+
if(hcGet())hdEl.classList.add('mini');
|
|
394
|
+
ps.onclick=function(){hcSet(!hdEl.classList.contains('mini'))};
|
|
395
|
+
pb.onclick=function(){hcSet(false)};
|
|
396
|
+
var mn=document.querySelector('main'),sp=document.getElementById('sp');
|
|
397
|
+
function spGet(){try{return localStorage.getItem('sp')==='1'}catch(e){return false}}
|
|
398
|
+
var spOn=spGet();sp.checked=spOn;mn.classList.toggle('split',spOn);
|
|
399
|
+
sp.onchange=function(){mn.classList.toggle('split',sp.checked);try{localStorage.setItem('sp',sp.checked?'1':'0')}catch(e){}};
|
|
384
400
|
"""
|
|
385
401
|
|
|
386
402
|
|
|
@@ -436,7 +452,8 @@ var note=document.getElementById('lbnote'),row=document.querySelector('.lbn');
|
|
|
436
452
|
function hide(){lb.hidden=true;g=null;if(note)note.hidden=true;img.hidden=false;if(row)row.hidden=false;}
|
|
437
453
|
function show(){if(!g)return;var a=g.querySelectorAll('img');if(!a.length){hide();return;}
|
|
438
454
|
n=(n+a.length)%a.length;img.src=a[n].getAttribute('src');
|
|
439
|
-
ctr.textContent=(n+1)+' / '+a.length;
|
|
455
|
+
ctr.textContent=(n+1)+' / '+a.length;
|
|
456
|
+
if(row)row.hidden=a.length<2;}
|
|
440
457
|
document.addEventListener('click',function(e){var t=e.target;
|
|
441
458
|
var b=t.closest?t.closest('.chipbtn'):null;
|
|
442
459
|
if(b){var gid=b.getAttribute('data-g');
|
|
@@ -752,7 +769,10 @@ def render_html(blocks: list[Block], meta: dict) -> str:
|
|
|
752
769
|
f'{switch}\n'
|
|
753
770
|
'<div class="row2"><label><input type="checkbox" id="f"> '
|
|
754
771
|
'matching blocks only</label>\n'
|
|
755
|
-
'<
|
|
772
|
+
'<label><input type="checkbox" id="sp"> 2-column · 75%</label>\n'
|
|
773
|
+
f'<button id="t">theme</button><span id="stats"></span><button id="panelsbtn">panel up</button></div></div>\n'
|
|
774
|
+
f'<div class="hdmini" hidden><span class="v">› {_meta_val(meta, "name")} (cp-{_meta_val(meta, "nnn")})</span>'
|
|
775
|
+
f'<button id="panelbtn">panel down</button></div></header>\n'
|
|
756
776
|
f'<main>{"".join(sections)}</main>\n'
|
|
757
777
|
f'{"".join(galleries)}'
|
|
758
778
|
f'{_LIGHTBOX if galleries or has_chips else ""}'
|
|
@@ -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.37"
|
|
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)
|
|
@@ -186,6 +186,15 @@ def test_render_html_plain_icon_chip_opens_note():
|
|
|
186
186
|
assert 'data-note="This image could not be embedded' in d
|
|
187
187
|
|
|
188
188
|
|
|
189
|
+
def test_lightbox_note_nav_row_hidden():
|
|
190
|
+
# Issue #67: the prev/next row must not show for the note view or a
|
|
191
|
+
# single-image gallery. The author rule .lbn{display:flex} beats the UA
|
|
192
|
+
# [hidden] style, so an explicit author [hidden] rule is required too.
|
|
193
|
+
assert ".lbn[hidden]{display:none}" in transcript._CSS
|
|
194
|
+
js = transcript._LIGHTBOX_JS
|
|
195
|
+
assert "row.hidden=a.length<2" in js
|
|
196
|
+
|
|
197
|
+
|
|
189
198
|
def test_lightbox_js_note_branch():
|
|
190
199
|
# Issue #66: the click handler branches on data-note when data-g is
|
|
191
200
|
# absent; the note branch must clear the stale gallery reference and
|
|
@@ -727,3 +736,33 @@ def test_prev_task_duration_unreadable_returns_none(tmp_path):
|
|
|
727
736
|
f.write_text(_rec("user", "hi") + "\n", encoding="utf-8")
|
|
728
737
|
assert transcript.prev_task_duration(f) is None # no reply yet
|
|
729
738
|
assert transcript.prev_task_duration(None) is None
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
def test_density_collapsible_header():
|
|
742
|
+
d = transcript.render_html([("user", "hello", None)], META)
|
|
743
|
+
assert '<div class="hdmini" hidden>' in d
|
|
744
|
+
assert "claude-continuity-166 (cp-166)" in d
|
|
745
|
+
assert 'id="panelbtn"' in d
|
|
746
|
+
assert 'id="panelsbtn"' in d
|
|
747
|
+
assert "header.mini .hd{display:none}" in d
|
|
748
|
+
assert "header.mini .hdmini{display:flex}" in d
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
def test_density_split_checkbox_and_css():
|
|
752
|
+
b = [("user", "x", None, ("data:image/png;base64,AAA",))]
|
|
753
|
+
d = transcript.render_html(b, META)
|
|
754
|
+
assert 'id="sp"' in d
|
|
755
|
+
assert "2-column" in d
|
|
756
|
+
assert "main.split{max-width:none;columns:2" in d
|
|
757
|
+
assert "main.split .block{break-inside:avoid}" in d
|
|
758
|
+
assert "zoom:.75" in d
|
|
759
|
+
assert "<main>" in d
|
|
760
|
+
assert d.index("</main>") < d.index('id="lb"')
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
def test_density_js_persistence_guards():
|
|
764
|
+
d = transcript.render_html([("user", "hello", None)], META)
|
|
765
|
+
for needle in ("localStorage.getItem('hc')", "localStorage.getItem('sp')",
|
|
766
|
+
"localStorage.setItem('hc'", "localStorage.setItem('sp'"):
|
|
767
|
+
assert needle in d
|
|
768
|
+
assert d.count("try{") >= 2
|
|
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
|
|
File without changes
|