webbee 0.7.41__tar.gz → 0.7.42__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.
- {webbee-0.7.41 → webbee-0.7.42}/CHANGELOG.md +6 -0
- {webbee-0.7.41 → webbee-0.7.42}/PKG-INFO +2 -2
- {webbee-0.7.41 → webbee-0.7.42}/pyproject.toml +2 -2
- webbee-0.7.42/src/webbee/__init__.py +1 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/repl.py +11 -6
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/session.py +12 -1
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/steer.py +36 -3
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/thread.py +17 -1
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_session.py +17 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_steer.py +105 -0
- {webbee-0.7.41 → webbee-0.7.42}/uv.lock +8 -8
- webbee-0.7.41/src/webbee/__init__.py +0 -1
- {webbee-0.7.41 → webbee-0.7.42}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/.github/pull_request_template.md +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/.github/workflows/os-check.yml +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/.github/workflows/publish.yml +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/.gitignore +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/LICENSE +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/PRIVACY.md +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/README.md +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/SECURITY.md +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/assets/architecture.png +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/assets/demo.gif +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/assets/hero.png +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/assets/social-preview.png +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/__init__.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/__init__.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/drivers.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/fixture.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/fixture_long.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/fixture_wait.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/provision_user.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/registry.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/replay.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/run.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/scenarios_account.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/scenarios_code.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/scenarios_contract.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/scenarios_long.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/scenarios_wait.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/test_drivers.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/test_fixture.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/test_fixture_long.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/test_fixture_wait.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/test_registry.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/test_replay.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/field_gate/wipe.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/ci/os_check.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/dev-webbee +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/install.sh +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/__main__.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/_launch.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/account.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/active_sessions.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/autoupdate.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/banner_art.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/blocks.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/boot.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/browser.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/checkpoints.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/cli.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/clipboard.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/clipboard_read.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/clipboard_session.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/coding_context.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/commands.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/config.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/consent.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/details.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/events.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/expand.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/frames.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/home.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/home_view.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/http.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/i18n.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/instance_lock.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/intel/__init__.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/intel/graph.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/intel/outline.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/intel/query.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/intel/service.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/intel/store.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/intel/tree.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/intel/watch.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/jobs.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/jobs_panel.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/jobwatch.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/loop_errors.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/media.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/modals.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/mode_store.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/native_files.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/native_read.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/newtab_mode.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/output_pane.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/prefs.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/pricing_constants.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/queue_panel.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/reflow.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/remote.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/render.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/repo.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/rooms.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/selection.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/sessions.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/sizing.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/slots.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/stallwatch.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/stream.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/tab_store.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/tabs.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/tier_store.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/todo_panel.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/tokens.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/tools.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/tui.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/ui_tokens.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/update.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/urlopen.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/wallet.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/src/webbee/worktrees.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/__init__.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/conftest.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_account.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_active_sessions.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_answer_delta.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_append_file.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_audit_2026_07_25_findings.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_autoupdate.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_blocks.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_checkpoints.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_checkpoints_nested_1030.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_cli.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_clipboard.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_clipboard_read.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_code_map_fresh.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_coding_context.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_commands.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_config.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_cpc_contract_stable.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_cpc_outline.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_cross_loop_token.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_details.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_events.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_expand.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_field_test_1113.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_freeze_fix.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_grid_golden.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_guide_and_semantic_ux.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_home.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_home_view.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_home_view_mouse.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_i18n.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_inspect_page.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_instance_lock.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_any_folder.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_cache_and_sync_worker.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_checksum_tree.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_chunker.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_embed.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_folder_1106.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_graph.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_no_numpy.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_query.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_service.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_store.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_intel_watch.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_jobs_1127.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_launch.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_loop_errors.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_marathon.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_modals_e2e.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_mode_and_remote_0_6_8.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_mode_store.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_native_files.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_newtab_mode.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_one_executor.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_packaging.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_probe_cost.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_queue_manage_0337.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_read_never_waits_for_the_repo.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_reflow.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_remote_code_reads.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_render.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_repl.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_repo.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_resilient_http.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_result_fits_the_door.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_review_fixes_1030.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_rooms.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_session_review_1030.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_sessions.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_sizing.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_slots.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_ssh_guard.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_stallwatch.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_stream.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tab_bar_stability.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tab_restore_0337.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tabs.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_terminal_ux_0336.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_thread.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tier_invalidation.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tier_store.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_todo_panel.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tokens.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tool_ack.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tools.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tools_eol_cancel_1030.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tools_vision_websearch.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tray_1126.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tui.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_tui_hardening.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_ui_tokens.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_update.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_update_badge_0340.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_urlopen.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_version.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_version_badge_corner.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_voice_outcome.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_wallet.py +0 -0
- {webbee-0.7.41 → webbee-0.7.42}/tests/test_worktrees.py +0 -0
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.42
|
|
4
|
+
|
|
5
|
+
* The agents' inbox, exactly once: an idle Webbee takes a letter from another session with a lease and its own reader id, and acknowledges it as soon as the server accepted the turn. A letter not acknowledged is delivered again; one already accepted is never run twice. An older gateway ignores both and hands letters over as before.
|
|
6
|
+
* A picked-up letter says where it came from (the person's surface, another session, a room's assignment, or the system) and rides the turn with it; a letter with no surface is never dressed as the person's own words.
|
|
7
|
+
* Dependency bump: requires `imperal-mcp>=0.9.28`.
|
|
8
|
+
|
|
3
9
|
## 0.7.41
|
|
4
10
|
|
|
5
11
|
* One session, one executor: two Webbee windows in the same repository never run one session twice. Every process sends its own instance id (`X-Webbee-Instance`) on `/stream` and `/result`; the gateway keeps one executor per session, and a window that loses it gets a `superseded` notice, stops running tools and does not reconnect by itself. `/takeover` or Ctrl+R takes the session back explicitly.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: webbee
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.42
|
|
4
4
|
Summary: Webbee 🐝 — the Imperal Cloud coding agent in your terminal
|
|
5
5
|
Project-URL: Homepage, https://imperal.io/webbee-code
|
|
6
6
|
Project-URL: Documentation, https://docs.imperal.io
|
|
@@ -31,7 +31,7 @@ Requires-Python: >=3.7
|
|
|
31
31
|
Requires-Dist: asyncssh>=2.14; python_version >= '3.10'
|
|
32
32
|
Requires-Dist: httpx-sse>=0.4; python_version >= '3.10'
|
|
33
33
|
Requires-Dist: httpx>=0.27; python_version >= '3.10'
|
|
34
|
-
Requires-Dist: imperal-mcp>=0.9.
|
|
34
|
+
Requires-Dist: imperal-mcp>=0.9.28; python_version >= '3.10'
|
|
35
35
|
Requires-Dist: imperal-sdk[universal-index]>=6.17.1; python_version >= '3.10'
|
|
36
36
|
Requires-Dist: pillow>=10; python_version >= '3.10'
|
|
37
37
|
Requires-Dist: prompt-toolkit>=3; python_version >= '3.10'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "webbee"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.42"
|
|
4
4
|
description = "Webbee 🐝 — the Imperal Cloud coding agent in your terminal"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "GPL-3.0-or-later"
|
|
@@ -13,7 +13,7 @@ dependencies = [
|
|
|
13
13
|
# release on a Python 3.12 it sets up once with uv -- `uv` comes as a wheel on 3.8+,
|
|
14
14
|
# 3.7 fetches it with uv's own installer.
|
|
15
15
|
'uv>=0.4; python_version >= "3.8" and python_version < "3.10"',
|
|
16
|
-
'imperal-mcp>=0.9.
|
|
16
|
+
'imperal-mcp>=0.9.28; python_version >= "3.10"', # raised to the newest at each release
|
|
17
17
|
'imperal-sdk[universal-index]>=6.17.1; python_version >= "3.10"',
|
|
18
18
|
'asyncssh>=2.14; python_version >= "3.10"',
|
|
19
19
|
'httpx>=0.27; python_version >= "3.10"',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.7.42"
|
|
@@ -1737,7 +1737,8 @@ async def run_repl(cfg, mode: str = "default", *, once: bool = False, sink=None,
|
|
|
1737
1737
|
await _run_turn(slot, line, steer_iid=getattr(line, "iid", ""))
|
|
1738
1738
|
return "continue"
|
|
1739
1739
|
|
|
1740
|
-
async def _run_turn_on(slot: SessionSlot, line: str, surface: str = "", steer_iid: str = ""
|
|
1740
|
+
async def _run_turn_on(slot: SessionSlot, line: str, surface: str = "", steer_iid: str = "",
|
|
1741
|
+
on_accepted=None, origin: str = "") -> None:
|
|
1741
1742
|
"""ONE agent turn against an EXPLICIT slot (Task 7 split -- was:
|
|
1742
1743
|
always `slots.active()` internally, which broke a steer submit that
|
|
1743
1744
|
deliberately targets a DIFFERENT slot than whatever's on screen --
|
|
@@ -1768,6 +1769,10 @@ async def run_repl(cfg, mode: str = "default", *, once: bool = False, sink=None,
|
|
|
1768
1769
|
kw = {"surface": surface} if surface else {}
|
|
1769
1770
|
if steer_iid:
|
|
1770
1771
|
kw["steer_iid"] = steer_iid
|
|
1772
|
+
if on_accepted is not None:
|
|
1773
|
+
kw["on_accepted"] = on_accepted # inbox schema I v1: the poller acks once the kernel took the turn
|
|
1774
|
+
if origin:
|
|
1775
|
+
kw["origin"] = origin # G4: who put the item (the gateway checks it against its record)
|
|
1771
1776
|
try:
|
|
1772
1777
|
text = await slot.agent.run(line, _sink, marathon=not once,
|
|
1773
1778
|
goal=(line if not once else ""), **kw)
|
|
@@ -1990,7 +1995,7 @@ async def run_repl(cfg, mode: str = "default", *, once: bool = False, sink=None,
|
|
|
1990
1995
|
await _run_turn_on(slot, line, surface=surface, steer_iid=steer_iid)
|
|
1991
1996
|
|
|
1992
1997
|
async def _steer_submit_on(slot: SessionSlot, text: str, surface: str,
|
|
1993
|
-
steer_iid: str = "") -> None:
|
|
1998
|
+
steer_iid: str = "", on_accepted=None, origin: str = "") -> None:
|
|
1994
1999
|
"""webbee.steer hands a drained remote instruction here: render it as
|
|
1995
2000
|
the remote user's own line, then run it as a normal turn (carrying the
|
|
1996
2001
|
item's dedup iid so the kernel can drop an at-least-once twin). W4b
|
|
@@ -2000,7 +2005,7 @@ async def run_repl(cfg, mode: str = "default", *, once: bool = False, sink=None,
|
|
|
2000
2005
|
(was: `_steer_target(slots)`'s active-or-first-session guess, needed
|
|
2001
2006
|
only because one process-wide poller had to pick SOME slot)."""
|
|
2002
2007
|
_show_remote_line(slot.sink, surface, text, steer_iid)
|
|
2003
|
-
await _run_turn_on(slot, text, surface=surface, steer_iid=steer_iid)
|
|
2008
|
+
await _run_turn_on(slot, text, surface=surface, steer_iid=steer_iid, on_accepted=on_accepted, origin=origin)
|
|
2004
2009
|
|
|
2005
2010
|
async def _attach_turn_on(slot: SessionSlot, attach_info: dict) -> None:
|
|
2006
2011
|
"""poll_idle_steer's `attach_turn` seam (attach-on-poll, URGENT
|
|
@@ -2336,14 +2341,14 @@ async def run_repl(cfg, mode: str = "default", *, once: bool = False, sink=None,
|
|
|
2336
2341
|
cfg, token_provider, workspace=slot.workspace, marathon=not once,
|
|
2337
2342
|
is_busy=lambda: _gate_busy(slot.sink, slot.turn),
|
|
2338
2343
|
live_session_id=lambda: getattr(slot.agent, "session_id", "") or "",
|
|
2339
|
-
submit=lambda text, surface, steer_iid="": _steer_submit_on(
|
|
2340
|
-
slot, text, surface, steer_iid),
|
|
2344
|
+
submit=lambda text, surface, steer_iid="", on_accepted=None, origin="": _steer_submit_on(
|
|
2345
|
+
slot, text, surface, steer_iid, on_accepted, origin),
|
|
2341
2346
|
on_mode=lambda mode, surface: _on_mode(slot, mode, surface),
|
|
2342
2347
|
mode_getter=lambda: slot.mode,
|
|
2343
2348
|
label_getter=lambda: slot.label,
|
|
2344
2349
|
attach_turn=lambda attach_info: _attach_turn_on(slot, attach_info),
|
|
2345
2350
|
is_superseded=lambda: bool(getattr(slot.agent, "superseded", False)),
|
|
2346
|
-
client=shared_client, slot_id=slot.slot_id, initial_delay=offset))
|
|
2351
|
+
client=shared_client, slot_id=slot.slot_id, initial_delay=offset, ack=True))
|
|
2347
2352
|
slot.bg_tasks.append(task)
|
|
2348
2353
|
_spawn_slot_jobwatch(slot)
|
|
2349
2354
|
if use_dock:
|
|
@@ -583,7 +583,7 @@ class AgentSession:
|
|
|
583
583
|
return self._imperal_id
|
|
584
584
|
|
|
585
585
|
async def run(self, task: str, sink, *, marathon: bool = False, goal: str = "",
|
|
586
|
-
surface: str = "", steer_iid: str = "") -> str:
|
|
586
|
+
surface: str = "", steer_iid: str = "", on_accepted=None, origin: str = "") -> str:
|
|
587
587
|
import httpx
|
|
588
588
|
from uuid import uuid4
|
|
589
589
|
|
|
@@ -640,6 +640,11 @@ class AgentSession:
|
|
|
640
640
|
# body exactly like a pickup's own id. No longer additive-only for
|
|
641
641
|
# this key (surface/marathon/goal above still are).
|
|
642
642
|
body["steer_iid"] = steer_iid
|
|
643
|
+
if origin:
|
|
644
|
+
# G4: who put a picked-up item (person:<surface> | peer:<session> | assignment:<session> | kernel), as the
|
|
645
|
+
# queue item said; the gateway checks it against its own record and never takes it from the client.
|
|
646
|
+
# Additive-only: a typed turn's body has no origin key.
|
|
647
|
+
body["origin"] = origin
|
|
643
648
|
if self.slot_id:
|
|
644
649
|
# W4b T5: slot-suffixed session ids -- the gateway mints
|
|
645
650
|
# {prefix}-{imperal_id}-r{repo_key}-s{slot} when a slot rides the
|
|
@@ -656,6 +661,12 @@ class AgentSession:
|
|
|
656
661
|
resp = await _transient_retry(lambda: client.post(
|
|
657
662
|
"/v1/agent/sessions", json=body, headers=headers, **_post_kw))
|
|
658
663
|
resp.raise_for_status()
|
|
664
|
+
if on_accepted is not None:
|
|
665
|
+
# the kernel took the turn (2xx): an idle-steer pickup acks its queue item now (inbox schema I v1),
|
|
666
|
+
# in the background -- the stream never waits on it, and a failed ack only means a redelivery the
|
|
667
|
+
# poller dedups by iid
|
|
668
|
+
fut = asyncio.ensure_future(on_accepted())
|
|
669
|
+
fut.add_done_callback(lambda f: f.cancelled() or f.exception())
|
|
659
670
|
_sess = resp.json()
|
|
660
671
|
session_id = _sess["session_id"]
|
|
661
672
|
start_id = _sess.get("last_id", "0-0")
|
|
@@ -16,6 +16,7 @@ on the gateway (1h TTL), so silence never loses anything."""
|
|
|
16
16
|
from __future__ import annotations
|
|
17
17
|
|
|
18
18
|
import asyncio
|
|
19
|
+
import contextlib
|
|
19
20
|
from collections import deque
|
|
20
21
|
|
|
21
22
|
_POLL_INTERVAL = 4.0
|
|
@@ -107,6 +108,7 @@ async def poll_idle_steer(cfg, token_provider, *, workspace: str, is_busy,
|
|
|
107
108
|
initial_delay: float = 0.0,
|
|
108
109
|
attach_turn=None,
|
|
109
110
|
is_superseded=None,
|
|
111
|
+
ack: bool = False,
|
|
110
112
|
_monotonic=None,
|
|
111
113
|
_wall=None) -> None:
|
|
112
114
|
"""Run forever (until cancelled): every ~`interval`s of idle time, drain
|
|
@@ -205,12 +207,20 @@ async def poll_idle_steer(cfg, token_provider, *, workspace: str, is_busy,
|
|
|
205
207
|
backoff multiplier applies to whichever base is active. `_monotonic` is a
|
|
206
208
|
test seam (defaults to time.monotonic)."""
|
|
207
209
|
from webbee.http import WakeDetector, close_idle_connections
|
|
208
|
-
from webbee.thread import fetch_pending_steer
|
|
210
|
+
from webbee.thread import ack_pending_steer, fetch_pending_steer
|
|
211
|
+
import os
|
|
212
|
+
import socket
|
|
209
213
|
import time
|
|
214
|
+
# inbox schema I v1 (``ack``): this poller is one reader; an item it took is acked once it is handed to the turn,
|
|
215
|
+
# and a redelivered one (its ack was lost) is acked again, never run twice
|
|
216
|
+
reader = f"webbee:{socket.gethostname()}:{os.getpid()}:{slot_id or '0'}"[:80] if ack else ""
|
|
217
|
+
handed: deque = deque(maxlen=500)
|
|
218
|
+
ack_kw = {"client": client} if client is not None else {}
|
|
210
219
|
now = _monotonic or time.monotonic
|
|
211
220
|
wall_fn = _wall or time.time
|
|
212
221
|
woke = WakeDetector(wall=wall_fn, mono=now)
|
|
213
222
|
derived = ""
|
|
223
|
+
polled_sid = ""
|
|
214
224
|
backlog: deque = deque()
|
|
215
225
|
failures = 0 # consecutive fetch/auth failures -> backoff (a logged-out
|
|
216
226
|
# terminal must not hammer the token-refresh path every 4s)
|
|
@@ -248,7 +258,10 @@ async def poll_idle_steer(cfg, token_provider, *, workspace: str, is_busy,
|
|
|
248
258
|
label = label_getter() if label_getter is not None else ""
|
|
249
259
|
if label:
|
|
250
260
|
fetch_kw["label"] = label
|
|
261
|
+
if reader:
|
|
262
|
+
fetch_kw["reader"] = reader
|
|
251
263
|
payload = await fetch_pending_steer(cfg, token_provider, sid, **fetch_kw) or {}
|
|
264
|
+
polled_sid = sid
|
|
252
265
|
if payload.get("items"):
|
|
253
266
|
last_active = now() # a successful drain = activity
|
|
254
267
|
backlog.extend(payload.get("items") or [])
|
|
@@ -283,8 +296,28 @@ async def poll_idle_steer(cfg, token_provider, *, workspace: str, is_busy,
|
|
|
283
296
|
backlog.appendleft(item) # a local line won the race -- defer, don't drop
|
|
284
297
|
continue
|
|
285
298
|
last_active = now() # an item arrived = activity
|
|
286
|
-
|
|
287
|
-
|
|
299
|
+
iid = str(item.get("iid") or "")
|
|
300
|
+
# an item with no surface is never dressed as the person's Telegram words (G4: the origin is the channel's)
|
|
301
|
+
surface_ = str(item.get("surface") or "remote")
|
|
302
|
+
origin_kw = {"origin": str(item["origin"])} if item.get("origin") else {}
|
|
303
|
+
if not (reader and iid):
|
|
304
|
+
await _await_turn(submit(text, surface_, iid, **origin_kw))
|
|
305
|
+
continue
|
|
306
|
+
if iid in handed:
|
|
307
|
+
# a redelivered item whose turn this poller already started (its ack was lost): ack again, never run
|
|
308
|
+
# it twice
|
|
309
|
+
with contextlib.suppress(Exception):
|
|
310
|
+
await ack_pending_steer(cfg, token_provider, polled_sid, iid, reader, **ack_kw)
|
|
311
|
+
continue
|
|
312
|
+
|
|
313
|
+
async def _accepted(_iid=iid, _sid=polled_sid):
|
|
314
|
+
# inbox schema I v1: acked when the kernel ACCEPTED the turn (the start POST's 2xx, about a second),
|
|
315
|
+
# not after the turn -- a turn outlives the 60 s in-flight deadline. A turn that never got accepted
|
|
316
|
+
# leaves the item in flight: it is redelivered and runs then.
|
|
317
|
+
handed.append(_iid)
|
|
318
|
+
with contextlib.suppress(Exception):
|
|
319
|
+
await ack_pending_steer(cfg, token_provider, _sid, _iid, reader, **ack_kw)
|
|
320
|
+
await _await_turn(submit(text, surface_, iid, on_accepted=_accepted, **origin_kw))
|
|
288
321
|
except asyncio.CancelledError:
|
|
289
322
|
raise
|
|
290
323
|
except Exception:
|
|
@@ -66,7 +66,7 @@ async def fetch_recent_thread(cfg, token_provider, session_id: str, *, client=No
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
async def fetch_pending_steer(cfg, token_provider, session_id: str, *, client=None,
|
|
69
|
-
mode: str = "", label: str = "") -> dict:
|
|
69
|
+
mode: str = "", label: str = "", reader: str = "") -> dict:
|
|
70
70
|
"""Drain this user's pending-steer state (idle-steer pickup, liveness v2
|
|
71
71
|
§B + full-queue-layer mode adoption) -- the /thread endpoint's sibling,
|
|
72
72
|
same auth. Returns the gateway payload verbatim:
|
|
@@ -110,12 +110,28 @@ async def fetch_pending_steer(cfg, token_provider, session_id: str, *, client=No
|
|
|
110
110
|
if label:
|
|
111
111
|
from urllib.parse import quote
|
|
112
112
|
params.append(f"label={quote(label)}")
|
|
113
|
+
if reader:
|
|
114
|
+
# inbox schema I v1: the item stays in flight until acked (ack_pending_steer) instead of being popped; a
|
|
115
|
+
# gateway without ack ignores both params and hands the item over destructively, as before
|
|
116
|
+
from urllib.parse import quote
|
|
117
|
+
params.append(f"ack=1&reader={quote(reader)}")
|
|
113
118
|
if params:
|
|
114
119
|
path += "?" + "&".join(params)
|
|
115
120
|
r = await _request(cfg, client, "GET", path, token=token)
|
|
116
121
|
return r.json() or {}
|
|
117
122
|
|
|
118
123
|
|
|
124
|
+
async def ack_pending_steer(cfg, token_provider, session_id: str, iid: str, reader: str, *,
|
|
125
|
+
shown: str = "context", client=None) -> bool:
|
|
126
|
+
"""Inbox schema I v1: the item ``iid`` reached this reader -- the gateway removes it from flight for good (and,
|
|
127
|
+
for an agent message, records the delivery with the kernel). Idempotent on the gateway. Non-swallowing like its
|
|
128
|
+
siblings: the poller wraps it (an unacked item is redelivered and deduped by iid, nothing is lost)."""
|
|
129
|
+
token = await token_provider()
|
|
130
|
+
r = await _request(cfg, client, "POST", f"/v1/agent/sessions/{session_id}/pending-steer/ack", token=token,
|
|
131
|
+
json={"iid": iid, "reader": reader, "shown": shown})
|
|
132
|
+
return bool((r.json() or {}).get("ok"))
|
|
133
|
+
|
|
134
|
+
|
|
119
135
|
async def inject_to_session(cfg, token_provider, session_id: str, text: str,
|
|
120
136
|
steer_iid: str, *, client=None) -> bool:
|
|
121
137
|
"""Mid-turn inject (0.3.15): POST an Enter-while-busy line straight into
|
|
@@ -2051,3 +2051,20 @@ def test_agent_session_reuses_shared_keepalive_client_without_closing(monkeypatc
|
|
|
2051
2051
|
assert not real_client.is_closed
|
|
2052
2052
|
|
|
2053
2053
|
asyncio.run(_check_real_httpx())
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
def test_run_calls_on_accepted_once_the_kernel_took_the_turn(monkeypatch):
|
|
2057
|
+
"""Inbox schema I v1: an idle-steer pickup acks its queue item when the start POST answered 2xx -- the moment the
|
|
2058
|
+
kernel accepted the turn, not when the turn ends."""
|
|
2059
|
+
calls = []
|
|
2060
|
+
|
|
2061
|
+
async def on_accepted():
|
|
2062
|
+
calls.append("accepted")
|
|
2063
|
+
_run_turn_capture_body(monkeypatch, surface="telegram", steer_iid="iid-7", on_accepted=on_accepted)
|
|
2064
|
+
assert calls == ["accepted"]
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
def test_run_threads_the_items_origin_and_a_typed_turn_has_none(monkeypatch):
|
|
2068
|
+
body = _run_turn_capture_body(monkeypatch, surface="telegram", steer_iid="iid-8", origin="peer:mcp-u-x")
|
|
2069
|
+
assert body["origin"] == "peer:mcp-u-x"
|
|
2070
|
+
assert "origin" not in _run_turn_capture_body(monkeypatch)
|
|
@@ -910,3 +910,108 @@ def test_poll_wake_closes_idle_connections_and_resets_backoff(monkeypatch):
|
|
|
910
910
|
# tick 1: 4.0 (fail -> failures=1), tick 2: 8.0 (fail -> failures=2),
|
|
911
911
|
# tick 3: 16.0 (woke.check() -> failures=0, fetch ok), tick 4: 4.0 (backoff was reset)
|
|
912
912
|
assert sleeps[:4] == [4.0, 8.0, 16.0, 4.0]
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
# ── inbox schema I v1: ack, redelivery ────────────────────────────────────────
|
|
916
|
+
|
|
917
|
+
def test_poll_with_ack_acks_when_the_kernel_accepts_the_turn_and_never_runs_a_redelivery_twice(monkeypatch):
|
|
918
|
+
"""Inbox schema I v1: the item stays in flight until acked; it is acked when the kernel accepted the turn (the
|
|
919
|
+
start POST's 2xx), and a redelivered one (lost ack) is acked again but not run again."""
|
|
920
|
+
import webbee.thread as TH
|
|
921
|
+
queue = [{"items": [{"text": "push the fix", "surface": "telegram", "iid": "q.1"}]},
|
|
922
|
+
{"items": [{"text": "push the fix", "surface": "telegram", "iid": "q.1", "redelivered": True,
|
|
923
|
+
"tries": 2}]},
|
|
924
|
+
{"items": [{"text": "second", "surface": "panel", "iid": "q.2"}]}]
|
|
925
|
+
seen_kw, acked, submitted = [], [], []
|
|
926
|
+
|
|
927
|
+
async def fake_fetch(cfg, tp, session_id, **kw):
|
|
928
|
+
seen_kw.append(kw)
|
|
929
|
+
return queue.pop(0) if queue else {"items": []}
|
|
930
|
+
|
|
931
|
+
async def fake_ack(cfg, tp, session_id, iid, reader, **kw):
|
|
932
|
+
acked.append((session_id, iid, reader.split(":")[0]))
|
|
933
|
+
return True
|
|
934
|
+
monkeypatch.setattr(TH, "fetch_pending_steer", fake_fetch)
|
|
935
|
+
monkeypatch.setattr(TH, "ack_pending_steer", fake_ack)
|
|
936
|
+
|
|
937
|
+
async def submit(text, surface, steer_iid="", on_accepted=None):
|
|
938
|
+
submitted.append((text, steer_iid))
|
|
939
|
+
assert not any(a[1] == steer_iid for a in acked) # nothing acked before the kernel took the turn
|
|
940
|
+
await on_accepted()
|
|
941
|
+
|
|
942
|
+
_drive(SP.poll_idle_steer(_Cfg(), _tp, workspace=".", is_busy=lambda: False, submit=submit,
|
|
943
|
+
live_session_id=lambda: "marathon-u-r1", interval=0.01, ack=True),
|
|
944
|
+
until=lambda: len(submitted) >= 2)
|
|
945
|
+
assert submitted == [("push the fix", "q.1"), ("second", "q.2")]
|
|
946
|
+
assert acked == [("marathon-u-r1", "q.1", "webbee"), ("marathon-u-r1", "q.1", "webbee"),
|
|
947
|
+
("marathon-u-r1", "q.2", "webbee")]
|
|
948
|
+
assert seen_kw[0]["reader"].startswith("webbee:")
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
def test_a_turn_the_kernel_never_accepted_leaves_the_item_to_run_on_redelivery(monkeypatch):
|
|
952
|
+
import webbee.thread as TH
|
|
953
|
+
queue = [{"items": [{"text": "go", "surface": "telegram", "iid": "q.5"}]},
|
|
954
|
+
{"items": [{"text": "go", "surface": "telegram", "iid": "q.5", "redelivered": True, "tries": 2}]}]
|
|
955
|
+
acked, submitted = [], []
|
|
956
|
+
|
|
957
|
+
async def fake_fetch(cfg, tp, session_id, **kw):
|
|
958
|
+
return queue.pop(0) if queue else {"items": []}
|
|
959
|
+
|
|
960
|
+
async def fake_ack(cfg, tp, session_id, iid, reader, **kw):
|
|
961
|
+
acked.append(iid)
|
|
962
|
+
monkeypatch.setattr(TH, "fetch_pending_steer", fake_fetch)
|
|
963
|
+
monkeypatch.setattr(TH, "ack_pending_steer", fake_ack)
|
|
964
|
+
|
|
965
|
+
async def submit(text, surface, steer_iid="", on_accepted=None):
|
|
966
|
+
submitted.append(steer_iid)
|
|
967
|
+
if len(submitted) == 1:
|
|
968
|
+
raise RuntimeError("start POST failed: 502") # never accepted, never acked
|
|
969
|
+
await on_accepted()
|
|
970
|
+
_drive(SP.poll_idle_steer(_Cfg(), _tp, workspace=".", is_busy=lambda: False, submit=submit,
|
|
971
|
+
live_session_id=lambda: "marathon-u-r1", interval=0.01, ack=True),
|
|
972
|
+
until=lambda: len(submitted) >= 2)
|
|
973
|
+
assert submitted == ["q.5", "q.5"] and acked == ["q.5"]
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
def test_poll_without_ack_sends_no_reader_and_acks_nothing(monkeypatch):
|
|
977
|
+
import webbee.thread as TH
|
|
978
|
+
seen_kw, submitted = [], []
|
|
979
|
+
|
|
980
|
+
async def fake_fetch(cfg, tp, session_id, **kw):
|
|
981
|
+
seen_kw.append(kw)
|
|
982
|
+
return {"items": [{"text": "x", "surface": "telegram", "iid": "q.9"}]}
|
|
983
|
+
|
|
984
|
+
async def fake_ack(*a, **kw):
|
|
985
|
+
raise AssertionError("acked without ack=True")
|
|
986
|
+
monkeypatch.setattr(TH, "fetch_pending_steer", fake_fetch)
|
|
987
|
+
monkeypatch.setattr(TH, "ack_pending_steer", fake_ack)
|
|
988
|
+
|
|
989
|
+
async def submit(text, surface, steer_iid=""):
|
|
990
|
+
submitted.append(steer_iid)
|
|
991
|
+
_drive(SP.poll_idle_steer(_Cfg(), _tp, workspace=".", is_busy=lambda: False, submit=submit,
|
|
992
|
+
live_session_id=lambda: "marathon-u-r1", interval=0.01),
|
|
993
|
+
until=lambda: submitted)
|
|
994
|
+
assert submitted[0] == "q.9" and "reader" not in seen_kw[0]
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
def test_an_item_carries_its_channel_origin_and_no_surface_never_reads_as_telegram(monkeypatch):
|
|
998
|
+
"""G4: the origin is the channel's (person / peer / assignment / kernel), carried into the turn POST; an item with
|
|
999
|
+
no surface is "remote", never dressed as the person's Telegram words."""
|
|
1000
|
+
import webbee.thread as TH
|
|
1001
|
+
queue = [{"items": [{"text": "check this", "iid": "q.11", "origin": "peer:mcp-u-abc"}]}]
|
|
1002
|
+
submitted = []
|
|
1003
|
+
|
|
1004
|
+
async def fake_fetch(cfg, tp, session_id, **kw):
|
|
1005
|
+
return queue.pop(0) if queue else {"items": []}
|
|
1006
|
+
|
|
1007
|
+
async def fake_ack(*a, **kw):
|
|
1008
|
+
return True
|
|
1009
|
+
monkeypatch.setattr(TH, "fetch_pending_steer", fake_fetch)
|
|
1010
|
+
monkeypatch.setattr(TH, "ack_pending_steer", fake_ack)
|
|
1011
|
+
|
|
1012
|
+
async def submit(text, surface, steer_iid="", on_accepted=None, origin=""):
|
|
1013
|
+
submitted.append((surface, steer_iid, origin))
|
|
1014
|
+
_drive(SP.poll_idle_steer(_Cfg(), _tp, workspace=".", is_busy=lambda: False, submit=submit,
|
|
1015
|
+
live_session_id=lambda: "marathon-u-r1", interval=0.01, ack=True),
|
|
1016
|
+
until=lambda: submitted)
|
|
1017
|
+
assert submitted[0] == ("remote", "q.11", "peer:mcp-u-abc")
|
|
@@ -326,21 +326,21 @@ wheels = [
|
|
|
326
326
|
|
|
327
327
|
[[package]]
|
|
328
328
|
name = "imperal-mcp"
|
|
329
|
-
version = "0.9.
|
|
329
|
+
version = "0.9.28"
|
|
330
330
|
source = { registry = "https://pypi.org/simple" }
|
|
331
331
|
dependencies = [
|
|
332
332
|
{ name = "httpx" },
|
|
333
333
|
{ name = "imperal-sdk" },
|
|
334
334
|
{ name = "mcp" },
|
|
335
335
|
]
|
|
336
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
336
|
+
sdist = { url = "https://files.pythonhosted.org/packages/9c/7b/2367e96adf1262827baf4f64f7052213df0c68daefc808105f023a3f401f/imperal_mcp-0.9.28.tar.gz", hash = "sha256:5f9901a18b412df0a1ccf2356121aa23f017f7e45157ef4f0f6d9aad82323669", size = 263677, upload-time = "2026-12-05T10:33:25.272Z" }
|
|
337
337
|
wheels = [
|
|
338
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
338
|
+
{ url = "https://files.pythonhosted.org/packages/aa/09/2fc253d939754e5b07d7445ecf8b8b63633c2a6f6fcb719525df89056d4e/imperal_mcp-0.9.28-py3-none-any.whl", hash = "sha256:f9dc50dd0ce400c5af98932df4c60681b69327fe7c56d4e684aba20371720b7e", size = 148142, upload-time = "2026-12-05T10:33:24.044Z" },
|
|
339
339
|
]
|
|
340
340
|
|
|
341
341
|
[[package]]
|
|
342
342
|
name = "imperal-sdk"
|
|
343
|
-
version = "6.
|
|
343
|
+
version = "6.18.1"
|
|
344
344
|
source = { registry = "https://pypi.org/simple" }
|
|
345
345
|
dependencies = [
|
|
346
346
|
{ name = "click" },
|
|
@@ -348,9 +348,9 @@ dependencies = [
|
|
|
348
348
|
{ name = "pydantic" },
|
|
349
349
|
{ name = "pyjwt", extra = ["crypto"] },
|
|
350
350
|
]
|
|
351
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
351
|
+
sdist = { url = "https://files.pythonhosted.org/packages/63/66/cfd3feb4a8395610fbf5a3a95ee666ee8fcc3583c864db6047193ef63867/imperal_sdk-6.18.1.tar.gz", hash = "sha256:70bc3097679b463ab246648e49d56bc7eccf677cfe0a763dd1c85b61b1cd5a7c", size = 1055426, upload-time = "2026-12-05T02:10:06.804Z" }
|
|
352
352
|
wheels = [
|
|
353
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
353
|
+
{ url = "https://files.pythonhosted.org/packages/a8/22/cedac990e5477c53beb033802de0d5a38b0cffadba28a883d45888db8317/imperal_sdk-6.18.1-py3-none-any.whl", hash = "sha256:44e305dc31e3ea83dc36b8b2d9dc370a3cdcdccbab473813e166cb2947e7459a", size = 529337, upload-time = "2026-12-05T02:10:04.862Z" },
|
|
354
354
|
]
|
|
355
355
|
|
|
356
356
|
[package.optional-dependencies]
|
|
@@ -1700,7 +1700,7 @@ wheels = [
|
|
|
1700
1700
|
|
|
1701
1701
|
[[package]]
|
|
1702
1702
|
name = "webbee"
|
|
1703
|
-
version = "0.7.
|
|
1703
|
+
version = "0.7.42"
|
|
1704
1704
|
source = { editable = "." }
|
|
1705
1705
|
dependencies = [
|
|
1706
1706
|
{ name = "asyncssh", marker = "python_full_version >= '3.10'" },
|
|
@@ -1726,7 +1726,7 @@ requires-dist = [
|
|
|
1726
1726
|
{ name = "asyncssh", marker = "python_full_version >= '3.10'", specifier = ">=2.14" },
|
|
1727
1727
|
{ name = "httpx", marker = "python_full_version >= '3.10'", specifier = ">=0.27" },
|
|
1728
1728
|
{ name = "httpx-sse", marker = "python_full_version >= '3.10'", specifier = ">=0.4" },
|
|
1729
|
-
{ name = "imperal-mcp", marker = "python_full_version >= '3.10'", specifier = ">=0.9.
|
|
1729
|
+
{ name = "imperal-mcp", marker = "python_full_version >= '3.10'", specifier = ">=0.9.28" },
|
|
1730
1730
|
{ name = "imperal-sdk", extras = ["universal-index"], marker = "python_full_version >= '3.10'", specifier = ">=6.17.1" },
|
|
1731
1731
|
{ name = "pillow", marker = "python_full_version >= '3.10'", specifier = ">=10" },
|
|
1732
1732
|
{ name = "prompt-toolkit", marker = "python_full_version >= '3.10'", specifier = ">=3" },
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.7.41"
|
|
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
|