webbee 0.7.35__tar.gz → 0.7.36__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.35 → webbee-0.7.36}/CHANGELOG.md +18 -0
- {webbee-0.7.35 → webbee-0.7.36}/PKG-INFO +1 -1
- {webbee-0.7.35 → webbee-0.7.36}/pyproject.toml +1 -1
- webbee-0.7.36/src/webbee/__init__.py +1 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/account.py +11 -0
- webbee-0.7.36/src/webbee/blocks.py +827 -0
- webbee-0.7.36/src/webbee/browser.py +847 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/events.py +1 -0
- webbee-0.7.36/src/webbee/expand.py +390 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/frames.py +48 -7
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/http.py +7 -1
- webbee-0.7.36/src/webbee/i18n.py +367 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/jobwatch.py +28 -5
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/output_pane.py +101 -9
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/prefs.py +46 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/render.py +834 -324
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/repl.py +168 -17
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/session.py +150 -11
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/tools.py +44 -13
- webbee-0.7.36/src/webbee/ui_tokens.py +490 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/conftest.py +14 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_account.py +36 -0
- webbee-0.7.36/tests/test_answer_delta.py +283 -0
- webbee-0.7.36/tests/test_blocks.py +496 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_events.py +17 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_expand.py +14 -14
- webbee-0.7.36/tests/test_grid_golden.py +1251 -0
- webbee-0.7.36/tests/test_i18n.py +95 -0
- webbee-0.7.36/tests/test_inspect_page.py +323 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_render.py +71 -43
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_result_fits_the_door.py +38 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tools_vision_websearch.py +18 -1
- webbee-0.7.36/tests/test_ui_tokens.py +203 -0
- {webbee-0.7.35 → webbee-0.7.36}/uv.lock +1 -1
- webbee-0.7.35/src/webbee/__init__.py +0 -1
- webbee-0.7.35/src/webbee/browser.py +0 -261
- webbee-0.7.35/src/webbee/expand.py +0 -240
- webbee-0.7.35/tests/test_inspect_page.py +0 -147
- {webbee-0.7.35 → webbee-0.7.36}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/.github/pull_request_template.md +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/.github/workflows/os-check.yml +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/.github/workflows/publish.yml +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/.gitignore +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/LICENSE +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/PRIVACY.md +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/README.md +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/SECURITY.md +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/assets/architecture.png +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/assets/demo.gif +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/assets/hero.png +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/assets/social-preview.png +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/__init__.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/__init__.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/drivers.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/fixture.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/fixture_long.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/fixture_wait.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/provision_user.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/registry.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/replay.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/run.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/scenarios_account.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/scenarios_code.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/scenarios_contract.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/scenarios_long.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/scenarios_wait.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/test_drivers.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/test_fixture.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/test_fixture_long.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/test_fixture_wait.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/test_registry.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/test_replay.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/field_gate/wipe.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/ci/os_check.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/dev-webbee +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/install.sh +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/__main__.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/_launch.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/active_sessions.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/autoupdate.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/banner_art.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/boot.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/checkpoints.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/cli.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/clipboard.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/clipboard_read.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/clipboard_session.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/coding_context.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/commands.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/config.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/consent.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/details.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/home.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/home_view.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/instance_lock.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/intel/__init__.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/intel/graph.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/intel/outline.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/intel/query.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/intel/service.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/intel/store.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/intel/tree.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/intel/watch.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/jobs.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/jobs_panel.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/loop_errors.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/media.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/modals.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/mode_store.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/native_files.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/native_read.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/newtab_mode.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/pricing_constants.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/queue_panel.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/reflow.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/remote.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/repo.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/selection.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/sessions.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/sizing.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/slots.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/stallwatch.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/steer.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/stream.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/tab_store.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/tabs.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/thread.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/tier_store.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/todo_panel.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/tokens.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/tui.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/update.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/urlopen.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/wallet.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/src/webbee/worktrees.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/__init__.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_active_sessions.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_append_file.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_audit_2026_07_25_findings.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_autoupdate.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_checkpoints.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_checkpoints_nested_1030.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_cli.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_clipboard.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_clipboard_read.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_code_map_fresh.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_coding_context.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_commands.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_config.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_cpc_contract_stable.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_cpc_outline.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_cross_loop_token.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_details.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_field_test_1113.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_freeze_fix.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_home.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_home_view.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_home_view_mouse.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_instance_lock.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_any_folder.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_cache_and_sync_worker.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_checksum_tree.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_chunker.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_embed.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_folder_1106.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_graph.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_no_numpy.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_query.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_service.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_store.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_intel_watch.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_jobs_1127.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_launch.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_loop_errors.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_marathon.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_modals_e2e.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_mode_and_remote_0_6_8.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_mode_store.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_native_files.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_newtab_mode.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_packaging.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_probe_cost.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_queue_manage_0337.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_read_never_waits_for_the_repo.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_reflow.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_remote_code_reads.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_repl.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_repo.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_resilient_http.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_review_fixes_1030.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_session.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_session_review_1030.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_sessions.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_sizing.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_slots.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_ssh_guard.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_stallwatch.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_steer.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_stream.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tab_bar_stability.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tab_restore_0337.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tabs.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_terminal_ux_0336.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_thread.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tier_invalidation.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tier_store.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_todo_panel.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tokens.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tool_ack.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tools.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tools_eol_cancel_1030.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tray_1126.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tui.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_tui_hardening.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_update.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_update_badge_0340.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_urlopen.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_version.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_version_badge_corner.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_voice_outcome.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_wallet.py +0 -0
- {webbee-0.7.35 → webbee-0.7.36}/tests/test_worktrees.py +0 -0
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.36
|
|
4
|
+
|
|
5
|
+
* Unified terminal grid (`terminal-grid-v2`): every transcript message now renders on one borderless 7-block grid
|
|
6
|
+
(`speech`, `question`, `error`, `step`, `external`, `job`, `kernel`) with zero vertical `│` box borders so drag-copy
|
|
7
|
+
always copies clean text.
|
|
8
|
+
* Dual-contrast palette and color fallbacks: readable on both dark and light terminals (`brand` for Webbee speech,
|
|
9
|
+
`warning` reserved exclusively for items waiting on you), with automatic 16-color ANSI and `NO_COLOR` fallbacks and
|
|
10
|
+
strictly 1-cell-wide header glyphs that align cleanly at 60/80/120 columns.
|
|
11
|
+
* Single-language UI (`i18n`, `en` / `ru`): all chrome labels resolve consistently from `WEBBEE_LANG` -> saved
|
|
12
|
+
preference -> account locale -> OS locale -> `en`, without mixing languages on one screen.
|
|
13
|
+
* Live answer streaming (`answer_delta`): interim answer deltas stream into a transient tail in the output pane and
|
|
14
|
+
replace cleanly with the final block without duplication.
|
|
15
|
+
* Step details & cost/time hygiene: per-step duration and credit cost move into the expandable `▸ details` view and
|
|
16
|
+
summarize in the turn footer; diffs, interactive consent/yes-no/payment cards, agent messages, background job cards,
|
|
17
|
+
and kernel `/facts` blocks (`final.kernel_notes`, `client_version`, `client_capabilities`) all share the same grid.
|
|
18
|
+
* Browser & image vision upgrades: `view_image` fits images cleanly under the gateway/kernel size cap without broken
|
|
19
|
+
placeholders, and `inspect_page` adds section maps plus focused `region`/`selector` and multi-width full-page capture.
|
|
20
|
+
|
|
3
21
|
## 0.7.35
|
|
4
22
|
|
|
5
23
|
* `/facts on|off`. The kernel's notes under an answer (what it checked and what it saw) are off by default and
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.7.36"
|
|
@@ -13,6 +13,7 @@ class Account:
|
|
|
13
13
|
plan_renews: str = ""
|
|
14
14
|
dev_tier: str = ""
|
|
15
15
|
member_since: str = ""
|
|
16
|
+
lang: str = ""
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
def _fmt_month(iso: str) -> str:
|
|
@@ -81,6 +82,15 @@ async def fetch_account(cfg, token_provider, *, get=None) -> Account:
|
|
|
81
82
|
attrs = me.get("attributes") or {}
|
|
82
83
|
sub = sub or {}
|
|
83
84
|
dev = dev or {}
|
|
85
|
+
raw_lang = (
|
|
86
|
+
me.get("locale")
|
|
87
|
+
or me.get("lang")
|
|
88
|
+
or me.get("language")
|
|
89
|
+
or attrs.get("locale")
|
|
90
|
+
or attrs.get("lang")
|
|
91
|
+
or attrs.get("language")
|
|
92
|
+
or ""
|
|
93
|
+
)
|
|
84
94
|
return Account(
|
|
85
95
|
signed_in=True,
|
|
86
96
|
email=str(me.get("email", "") or ""),
|
|
@@ -90,4 +100,5 @@ async def fetch_account(cfg, token_provider, *, get=None) -> Account:
|
|
|
90
100
|
plan_renews=_fmt_day(str(sub.get("expires_at", "") or "")),
|
|
91
101
|
dev_tier=str(dev.get("tier", "") or attrs.get("developer_tier", "") or ""),
|
|
92
102
|
member_since=_fmt_month(str(me.get("created_at", "") or dev.get("registered_at", "") or "")),
|
|
103
|
+
lang=str(raw_lang or ""),
|
|
93
104
|
)
|