railmux 0.4.2.dev9__tar.gz → 0.4.2.dev11__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.
- {railmux-0.4.2.dev9/src/railmux.egg-info → railmux-0.4.2.dev11}/PKG-INFO +1 -1
- railmux-0.4.2.dev11/src/railmux/__init__.py +1 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/discovery.py +10 -2
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/path_codec.py +15 -3
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/transcript.py +184 -64
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11/src/railmux.egg-info}/PKG-INFO +1 -1
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_path_codec.py +14 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_transcript.py +65 -7
- railmux-0.4.2.dev9/src/railmux/__init__.py +0 -1
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/LICENSE +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/MANIFEST.in +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/README.md +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/pyproject.toml +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/setup.cfg +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/__main__.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/atomic_file.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/background_index.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/cli.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/codex_index.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/config.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/config_cli.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/diagnostic_contract.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/diagnostics.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/display_transport.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/entrypoint.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/fast_display_client.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/fast_display_history.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/fast_display_input.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/fast_display_protocol.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/fast_display_server.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/favorites.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/fuzzy.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/help_workspace.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/image_paste.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/launcher.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/legacy_sessions.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/local_clipboard.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/local_open.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/models.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/modes.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/mouse_manager.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/orphan_marker.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/pane_surface.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/preview_pager.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/project_favorites.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/provider_paths.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/release_version.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/remote_config.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/renames.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/restart_state.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/runtime_config.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/scroll_agent.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/scroll_manager.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/selection_isolation.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/self_update.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/session_cache.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/session_index.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/session_lease.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/setting_contracts.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/settings.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ssh_args.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ssh_compat.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ssh_display_diagnostics.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ssh_doctor.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ssh_preflight.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/system_deps.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/terminal_screen.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/terminal_status.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/tmux_binding_manager.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/tmux_capabilities.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/tmux_ctl.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/tmux_health.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/tmux_server.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/tool_panes.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/__init__.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/_widgets.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/app.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/keymap.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/modals.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/projects_pane.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/running_pane.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/sessions_pane.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/sidebar.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/statusbar.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/ui/workspace.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/windows_attach_relay.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/windows_bootstrap.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/windows_install_log.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/windows_msys2.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/windows_pacman.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/windows_paths.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/windows_tmux_lifecycle.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux/windows_ui_transition.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux.egg-info/SOURCES.txt +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux.egg-info/dependency_links.txt +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux.egg-info/entry_points.txt +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux.egg-info/requires.txt +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/src/railmux.egg-info/top_level.txt +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/app_test_harness.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_agent_workspace.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_app_codex_placeholder.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_app_quit.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_app_restart_restore.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_app_running_recovery.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_atomic_file.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_background_index.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_claude_continuation.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_cli.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_code_map.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_codex_delete.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_codex_index.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_codex_lineage.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_codex_transcript.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_config.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_config_cli.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_denested_transport_benchmark.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_diagnostics.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_discovery.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_display_transport.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_fast_display_bootstrap.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_fast_display_history.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_fast_display_protocol.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_fast_display_selection.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_fast_display_server.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_fast_display_terminal.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_focus_highlight.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_fullscreen_binding.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_fuzzy.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_help_agent.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_help_workspace.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_history_cleanup.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_image_paste.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_keymap.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_launcher.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_layout_profile.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_legacy_sessions.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_local_clipboard.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_local_open.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_modals.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_mode_selection.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_modes.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_mouse_manager.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_new_project.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_options.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_orphan_recovery.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_pane_surface.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_preview_pager.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_project_favorites.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_projects_pane.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_provider_paths.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_release_notes.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_release_version.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_release_workflow.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_remote_config.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_renames.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_restart_state.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_running_pane.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_running_sort.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_runtime_config.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_scroll_agent.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_scroll_manager.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_selection_isolation.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_self_update.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_session_cache.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_session_index.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_session_lease.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_sessions_pane.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_setting_contracts.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_settings.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_sidebar.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_ssh_args.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_ssh_compat.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_ssh_display_benchmark.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_ssh_display_diagnostics.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_ssh_doctor.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_status.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_statusbar.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_system_deps.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_terminal_size.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_terminal_status.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_termux_local_touch.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_tmux_binding_manager.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_tmux_capabilities.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_tmux_ctl.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_tmux_health.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_tmux_integration.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_tmux_server.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_tmux_status.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_tool_panes.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_utf8_state.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_web_demo_recorder.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_wheel_smoke.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_widgets.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_windows_attach_relay.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_windows_bootstrap.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_windows_install_log.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_windows_msys2.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_windows_pacman.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_windows_paths.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_windows_synchronized_screen.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_windows_tmux_lifecycle.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_windows_ui_transition.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_windows_wrapper_contract.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tests/test_yolo_prompt.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tools/denested_transport_benchmark.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tools/release_notes.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tools/wheel_smoke.py +0 -0
- {railmux-0.4.2.dev9 → railmux-0.4.2.dev11}/tools/windows_archive_smoke.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.2.dev11"
|
|
@@ -189,6 +189,14 @@ def _save_path_cache(cache: dict[str, str]) -> None:
|
|
|
189
189
|
pass
|
|
190
190
|
|
|
191
191
|
|
|
192
|
+
def _is_dir(path: Path) -> bool:
|
|
193
|
+
"""``Path.is_dir`` that treats an unreadable parent as a missing path."""
|
|
194
|
+
try:
|
|
195
|
+
return path.is_dir()
|
|
196
|
+
except OSError:
|
|
197
|
+
return False
|
|
198
|
+
|
|
199
|
+
|
|
192
200
|
def list_projects(claude_home: Path) -> list[Project]:
|
|
193
201
|
"""Return every project directory under <claude_home>/projects/, sorted by recency.
|
|
194
202
|
|
|
@@ -238,7 +246,7 @@ def list_projects(claude_home: Path) -> list[Project]:
|
|
|
238
246
|
# decode() when the cache misses or is stale.
|
|
239
247
|
real_path: Path | None = None
|
|
240
248
|
cached = path_cache.get(entry.name)
|
|
241
|
-
if cached is not None and Path(cached)
|
|
249
|
+
if cached is not None and _is_dir(Path(cached)):
|
|
242
250
|
real_path = Path(cached)
|
|
243
251
|
else:
|
|
244
252
|
try:
|
|
@@ -249,7 +257,7 @@ def list_projects(claude_home: Path) -> list[Project]:
|
|
|
249
257
|
# this machine (deleted or moved). They can't be launched —
|
|
250
258
|
# `cd` into a missing dir fails — so don't list them, and drop
|
|
251
259
|
# any stale cache entry for them.
|
|
252
|
-
if decoded is not None and decoded
|
|
260
|
+
if decoded is not None and _is_dir(decoded):
|
|
253
261
|
real_path = decoded
|
|
254
262
|
path_cache[entry.name] = str(decoded)
|
|
255
263
|
else:
|
|
@@ -38,24 +38,36 @@ def normalize_encoded_project_name(name: str) -> str:
|
|
|
38
38
|
return f"-{match.group(1).lower()}-{name[3:]}"
|
|
39
39
|
|
|
40
40
|
|
|
41
|
+
def _probe(check, p: Path) -> bool:
|
|
42
|
+
# A directory another user keeps private (for example a shared /tmp
|
|
43
|
+
# parent with mode 0700) raises instead of answering; it is not ours.
|
|
44
|
+
try:
|
|
45
|
+
return check(p)
|
|
46
|
+
except OSError:
|
|
47
|
+
return False
|
|
48
|
+
|
|
49
|
+
|
|
41
50
|
def _m_exists(p: Path) -> bool:
|
|
42
51
|
k = str(p)
|
|
43
52
|
if k not in _exists_memo:
|
|
44
|
-
_exists_memo[k] =
|
|
53
|
+
_exists_memo[k] = _probe(Path.exists, p)
|
|
45
54
|
return _exists_memo[k]
|
|
46
55
|
|
|
47
56
|
|
|
48
57
|
def _m_is_dir(p: Path) -> bool:
|
|
49
58
|
k = str(p)
|
|
50
59
|
if k not in _is_dir_memo:
|
|
51
|
-
_is_dir_memo[k] =
|
|
60
|
+
_is_dir_memo[k] = _probe(Path.is_dir, p)
|
|
52
61
|
return _is_dir_memo[k]
|
|
53
62
|
|
|
54
63
|
|
|
55
64
|
def _m_iterdir(p: Path) -> list[Path]:
|
|
56
65
|
k = str(p)
|
|
57
66
|
if k not in _iterdir_memo:
|
|
58
|
-
|
|
67
|
+
try:
|
|
68
|
+
_iterdir_memo[k] = list(p.iterdir())
|
|
69
|
+
except OSError:
|
|
70
|
+
_iterdir_memo[k] = []
|
|
59
71
|
return _iterdir_memo[k]
|
|
60
72
|
|
|
61
73
|
|
|
@@ -308,7 +308,10 @@ def _wrap_styled(line: str, width: int, hang: int) -> list[str]:
|
|
|
308
308
|
row.append(token)
|
|
309
309
|
column += token_width
|
|
310
310
|
else:
|
|
311
|
+
# Like wrap-ansi without trimming: after an exactly full row
|
|
312
|
+
# the separator space still takes the next row's first cell.
|
|
311
313
|
newline()
|
|
314
|
+
column += 1
|
|
312
315
|
continue
|
|
313
316
|
capacity = width - hang
|
|
314
317
|
if column + token_width > width and column > hang:
|
|
@@ -387,82 +390,178 @@ def _table_cells(line: str) -> list[str]:
|
|
|
387
390
|
]
|
|
388
391
|
|
|
389
392
|
|
|
390
|
-
|
|
391
|
-
|
|
393
|
+
# Claude's table constants: spare columns beside the box, the narrowest
|
|
394
|
+
# column, the most rows a cell may wrap to, and the most body rows shown.
|
|
395
|
+
_TABLE_SPARE = 4
|
|
396
|
+
_TABLE_MIN_COLUMN = 3
|
|
397
|
+
_TABLE_MAX_CELL_ROWS = 4
|
|
398
|
+
_TABLE_MAX_ROWS = 200
|
|
392
399
|
|
|
393
|
-
|
|
394
|
-
|
|
400
|
+
|
|
401
|
+
def _table_alignments(separator: str, count: int) -> list[str]:
|
|
402
|
+
alignments = []
|
|
403
|
+
for cell in _table_cells(separator):
|
|
404
|
+
if cell.startswith(":") and cell.endswith(":"):
|
|
405
|
+
alignments.append("center")
|
|
406
|
+
elif cell.endswith(":"):
|
|
407
|
+
alignments.append("right")
|
|
408
|
+
else:
|
|
409
|
+
alignments.append("left")
|
|
410
|
+
return (alignments + ["left"] * count)[:count]
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
def _pad_cell(text: str, width: int, alignment: str) -> str:
|
|
414
|
+
spare = max(0, width - _visible_width(text))
|
|
415
|
+
if alignment == "center":
|
|
416
|
+
return " " * (spare // 2) + text + " " * (spare - spare // 2)
|
|
417
|
+
if alignment == "right":
|
|
418
|
+
return " " * spare + text
|
|
419
|
+
return text + " " * spare
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
def _markdown_table(lines: list[str], width: int) -> list[str]:
|
|
423
|
+
"""Draw a markdown table as Claude does.
|
|
424
|
+
|
|
425
|
+
*lines* holds the header, the separator and the body rows; *width* is the
|
|
426
|
+
message body width, two cells less than Claude's terminal width. Cells
|
|
427
|
+
wrap inside a box, unless a cell needs more than four rows or the box
|
|
428
|
+
is too wide: then each row is listed as ``header: value`` lines.
|
|
395
429
|
"""
|
|
396
|
-
header = [
|
|
397
|
-
f"{BOLD}{_markdown_inline(cell, bold=True)}{BOLD_OFF}"
|
|
398
|
-
for cell in _table_cells(lines[0])
|
|
399
|
-
]
|
|
430
|
+
header = [_markdown_inline(cell) for cell in _table_cells(lines[0])]
|
|
400
431
|
count = len(header)
|
|
432
|
+
alignments = _table_alignments(lines[1], count)
|
|
401
433
|
body = []
|
|
402
434
|
for line in lines[2:]:
|
|
403
435
|
cells = [_markdown_inline(cell) for cell in _table_cells(line)]
|
|
404
436
|
body.append((cells + [""] * count)[:count])
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
return None
|
|
437
|
+
hidden = max(0, len(body) - _TABLE_MAX_ROWS)
|
|
438
|
+
body = body[:_TABLE_MAX_ROWS]
|
|
439
|
+
columns = width + 2
|
|
409
440
|
rows = [header, *body]
|
|
410
441
|
natural = [
|
|
411
|
-
max(
|
|
412
|
-
for
|
|
442
|
+
max(_TABLE_MIN_COLUMN, *(_visible_width(row[i]) for row in rows))
|
|
443
|
+
for i in range(count)
|
|
413
444
|
]
|
|
414
|
-
|
|
445
|
+
minimum = [
|
|
415
446
|
max(
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
447
|
+
_TABLE_MIN_COLUMN,
|
|
448
|
+
*(
|
|
449
|
+
_visible_width(word)
|
|
450
|
+
for row in rows
|
|
451
|
+
for word in _ESCAPE_RE.sub("", row[i]).split()
|
|
452
|
+
),
|
|
419
453
|
)
|
|
420
|
-
for
|
|
454
|
+
for i in range(count)
|
|
421
455
|
]
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
456
|
+
available = max(
|
|
457
|
+
columns - 1 - 3 * count - _TABLE_SPARE, count * _TABLE_MIN_COLUMN)
|
|
458
|
+
hard = False
|
|
459
|
+
if sum(natural) <= available:
|
|
460
|
+
widths = natural
|
|
461
|
+
elif sum(minimum) <= available:
|
|
462
|
+
# Every column fits its longest word, and the spare cells go to each
|
|
463
|
+
# column in proportion to how much more it wants.
|
|
427
464
|
spare = available - sum(minimum)
|
|
428
|
-
|
|
465
|
+
wants = [n - m for n, m in zip(natural, minimum)]
|
|
466
|
+
wanted = sum(wants)
|
|
429
467
|
widths = [
|
|
430
|
-
m +
|
|
468
|
+
m + (int(want / wanted * spare) if wanted else 0)
|
|
469
|
+
for m, want in zip(minimum, wants)
|
|
431
470
|
]
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
471
|
+
else:
|
|
472
|
+
hard = True
|
|
473
|
+
widths = [
|
|
474
|
+
max(int(m * available / sum(minimum)), _TABLE_MIN_COLUMN)
|
|
475
|
+
for m in minimum
|
|
476
|
+
]
|
|
477
|
+
|
|
478
|
+
def wrap(cell: str, index: int) -> list[str]:
|
|
479
|
+
if not hard and _visible_width(cell) <= widths[index]:
|
|
480
|
+
return [cell]
|
|
481
|
+
return _close_fragments(_wrap_styled(cell, widths[index], 0))
|
|
482
|
+
|
|
483
|
+
header_cells = [
|
|
484
|
+
wrap(f"{BOLD}{cell}{BOLD_OFF}" if cell else cell, index)
|
|
485
|
+
for index, cell in enumerate(header)
|
|
486
|
+
]
|
|
487
|
+
body_cells = [
|
|
488
|
+
[wrap(cell, index) for index, cell in enumerate(row)] for row in body
|
|
489
|
+
]
|
|
490
|
+
tallest = max(
|
|
491
|
+
len(cell) for row in [header_cells, *body_cells] for cell in row)
|
|
492
|
+
if tallest > _TABLE_MAX_CELL_ROWS:
|
|
493
|
+
return _vertical_table(header, body, columns, hidden)
|
|
446
494
|
|
|
447
495
|
def border(left: str, middle: str, right: str) -> str:
|
|
448
496
|
return left + middle.join("─" * (cell + 2) for cell in widths) + right
|
|
449
497
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
fragments = [
|
|
455
|
-
_close_fragments(_wrap_styled(cell, widths[index], 0))
|
|
456
|
-
for index, cell in enumerate(row)
|
|
457
|
-
]
|
|
458
|
-
for line_index in range(max(len(cell) for cell in fragments)):
|
|
498
|
+
def box_rows(cells: list[list[str]], heading: bool) -> list[str]:
|
|
499
|
+
height = max(len(cell) for cell in cells)
|
|
500
|
+
out = []
|
|
501
|
+
for line_index in range(height):
|
|
459
502
|
parts = []
|
|
460
|
-
for index, cell in enumerate(
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
503
|
+
for index, cell in enumerate(cells):
|
|
504
|
+
# Short cells sit in the vertical middle of the row.
|
|
505
|
+
at = line_index - (height - len(cell)) // 2
|
|
506
|
+
text = cell[at] if 0 <= at < len(cell) else ""
|
|
507
|
+
alignment = "center" if heading else alignments[index]
|
|
508
|
+
parts.append(f" {_pad_cell(text, widths[index], alignment)} ")
|
|
509
|
+
out.append("│" + "│".join(parts) + "│")
|
|
510
|
+
return out
|
|
511
|
+
|
|
512
|
+
rendered = [border("┌", "┬", "┐"), *box_rows(header_cells, True)]
|
|
513
|
+
for cells in body_cells:
|
|
514
|
+
rendered.append(border("├", "┼", "┤"))
|
|
515
|
+
rendered.extend(box_rows(cells, False))
|
|
465
516
|
rendered.append(border("└", "┴", "┘"))
|
|
517
|
+
if max(_visible_width(row) for row in rendered) > columns - _TABLE_SPARE:
|
|
518
|
+
return _vertical_table(header, body, columns, hidden)
|
|
519
|
+
if hidden:
|
|
520
|
+
rendered.append(_hidden_rows(hidden))
|
|
521
|
+
return rendered
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
def _hidden_rows(count: int) -> str:
|
|
525
|
+
return f"… {count:,} more {'row' if count == 1 else 'rows'} not shown"
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
def _vertical_table(
|
|
529
|
+
header: list[str], body: list[list[str]], columns: int, hidden: int,
|
|
530
|
+
) -> list[str]:
|
|
531
|
+
"""Claude's fallback layout: one ``header: value`` line block per row."""
|
|
532
|
+
labels = [_ESCAPE_RE.sub("", cell).strip() for cell in header]
|
|
533
|
+
if not body:
|
|
534
|
+
labels, body = [""] * len(header), [header]
|
|
535
|
+
rule = "─" * min(columns - 1, 40)
|
|
536
|
+
rendered: list[str] = []
|
|
537
|
+
for row in body:
|
|
538
|
+
block = []
|
|
539
|
+
for label, cell in zip(labels, row):
|
|
540
|
+
value = " ".join(cell.split())
|
|
541
|
+
if not label and not value:
|
|
542
|
+
continue
|
|
543
|
+
first = (
|
|
544
|
+
columns - _visible_width(label) - 3 if label else columns - 1)
|
|
545
|
+
lines = _close_fragments(
|
|
546
|
+
_wrap_styled(value, max(first, 10), 0))
|
|
547
|
+
if len(lines) > 1:
|
|
548
|
+
rest = " ".join(line.strip() for line in lines[1:])
|
|
549
|
+
lines = [
|
|
550
|
+
lines[0],
|
|
551
|
+
*_close_fragments(_wrap_styled(rest, columns - 3, 0)),
|
|
552
|
+
]
|
|
553
|
+
block.append(
|
|
554
|
+
f"{BOLD}{label}:{BOLD_OFF} {lines[0]}" if label else lines[0])
|
|
555
|
+
block.extend(line for line in lines[1:] if line.strip())
|
|
556
|
+
if not block:
|
|
557
|
+
continue
|
|
558
|
+
if rendered:
|
|
559
|
+
rendered.append(rule)
|
|
560
|
+
rendered.extend(block)
|
|
561
|
+
if hidden:
|
|
562
|
+
if rendered:
|
|
563
|
+
rendered.append(rule)
|
|
564
|
+
rendered.append(_hidden_rows(hidden))
|
|
466
565
|
return rendered
|
|
467
566
|
|
|
468
567
|
|
|
@@ -520,11 +619,9 @@ def _markdown_lines(lines: list[str], width: int | None = None) -> list[str]:
|
|
|
520
619
|
end = index + 1
|
|
521
620
|
while end < len(lines) and lines[end].lstrip().startswith("|"):
|
|
522
621
|
end += 1
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
index = end
|
|
527
|
-
continue
|
|
622
|
+
rendered.extend(_markdown_table(lines[index - 1:end], width))
|
|
623
|
+
index = end
|
|
624
|
+
continue
|
|
528
625
|
heading = _MD_HEADING_RE.match(line)
|
|
529
626
|
if heading:
|
|
530
627
|
inner = _markdown_inline(heading.group(2), bold=True)
|
|
@@ -681,8 +778,10 @@ def _claude_current_branch(records: list[dict]) -> list[dict]:
|
|
|
681
778
|
UUID is the active tip; walking its parents retains the shared prefix and
|
|
682
779
|
the replacement suffix while excluding abandoned and sub-agent branches.
|
|
683
780
|
|
|
684
|
-
|
|
685
|
-
|
|
781
|
+
A compaction boundary starts a new chain; its ``logicalParentUuid`` leads
|
|
782
|
+
back to the messages before it. UUID-less metadata is retained for the
|
|
783
|
+
normal renderer filters. If the input is a bounded tail, walking stops
|
|
784
|
+
safely at the first missing parent.
|
|
686
785
|
"""
|
|
687
786
|
by_uuid: dict[str, dict] = {}
|
|
688
787
|
tip: str | None = None
|
|
@@ -704,6 +803,9 @@ def _claude_current_branch(records: list[dict]) -> list[dict]:
|
|
|
704
803
|
break
|
|
705
804
|
current.add(cursor)
|
|
706
805
|
parent = record.get("parentUuid")
|
|
806
|
+
if not parent and record.get("subtype") == "compact_boundary":
|
|
807
|
+
# A live session keeps showing the messages before a compaction.
|
|
808
|
+
parent = record.get("logicalParentUuid")
|
|
707
809
|
cursor = parent if isinstance(parent, str) and parent else None
|
|
708
810
|
|
|
709
811
|
return [
|
|
@@ -724,7 +826,9 @@ def _render_claude_records(
|
|
|
724
826
|
calls: dict[str, str] = {}
|
|
725
827
|
for record in _claude_current_branch(records):
|
|
726
828
|
rtype = record.get("type", "")
|
|
727
|
-
if rtype in _SKIP_TYPES
|
|
829
|
+
if rtype in _SKIP_TYPES and not (
|
|
830
|
+
claude_native and record.get("subtype") == "compact_boundary"
|
|
831
|
+
):
|
|
728
832
|
continue
|
|
729
833
|
if not claude_native:
|
|
730
834
|
if _is_real_user(record):
|
|
@@ -736,8 +840,24 @@ def _render_claude_records(
|
|
|
736
840
|
elif rtype == "assistant":
|
|
737
841
|
yield from _render_assistant_blocks(record, calls)
|
|
738
842
|
continue
|
|
739
|
-
|
|
740
|
-
|
|
843
|
+
if (
|
|
844
|
+
rtype == "system"
|
|
845
|
+
and record.get("subtype") == "compact_boundary"
|
|
846
|
+
):
|
|
847
|
+
# Claude marks a compaction with one dim line, not the summary.
|
|
848
|
+
yield (
|
|
849
|
+
f"\n{DIM}✻ Conversation compacted"
|
|
850
|
+
f"{RESET}\n"
|
|
851
|
+
)
|
|
852
|
+
continue
|
|
853
|
+
# Claude hides meta prompts such as a loaded skill's instructions,
|
|
854
|
+
# and the compaction summary it only shows in the ctrl+o transcript.
|
|
855
|
+
if (
|
|
856
|
+
_is_real_user(record)
|
|
857
|
+
and record.get("isMeta") is not True
|
|
858
|
+
and record.get("isCompactSummary") is not True
|
|
859
|
+
and record.get("isVisibleInTranscriptOnly") is not True
|
|
860
|
+
):
|
|
741
861
|
rendered = _render_claude_native_user(record, width)
|
|
742
862
|
if rendered:
|
|
743
863
|
yield rendered
|
|
@@ -54,6 +54,20 @@ def test_decode_nonexistent_splits_every_dash(tmp_path, monkeypatch):
|
|
|
54
54
|
assert result == Path("/zzz/foo/bar"), result
|
|
55
55
|
|
|
56
56
|
|
|
57
|
+
def test_decode_skips_directories_other_users_keep_private(tmp_path):
|
|
58
|
+
# Another user's 0700 /tmp/claude made probing /tmp/claude/<uid> raise
|
|
59
|
+
# while decoding a project in /tmp/claude-<uid>.
|
|
60
|
+
private = tmp_path / "claude"
|
|
61
|
+
private.mkdir()
|
|
62
|
+
real = tmp_path / "claude-49028" / "work"
|
|
63
|
+
real.mkdir(parents=True)
|
|
64
|
+
private.chmod(0)
|
|
65
|
+
try:
|
|
66
|
+
assert decode(encode(real)) == real
|
|
67
|
+
finally:
|
|
68
|
+
private.chmod(0o700)
|
|
69
|
+
|
|
70
|
+
|
|
57
71
|
def test_decode_with_dashes_in_intermediate_segment(tmp_path):
|
|
58
72
|
real = tmp_path / "claude-chat" / "src"
|
|
59
73
|
real.mkdir(parents=True)
|
|
@@ -965,7 +965,7 @@ def test_claude_native_history_draws_tables_that_fit_the_pane():
|
|
|
965
965
|
|
|
966
966
|
assert rows == [
|
|
967
967
|
"● ┌──────┬─────────────────┐",
|
|
968
|
-
" │ Name │
|
|
968
|
+
" │ Name │ Notes │",
|
|
969
969
|
" ├──────┼─────────────────┤",
|
|
970
970
|
" │ a │ one two three │",
|
|
971
971
|
" │ │ four │",
|
|
@@ -988,12 +988,70 @@ def test_claude_native_history_matches_claude_table_and_link_layout():
|
|
|
988
988
|
assert rows == [
|
|
989
989
|
"● Title",
|
|
990
990
|
" ",
|
|
991
|
-
"
|
|
992
|
-
" │ PR
|
|
993
|
-
"
|
|
994
|
-
" │ #1
|
|
995
|
-
" │
|
|
996
|
-
"
|
|
991
|
+
" ┌─────┬────────────────────────────┐",
|
|
992
|
+
" │ PR │ Notes │",
|
|
993
|
+
" ├─────┼────────────────────────────┤",
|
|
994
|
+
" │ #1 │ alpha beta gamma delta │",
|
|
995
|
+
" │ │ epsilon zeta eta theta │",
|
|
996
|
+
" └─────┴────────────────────────────┘",
|
|
997
|
+
]
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
def test_claude_native_history_aligns_table_columns():
|
|
1001
|
+
table = "| L | C | R |\n|:---|:---:|---:|\n| a | b | c |"
|
|
1002
|
+
rows = _plain_rows(_native([_assistant(table)], width=40))[1:-1]
|
|
1003
|
+
|
|
1004
|
+
assert rows[1] == " │ L │ C │ R │"
|
|
1005
|
+
assert rows[3] == " │ a │ b │ c │"
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
def test_claude_native_history_lists_tall_tables_vertically():
|
|
1009
|
+
long = " ".join(["word"] * 40)
|
|
1010
|
+
table = f"| File | Notes |\n|---|---|\n| a.py | {long} |\n| b.py | short |"
|
|
1011
|
+
rows = _plain_rows(_native([_assistant(table)], width=60))[1:-1]
|
|
1012
|
+
|
|
1013
|
+
first_width = 60 - len("Notes") - 3
|
|
1014
|
+
assert rows[0] == "● File: a.py"
|
|
1015
|
+
assert rows[1].startswith(" Notes: word")
|
|
1016
|
+
assert len(rows[1]) - len(" Notes: ") <= first_width
|
|
1017
|
+
# Continuation rows start at the margin and use the full width.
|
|
1018
|
+
assert rows[2] == " " + " ".join(["word"] * 11)
|
|
1019
|
+
assert rows[-3:] == [" " + "─" * 40, " File: b.py", " Notes: short"]
|
|
1020
|
+
assert all(len(row) <= 60 for row in rows)
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
def test_claude_native_wrap_counts_the_space_after_a_full_row():
|
|
1024
|
+
# Width 20 leaves 18 cells per body row; "aaa…" fills its row exactly,
|
|
1025
|
+
# so the separator space takes the next row's first cell and the
|
|
1026
|
+
# 15-cell word no longer fits beside "bb".
|
|
1027
|
+
rendered = _native([_assistant(
|
|
1028
|
+
"a" * 18 + " bb " + "c" * 15)], width=20)
|
|
1029
|
+
|
|
1030
|
+
assert _plain_rows(rendered)[1:-1] == [
|
|
1031
|
+
"● " + "a" * 18, " bb", " " + "c" * 15,
|
|
1032
|
+
]
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
def test_claude_native_history_crosses_compaction_without_summary():
|
|
1036
|
+
records = [
|
|
1037
|
+
{"type": "user", "uuid": "u1", "parentUuid": None,
|
|
1038
|
+
"message": {"role": "user", "content": "before"}},
|
|
1039
|
+
{"type": "assistant", "uuid": "a1", "parentUuid": "u1",
|
|
1040
|
+
"message": {"role": "assistant",
|
|
1041
|
+
"content": [{"type": "text", "text": "old answer"}]}},
|
|
1042
|
+
{"type": "system", "subtype": "compact_boundary", "uuid": "b1",
|
|
1043
|
+
"parentUuid": None, "logicalParentUuid": "a1",
|
|
1044
|
+
"content": "Conversation compacted"},
|
|
1045
|
+
{"type": "user", "uuid": "s1", "parentUuid": "b1",
|
|
1046
|
+
"isCompactSummary": True, "isVisibleInTranscriptOnly": True,
|
|
1047
|
+
"message": {"role": "user", "content": "This session is being..."}},
|
|
1048
|
+
{"type": "user", "uuid": "u2", "parentUuid": "s1",
|
|
1049
|
+
"message": {"role": "user", "content": "after"}},
|
|
1050
|
+
]
|
|
1051
|
+
rows = [row for row in _plain_rows(_native(records)) if row]
|
|
1052
|
+
|
|
1053
|
+
assert rows == [
|
|
1054
|
+
"❯ before", "● old answer", "✻ Conversation compacted", "❯ after",
|
|
997
1055
|
]
|
|
998
1056
|
|
|
999
1057
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.4.2.dev9"
|
|
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
|