collab-a2a 2.0.1__tar.gz → 2.0.2__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.
- {collab_a2a-2.0.1/src/collab_a2a.egg-info → collab_a2a-2.0.2}/PKG-INFO +17 -3
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/README.md +16 -2
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/pyproject.toml +1 -1
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/__init__.py +1 -1
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/cli.py +65 -11
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/inbox.py +15 -3
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/participant_metrics.py +6 -4
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/recovery.py +4 -0
- collab_a2a-2.0.2/src/collab/client/terminal_panel.py +65 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/tui.py +209 -60
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/worker_service.py +2 -1
- collab_a2a-2.0.2/src/collab/codex_usage.py +92 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/quotas.py +8 -4
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-telemetry/SKILL.md +6 -1
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-telemetry/references/providers.md +1 -1
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-watch/SKILL.md +17 -5
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-worker/SKILL.md +5 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/telemetry.py +30 -2
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/themes.py +1 -1
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/worker.py +23 -1
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/worker_runtime.py +21 -2
- collab_a2a-2.0.2/src/collab/worker_usage.py +79 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2/src/collab_a2a.egg-info}/PKG-INFO +17 -3
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab_a2a.egg-info/SOURCES.txt +6 -0
- collab_a2a-2.0.2/tests/test_cli_v202.py +28 -0
- collab_a2a-2.0.2/tests/test_codex_own_usage.py +69 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_issue_recovery.py +15 -0
- collab_a2a-2.0.2/tests/test_panel_v202.py +110 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_participant_details.py +4 -3
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_participant_panel_in_tmux.py +11 -10
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_roster_colour.py +1 -1
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_roster_rule.py +10 -5
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_status_bar.py +2 -2
- collab_a2a-2.0.2/tests/test_terminal_panel.py +49 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_tui_scroll.py +1 -1
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_worker_runtime.py +7 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_worker_service.py +20 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_worker_state.py +23 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_worker_telemetry_v201.py +52 -0
- collab_a2a-2.0.1/src/collab/worker_usage.py +0 -42
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/LICENSE +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/setup.cfg +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/activity.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/atomic.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/attention.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/batch.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/capacity.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/__init__.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/bridge.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/context.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/daemon.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/daemon_files.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/demo_agent.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/exclusive.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/hub_client.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/onboard.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/settings_tui.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/statusbar.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/client/watch.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/columns.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/compaction.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/compatibility.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/config.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/daemon_main.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/demo.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/diagnostics.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/hosttool.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/hub_main.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/identity.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/learnings.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/lockfile.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/owner.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/peers.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/protocol.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/reboot.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/rules/COLLAB.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/rules.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/runtime_settings.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/server/__init__.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/server/app.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/server/auth.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/server/card.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/server/events.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/server/executor.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/server/hub.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/server/session.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/server/store.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/server/tunnel.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skill_sharing.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-activity/SKILL.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-capacity/SKILL.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-configure/SKILL.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-discover/SKILL.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-host/SKILL.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-host/references/connection-and-recovery.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-join/SKILL.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-join/references/connection-and-recovery.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-learn/SKILL.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-share-skills/SKILL.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills/collab-tasks/SKILL.md +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/skills.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/source_command.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/stats.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/statusline/__init__.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/statusline/entry.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/statusline/install.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/statusline/render.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/statusline/watchdog.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/update.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/wake.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/worker_notices.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab/worker_telemetry.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab_a2a.egg-info/dependency_links.txt +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab_a2a.egg-info/entry_points.txt +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab_a2a.egg-info/requires.txt +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/src/collab_a2a.egg-info/top_level.txt +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_count_that_is_not_a_count.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_daemon_follows_the_agent_that_started_it.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_figure_can_be_taken_back.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_figure_of_one_is_one_percent.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_fresh_session_for_everyone.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_hole_in_the_log_is_reported.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_message_is_refused_not_cut.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_pid_from_another_boot_names_nobody.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_project_is_a_bundle_that_belongs_to_somebody.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_quota_read_from_the_agent_itself.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_refused_kind_is_named_briefly.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_state_constant_is_read_by_its_data_model.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_a_window_from_a_bucket_is_still_a_window.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_activity.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_activity_cli.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_activity_hub.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_agent_commands.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_agent_identity.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_an_update_refreshes_what_it_installed.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_asking_is_not_holding.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_attention_contention.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_attention_delivery.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_bare_join.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_batch_progress.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_bind_forms_and_header.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_chat_is_the_only_kind_a_client_sends.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_check.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_clear_quota.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_cli_imports_no_httpx.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_colour_maths.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_colour_propagates.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_colour_push.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_colour_tables_forget_the_departed.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_columns_clip.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_config_command.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_context_compaction.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_daemon_identity.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_demo_agent_panel.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_demo_header_row_is_clipped.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_demo_session.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_diagnostics.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_docs_match_cli.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_every_agent_is_told_how_to_listen.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_every_item_of_a_bar_is_a_choice.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_every_kind_reaches_every_renderer.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_every_stamp_reads_in_the_readers_zone.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_every_verb_an_agent_needs_is_on_a_page_it_reads.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_external_agent_state.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_external_state_live_session.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_file_outcome_takes_junk.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_files.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_fold_override.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_global_figures.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_global_home.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_guest_follows_the_hub.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_home_flag.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_home_isolation.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_home_permissions.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_host_name_clash.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_how_it_was_installed.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_hub.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_hub_version_travels.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_inbox_under_contention.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_inbox_write_order.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_info_blue.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_input_bounds.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_joining_a_dead_session.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_joining_by_name.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_jump_from_the_status_row.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_kill.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_layout.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_learnings.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_learnings_cost.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_learnings_sync.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_leaving_takes_the_wake_with_it.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_listen_kind_filters.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_live_settings.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_liveness_from_a_sandbox.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_local_join_stays_local.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_lock_flow.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_lock_identity.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_lockfile.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_logs_can_be_read_without_stopping_anything.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_loose_ends.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_markdown_themes.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_migration.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_monitor_armed.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_mutation_gaps.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_name_migration.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_name_reuse.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_no_autohost.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_numbers_that_stop_moving_say_why.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_okf_bundle.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_older_above_agrees_with_what_loads.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_orphans.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_overview.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_own_colour.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_owner_stamp.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_participant_cards_v201.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_peers.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_peers_lifecycle.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_periodic_reminder.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_persisted_v2_boundary.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_platform_support.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_rate_limiter_forgets.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_reminder_edges.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_reminder_on_the_monitor.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_rename.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_render.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_resume.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_room_files_wait_for_everyone.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_roster_dots.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_roster_row_keeps_the_count.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_roster_when_the_session_dies.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_rotating_the_invite.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_rotation_is_atomic.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_rules.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_same_name_is_not_ownership.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_semantic_theme_engine.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_settings_panel_in_tmux.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_settings_reach_the_open_session.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_settings_tui.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_shared_skills_and_capacity.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_skill_capabilities_v201.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_skill_formats.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_skill_settings_match_the_registry.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_skills.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_source_command_bounds.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_stale_status.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_state_dir_cleanup.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_state_dirs.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_state_is_not_conversation.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_stats.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_stats_formats.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_stats_ownership.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_stats_say_when.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_stats_source.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_stats_stamp_edges.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_statuses_stay_current.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_statusline_imports_no_networking.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_statusline_install.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_stopped_msg.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_stream.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_tasks_want_a_batch.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_telemetry_v2.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_telling_agents_apart.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_terminal_escapes.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_a2a_client_surface_is_not_dead_code.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_count_is_a_switch.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_count_is_never_shown_outdated.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_daemon_forgets_what_it_no_longer_needs.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_pane_and_the_transcript_agree_about_a_file.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_record_is_kept_without_being_asked.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_reminder_can_be_added_to.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_reminder_reaches_every_agent.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_roster_foot_is_a_grid.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_status_line_cannot_run_forever.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_status_line_does_not_vanish.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_suite_never_reads_your_config.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_two_row_switches_are_independent.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_the_wake_explains_its_clocks.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_theme_files_survive.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_theme_is_visual_only.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_theme_panel_in_tmux.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_transcript_dates_follow_the_clock.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_tui_cost.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_tui_fold_click.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_tui_gutter.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_tui_window.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_tunnel.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_two_agents_one_repo.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_unread_is_what_the_agent_has_not_seen.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_update.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_v201_communication_challenger.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_v201_final_review.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_v201_remaining_surfaces_challenger.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_v2_compatibility.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_viewer_says_what_the_ack_did.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_wake.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_watch_pane_survives.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_what_may_be_signalled.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_which_agent.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_who_is_who.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_worker_delivery.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_worker_notices.py +0 -0
- {collab_a2a-2.0.1 → collab_a2a-2.0.2}/tests/test_worker_source_v201.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: collab-a2a
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: An A2A hub that lets coding agents on different machines talk, align on tasks, and discuss work in real time.
|
|
5
5
|
License: MIT
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -33,7 +33,7 @@ Dynamic: license-file
|
|
|
33
33
|
<img alt="Python 3.10+" src="https://img.shields.io/badge/python-3.10%2B-blue.svg">
|
|
34
34
|
<img alt="A2A Protocol 1.0" src="https://img.shields.io/badge/A2A%20protocol-1.0-0ea5e9.svg">
|
|
35
35
|
<br>
|
|
36
|
-
<a href="https://
|
|
36
|
+
<a href="https://github.com/sponsors/rperez93" target="_blank" rel="noopener noreferrer"><img alt="Sponsor on GitHub" src="https://img.shields.io/badge/Sponsor-GitHub-BF3989?logo=githubsponsors&logoColor=white"></a>
|
|
37
37
|
</p>
|
|
38
38
|
|
|
39
39
|
**Let coding agents talk to each other.**
|
|
@@ -1300,7 +1300,8 @@ because someone who left a minute ago and someone who left yesterday are
|
|
|
1300
1300
|
different situations — then a line of whatever they share: repo and branch,
|
|
1301
1301
|
machine, model, every quota window, spend and context.
|
|
1302
1302
|
|
|
1303
|
-
`tab` switches pane
|
|
1303
|
+
`tab` switches pane; `↑↓` selects participants in the roster and scrolls chat.
|
|
1304
|
+
`j`/`k` and `pgup`/`pgdn` scroll details. `End` (or `G`)
|
|
1304
1305
|
jumps back to the live end and `Home` (or `g`) to the start, `q` quits. The pane
|
|
1305
1306
|
opens on the last few messages and slides its window as you scroll past either
|
|
1306
1307
|
edge — `--limit N` opens on more. The conversation follows new messages until
|
|
@@ -1381,6 +1382,7 @@ fallback on a terminal that cannot do full-screen.
|
|
|
1381
1382
|
**In tmux**, give it its own pane and keep working beside it:
|
|
1382
1383
|
|
|
1383
1384
|
```bash
|
|
1385
|
+
collab watch --panel # tmux or native macOS Ghostty/iTerm2
|
|
1384
1386
|
collab watch --tmux # 35% to the right
|
|
1385
1387
|
collab watch --tmux --vertical # split below
|
|
1386
1388
|
collab watch --tmux --percent 50
|
|
@@ -2738,3 +2740,15 @@ See [resource measurements](docs/performance.md) for CPU/RAM and leak-check limi
|
|
|
2738
2740
|
## License
|
|
2739
2741
|
|
|
2740
2742
|
MIT
|
|
2743
|
+
|
|
2744
|
+
In v2.0.2, collapsed participants use one padded coloured row with main and
|
|
2745
|
+
worker models and activity duration. Up/Down selects participants; Page Up/Down
|
|
2746
|
+
and the wheel scroll details. Stats remain available for a solo participant.
|
|
2747
|
+
See [panel controls and terminal support](docs/watch-panel.md). The Codex probe
|
|
2748
|
+
refreshes own-thread model/context/tokens alongside independently dated quota.
|
|
2749
|
+
Worker facts survive summary changes within a bounded retained-context history.
|
|
2750
|
+
|
|
2751
|
+
In the combined viewer, Tab or Shift+Tab switches panes; `1` focuses
|
|
2752
|
+
Participants and `2` focuses Conversation without moving either scroll position.
|
|
2753
|
+
The footer shows keys for the focused pane. Expanded participant details have
|
|
2754
|
+
left padding and pack short facts and their observation ages onto shared rows.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<img alt="Python 3.10+" src="https://img.shields.io/badge/python-3.10%2B-blue.svg">
|
|
13
13
|
<img alt="A2A Protocol 1.0" src="https://img.shields.io/badge/A2A%20protocol-1.0-0ea5e9.svg">
|
|
14
14
|
<br>
|
|
15
|
-
<a href="https://
|
|
15
|
+
<a href="https://github.com/sponsors/rperez93" target="_blank" rel="noopener noreferrer"><img alt="Sponsor on GitHub" src="https://img.shields.io/badge/Sponsor-GitHub-BF3989?logo=githubsponsors&logoColor=white"></a>
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
**Let coding agents talk to each other.**
|
|
@@ -1279,7 +1279,8 @@ because someone who left a minute ago and someone who left yesterday are
|
|
|
1279
1279
|
different situations — then a line of whatever they share: repo and branch,
|
|
1280
1280
|
machine, model, every quota window, spend and context.
|
|
1281
1281
|
|
|
1282
|
-
`tab` switches pane
|
|
1282
|
+
`tab` switches pane; `↑↓` selects participants in the roster and scrolls chat.
|
|
1283
|
+
`j`/`k` and `pgup`/`pgdn` scroll details. `End` (or `G`)
|
|
1283
1284
|
jumps back to the live end and `Home` (or `g`) to the start, `q` quits. The pane
|
|
1284
1285
|
opens on the last few messages and slides its window as you scroll past either
|
|
1285
1286
|
edge — `--limit N` opens on more. The conversation follows new messages until
|
|
@@ -1360,6 +1361,7 @@ fallback on a terminal that cannot do full-screen.
|
|
|
1360
1361
|
**In tmux**, give it its own pane and keep working beside it:
|
|
1361
1362
|
|
|
1362
1363
|
```bash
|
|
1364
|
+
collab watch --panel # tmux or native macOS Ghostty/iTerm2
|
|
1363
1365
|
collab watch --tmux # 35% to the right
|
|
1364
1366
|
collab watch --tmux --vertical # split below
|
|
1365
1367
|
collab watch --tmux --percent 50
|
|
@@ -2717,3 +2719,15 @@ See [resource measurements](docs/performance.md) for CPU/RAM and leak-check limi
|
|
|
2717
2719
|
## License
|
|
2718
2720
|
|
|
2719
2721
|
MIT
|
|
2722
|
+
|
|
2723
|
+
In v2.0.2, collapsed participants use one padded coloured row with main and
|
|
2724
|
+
worker models and activity duration. Up/Down selects participants; Page Up/Down
|
|
2725
|
+
and the wheel scroll details. Stats remain available for a solo participant.
|
|
2726
|
+
See [panel controls and terminal support](docs/watch-panel.md). The Codex probe
|
|
2727
|
+
refreshes own-thread model/context/tokens alongside independently dated quota.
|
|
2728
|
+
Worker facts survive summary changes within a bounded retained-context history.
|
|
2729
|
+
|
|
2730
|
+
In the combined viewer, Tab or Shift+Tab switches panes; `1` focuses
|
|
2731
|
+
Participants and `2` focuses Conversation without moving either scroll position.
|
|
2732
|
+
The footer shows keys for the focused pane. Expanded participant details have
|
|
2733
|
+
left padding and pack short facts and their observation ages onto shared rows.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "collab-a2a"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.2"
|
|
8
8
|
description = "An A2A hub that lets coding agents on different machines talk, align on tasks, and discuss work in real time."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -2536,10 +2536,21 @@ def cmd_stats(args: argparse.Namespace) -> int:
|
|
|
2536
2536
|
# command; see `collab.quotas`.
|
|
2537
2537
|
from . import quotas as quotamod
|
|
2538
2538
|
|
|
2539
|
+
from .hosttool import detect
|
|
2540
|
+
kind = detect()
|
|
2541
|
+
if args.probe == "codex" and kind and kind != "codex":
|
|
2542
|
+
print("Codex probe refused for a different active agent; configure that agent's own telemetry source", file=sys.stderr)
|
|
2543
|
+
return 1
|
|
2539
2544
|
report, why = quotamod.probe(args.probe)
|
|
2540
2545
|
if why:
|
|
2541
2546
|
print(why, file=sys.stderr)
|
|
2542
2547
|
return 1
|
|
2548
|
+
if args.probe == "codex":
|
|
2549
|
+
from .codex_usage import current_usage
|
|
2550
|
+
# This process inherits the participant's own thread identity.
|
|
2551
|
+
# Quota is account-wide; model/context must come from that thread.
|
|
2552
|
+
report.update(current_usage())
|
|
2553
|
+
report["quota_observed_at"] = time.time()
|
|
2543
2554
|
print(json.dumps(report))
|
|
2544
2555
|
return 0
|
|
2545
2556
|
|
|
@@ -3091,19 +3102,28 @@ def cmd_watch(args: argparse.Namespace) -> int:
|
|
|
3091
3102
|
|
|
3092
3103
|
profile = _require_profile(args)
|
|
3093
3104
|
|
|
3094
|
-
if args.tmux:
|
|
3095
|
-
argv = [
|
|
3105
|
+
if args.tmux or getattr(args, "panel", None):
|
|
3106
|
+
argv = [*_self_argv(), "watch",
|
|
3096
3107
|
"--session", profile.session_id]
|
|
3108
|
+
for field in ("layout", "view", "limit", "roster_size"):
|
|
3109
|
+
value = getattr(args, field, None)
|
|
3110
|
+
if value is not None:
|
|
3111
|
+
argv += ["--" + field.replace("_", "-"), str(value)]
|
|
3112
|
+
for field in ("plain", "no_follow"):
|
|
3113
|
+
if getattr(args, field, False):
|
|
3114
|
+
argv.append("--" + field.replace("_", "-"))
|
|
3097
3115
|
passthrough = {k: os.environ[k] for k in ("COLLAB_CONFIG", "COLLAB_NAME",
|
|
3098
|
-
"NO_COLOR")
|
|
3116
|
+
"NO_COLOR", "PYTHONPATH")
|
|
3099
3117
|
if k in os.environ}
|
|
3100
3118
|
# Always, not only when it happens to be in our environment: a pane
|
|
3101
3119
|
# left to resolve the directory for itself can land in another agent's
|
|
3102
3120
|
# session, and then shows their name as yours.
|
|
3103
3121
|
passthrough["COLLAB_HOME"] = profile.home
|
|
3104
3122
|
try:
|
|
3105
|
-
|
|
3106
|
-
|
|
3123
|
+
from .client.terminal_panel import open_panel
|
|
3124
|
+
where = open_panel(argv, env=passthrough, percent=args.percent,
|
|
3125
|
+
horizontal=not args.vertical,
|
|
3126
|
+
backend="tmux" if args.tmux else args.panel)
|
|
3107
3127
|
except RuntimeError as exc:
|
|
3108
3128
|
fail(str(exc))
|
|
3109
3129
|
if not w.tmux_available():
|
|
@@ -3180,6 +3200,10 @@ def cmd_watch(args: argparse.Namespace) -> int:
|
|
|
3180
3200
|
return 0
|
|
3181
3201
|
|
|
3182
3202
|
|
|
3203
|
+
def _file_size(size: int) -> str:
|
|
3204
|
+
return f"{size} B" if size < 1024 else f"{size / 1024:.0f} KB"
|
|
3205
|
+
|
|
3206
|
+
|
|
3183
3207
|
def cmd_file(args: argparse.Namespace) -> int:
|
|
3184
3208
|
# Sending is under our name, and fetching deletes the host's copy in it.
|
|
3185
3209
|
profile = (_require_profile(args) if args.action == "list"
|
|
@@ -3197,8 +3221,11 @@ def cmd_file(args: argparse.Namespace) -> int:
|
|
|
3197
3221
|
f"{MAX_FILE_BYTES // 1024 // 1024}MB")
|
|
3198
3222
|
return 1
|
|
3199
3223
|
record = client.upload_file(path, to=args.to, room=args.room)
|
|
3224
|
+
if args.json:
|
|
3225
|
+
print(json.dumps(record, indent=2))
|
|
3226
|
+
return 0
|
|
3200
3227
|
target = f"@{args.to}" if args.to else f"#{args.room or profile.room}"
|
|
3201
|
-
ok(f"shared {said(record['name'])} ({size
|
|
3228
|
+
ok(f"shared {said(record['name'])} ({_file_size(size)}) with {target}")
|
|
3202
3229
|
print(f" {dim('they fetch it with: collab file get ' + record['id'])}")
|
|
3203
3230
|
if args.to:
|
|
3204
3231
|
print(f" {dim('it is deleted from the host once they confirm receipt')}")
|
|
@@ -3226,7 +3253,7 @@ def cmd_file(args: argparse.Namespace) -> int:
|
|
|
3226
3253
|
who = (f"→ {scrub(str(f['recipient']))}" if f["recipient"]
|
|
3227
3254
|
else f"#{scrub(str(f['room']))}")
|
|
3228
3255
|
print(f" {f['id']} {scrub(str(f['name']))} "
|
|
3229
|
-
f"{f['size']
|
|
3256
|
+
f"{_file_size(f['size'])} from {scrub(str(f['sender']))} {who}")
|
|
3230
3257
|
return 0
|
|
3231
3258
|
|
|
3232
3259
|
if args.action == "get":
|
|
@@ -3239,7 +3266,12 @@ def cmd_file(args: argparse.Namespace) -> int:
|
|
|
3239
3266
|
path.unlink(missing_ok=True)
|
|
3240
3267
|
fail("checksum mismatch — the download was corrupt, not confirming receipt")
|
|
3241
3268
|
return 1
|
|
3242
|
-
|
|
3269
|
+
if args.json:
|
|
3270
|
+
receipt = None if args.keep else client.ack_file(args.target)
|
|
3271
|
+
print(json.dumps({"id": args.target, "path": str(path), "sha256": digest,
|
|
3272
|
+
"size": path.stat().st_size, "receipt": receipt}, indent=2))
|
|
3273
|
+
return 0
|
|
3274
|
+
ok(f"saved {path} ({_file_size(path.stat().st_size)}, checksum verified)")
|
|
3243
3275
|
if args.keep:
|
|
3244
3276
|
if record and not record["recipient"]:
|
|
3245
3277
|
minutes = ROOM_FILE_TTL_SECONDS // 60
|
|
@@ -3259,7 +3291,10 @@ def cmd_file(args: argparse.Namespace) -> int:
|
|
|
3259
3291
|
|
|
3260
3292
|
if args.action == "rm":
|
|
3261
3293
|
client.delete_file(args.target)
|
|
3262
|
-
|
|
3294
|
+
if args.json:
|
|
3295
|
+
print(json.dumps({"id": args.target, "deleted": True}))
|
|
3296
|
+
else:
|
|
3297
|
+
ok(f"withdrew {args.target}")
|
|
3263
3298
|
return 0
|
|
3264
3299
|
except HubError as exc:
|
|
3265
3300
|
fail(str(exc))
|
|
@@ -6684,8 +6719,23 @@ def print_overview() -> None:
|
|
|
6684
6719
|
print(dim(" https://github.com/rperez93/collab-a2a\n"))
|
|
6685
6720
|
|
|
6686
6721
|
|
|
6722
|
+
class _CollabParser(argparse.ArgumentParser):
|
|
6723
|
+
def parse_known_args(self, args=None, namespace=None):
|
|
6724
|
+
parsed, remaining = super().parse_known_args(args, namespace)
|
|
6725
|
+
# argparse stops its optional positional after «comment --id ID».
|
|
6726
|
+
# Recover just that one comment, leaving unknown flags and additional
|
|
6727
|
+
# arguments to the ordinary parser error instead of swallowing typos.
|
|
6728
|
+
if (getattr(parsed, 'func', None) in (cmd_task, cmd_project)
|
|
6729
|
+
and getattr(parsed, 'action', None) == 'comment'
|
|
6730
|
+
and getattr(parsed, 'title', None) is None
|
|
6731
|
+
and len(remaining) == 1 and not remaining[0].startswith('-')):
|
|
6732
|
+
parsed.title = remaining[0]
|
|
6733
|
+
remaining = []
|
|
6734
|
+
return parsed, remaining
|
|
6735
|
+
|
|
6736
|
+
|
|
6687
6737
|
def build_parser() -> argparse.ArgumentParser:
|
|
6688
|
-
p =
|
|
6738
|
+
p = _CollabParser(
|
|
6689
6739
|
prog="collab",
|
|
6690
6740
|
description="An A2A hub that lets coding agents talk, align on tasks, and discuss work.",
|
|
6691
6741
|
)
|
|
@@ -7097,8 +7147,12 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
7097
7147
|
up.set_defaults(func=cmd_update)
|
|
7098
7148
|
|
|
7099
7149
|
wa = sub.add_parser("watch", help="a readable live transcript of the conversation")
|
|
7100
|
-
wa.
|
|
7150
|
+
panel = wa.add_mutually_exclusive_group()
|
|
7151
|
+
panel.add_argument("--tmux", action="store_true",
|
|
7101
7152
|
help="open it in a new tmux pane instead of here")
|
|
7153
|
+
panel.add_argument("--panel", nargs="?", const="auto",
|
|
7154
|
+
choices=["auto", "tmux", "ghostty", "iterm2"],
|
|
7155
|
+
help="open a terminal split (Ghostty 1.3+ and iTerm2 require macOS)")
|
|
7102
7156
|
wa.add_argument("--vertical", action="store_true",
|
|
7103
7157
|
help="with --tmux, split below instead of to the right")
|
|
7104
7158
|
wa.add_argument("--percent", type=int, default=35,
|
|
@@ -557,6 +557,15 @@ class Inbox:
|
|
|
557
557
|
).fetchone()
|
|
558
558
|
return row is not None
|
|
559
559
|
|
|
560
|
+
def verify_replay(self, after: int, through: int) -> None:
|
|
561
|
+
"""Remember a contiguous authenticated replay, including private gaps."""
|
|
562
|
+
with self._lock:
|
|
563
|
+
row = self._db.execute("SELECT value FROM meta WHERE key='verified_through'").fetchone()
|
|
564
|
+
before = int(row[0]) if row else 0
|
|
565
|
+
if after <= before and through > before:
|
|
566
|
+
self._db.execute("INSERT OR REPLACE INTO meta VALUES ('verified_through', ?)", (str(through),))
|
|
567
|
+
self._db.commit()
|
|
568
|
+
|
|
560
569
|
def gaps(self, limit: int = 1000) -> list[int]:
|
|
561
570
|
"""Unverified holes in the global sequence, never a loss count.
|
|
562
571
|
|
|
@@ -571,13 +580,16 @@ class Inbox:
|
|
|
571
580
|
limit = max(0, min(limit, 1000))
|
|
572
581
|
missing: list[int] = []
|
|
573
582
|
with self._lock:
|
|
583
|
+
verified = self._db.execute("SELECT value FROM meta WHERE key='verified_through'").fetchone()
|
|
584
|
+
floor = int(verified[0]) if verified else 0
|
|
574
585
|
rows = self._db.execute(
|
|
575
586
|
"SELECT previous, seq FROM (SELECT seq, LAG(seq) OVER (ORDER BY seq) "
|
|
576
|
-
"AS previous FROM inbox) WHERE seq > previous + 1 LIMIT ?", (limit
|
|
587
|
+
"AS previous FROM inbox) WHERE seq > previous + 1 AND seq > ? + 1 LIMIT ?", (floor, limit)
|
|
577
588
|
)
|
|
578
589
|
for row in rows:
|
|
579
|
-
|
|
580
|
-
|
|
590
|
+
start = max(row["previous"], floor) + 1
|
|
591
|
+
count = min(row["seq"] - start, limit - len(missing))
|
|
592
|
+
missing.extend(range(start, start + count))
|
|
581
593
|
if len(missing) >= limit:
|
|
582
594
|
break
|
|
583
595
|
return missing
|
|
@@ -110,18 +110,20 @@ def metric_lines(person: dict[str, Any], fields: list[str] | tuple[str, ...],
|
|
|
110
110
|
line = "worker unknown"
|
|
111
111
|
if detailed and worker:
|
|
112
112
|
extra.extend([
|
|
113
|
-
f"worker {worker.get('agent') or 'agent unknown'} · {worker.get('model') or '
|
|
113
|
+
f"worker {worker.get('agent') or 'agent unknown'} · configured {worker.get('model') or 'unknown'}",
|
|
114
114
|
f"attempts {_count(worker.get('attempts'))} · pending {_count(worker.get('pending'))} · errors {_count(worker.get('errors'))}",
|
|
115
115
|
f"worker {cost_text(worker)}",
|
|
116
116
|
f"worker tokens in {_count(worker.get('tokens_in'))} · out {_count(worker.get('tokens_out'))} · cached {_count(worker.get('tokens_cached'))}",
|
|
117
|
-
f"worker
|
|
117
|
+
f"worker last model {worker.get('last_model') or 'not yet reported'}",
|
|
118
118
|
"worker tokens " + freshness({"observed_at": worker.get("tokens_observed_at")}),
|
|
119
119
|
"worker cost " + freshness({"observed_at": worker.get("cost_observed_at")}),
|
|
120
120
|
f"worker cache writes {_count(worker.get('tokens_cache_write'))}",
|
|
121
121
|
f"worker {quota_summary(worker, with_resets=True) or 'quota unknown'} · {worker.get('quota_scope') or 'unknown'} scope",
|
|
122
122
|
"worker quota " + freshness({"observed_at": worker.get("quota_observed_at")}),
|
|
123
|
-
f"worker ctx {_count(worker.get('context_pct'))}% · {_count(worker.get('context_tokens'))} / {_count(worker.get('context_limit'))} tokens"
|
|
124
|
-
|
|
123
|
+
(f"worker ctx {_count(worker.get('context_pct'))}% · {_count(worker.get('context_tokens'))} / {_count(worker.get('context_limit'))} tokens"
|
|
124
|
+
if any(_number(worker.get(key)) is not None for key in ('context_pct', 'context_tokens', 'context_limit'))
|
|
125
|
+
else "worker context not exposed by Codex exec" if worker.get('agent') == 'codex'
|
|
126
|
+
else "worker context not yet reported"),
|
|
125
127
|
provenance(worker),
|
|
126
128
|
])
|
|
127
129
|
elif field == "location":
|
|
@@ -51,6 +51,10 @@ def repair_inbox(profile: SessionProfile, client: HubClient, *, after: int = 0,
|
|
|
51
51
|
if box.record(env, repaired=True):
|
|
52
52
|
recovered += 1
|
|
53
53
|
recovered_seqs.append(env.seq)
|
|
54
|
+
# A visible replay has verified the invisible sequence numbers as
|
|
55
|
+
# well. Otherwise check kept warning about other people's DMs even
|
|
56
|
+
# after a complete repair found nothing missing.
|
|
57
|
+
box.verify_replay(cursor, moved)
|
|
54
58
|
cursor = moved
|
|
55
59
|
pages += 1
|
|
56
60
|
if cursor >= through:
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"""Native split launchers; terminal apps own their panes and proportions."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import os
|
|
5
|
+
import shlex
|
|
6
|
+
import shutil
|
|
7
|
+
import subprocess
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def applescript(backend: str, command: str, *, below: bool) -> str:
|
|
12
|
+
# Pass shell source as a runtime argument, never as AppleScript source.
|
|
13
|
+
# Quotes, newlines and backslashes in a checkout path remain plain data.
|
|
14
|
+
if backend == "iterm2":
|
|
15
|
+
direction = "horizontally" if below else "vertically"
|
|
16
|
+
body = f'''tell application "iTerm2"
|
|
17
|
+
set original to current session of current window
|
|
18
|
+
tell original
|
|
19
|
+
split {direction} with default profile command viewerCommand
|
|
20
|
+
end tell
|
|
21
|
+
tell original to select
|
|
22
|
+
end tell'''
|
|
23
|
+
else:
|
|
24
|
+
direction = "down" if below else "right"
|
|
25
|
+
body = f'''tell application "Ghostty"
|
|
26
|
+
set original to focused terminal of selected tab of front window
|
|
27
|
+
set cfg to new surface configuration
|
|
28
|
+
set command of cfg to viewerCommand
|
|
29
|
+
split original direction {direction} with configuration cfg
|
|
30
|
+
focus original
|
|
31
|
+
end tell'''
|
|
32
|
+
return "on run argv\nset viewerCommand to item 1 of argv\n" + body + "\nend run\n"
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def open_panel(argv: list[str], *, env: dict[str, str], backend: str = "auto",
|
|
36
|
+
percent: int = 35, horizontal: bool = True) -> str:
|
|
37
|
+
from . import watch
|
|
38
|
+
if backend == "auto":
|
|
39
|
+
if watch.in_tmux():
|
|
40
|
+
backend = "tmux"
|
|
41
|
+
else:
|
|
42
|
+
backend = {"ghostty": "ghostty", "iTerm.app": "iterm2"}.get(
|
|
43
|
+
os.environ.get("TERM_PROGRAM", ""), "")
|
|
44
|
+
if backend == "tmux":
|
|
45
|
+
return watch.open_tmux_pane(argv, env=env, percent=percent, horizontal=horizontal)
|
|
46
|
+
if backend not in ("ghostty", "iterm2") or sys.platform != "darwin":
|
|
47
|
+
raise RuntimeError("native panels need tmux, iTerm2 on macOS, or Ghostty 1.3+ on macOS; "
|
|
48
|
+
"run collab watch in a terminal split otherwise")
|
|
49
|
+
executable = shutil.which("osascript")
|
|
50
|
+
if not executable:
|
|
51
|
+
raise RuntimeError("osascript is unavailable; run collab watch in a terminal split")
|
|
52
|
+
inner = shlex.join(["env", *(f"{k}={v}" for k, v in env.items()), *argv])
|
|
53
|
+
command = shlex.join(["/bin/sh", "-c", "cd " + shlex.quote(os.getcwd()) + " && exec " + inner])
|
|
54
|
+
try:
|
|
55
|
+
# Native automation can wait for macOS permission. Bound the wait and
|
|
56
|
+
# discard output: an app writing diagnostics must not fill our memory.
|
|
57
|
+
result = subprocess.run([executable, "-", command],
|
|
58
|
+
input=applescript(backend, command, below=not horizontal),
|
|
59
|
+
text=True, stdout=subprocess.DEVNULL,
|
|
60
|
+
stderr=subprocess.DEVNULL, timeout=15)
|
|
61
|
+
except (OSError, subprocess.TimeoutExpired) as exc:
|
|
62
|
+
raise RuntimeError(f"{backend} panel launch failed; check macOS Automation permission") from exc
|
|
63
|
+
if result.returncode:
|
|
64
|
+
raise RuntimeError(f"{backend} refused the split; check app version and macOS Automation permission")
|
|
65
|
+
return f"opened a {backend} pane (terminal-managed size)"
|