dulus 3.15.2__tar.gz → 3.15.3__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.
- {dulus-3.15.2/dulus.egg-info → dulus-3.15.3}/PKG-INFO +2 -2
- {dulus-3.15.2 → dulus-3.15.3}/README.md +1 -1
- {dulus-3.15.2 → dulus-3.15.3}/docs/news.md +2 -0
- {dulus-3.15.2 → dulus-3.15.3/dulus.egg-info}/PKG-INFO +2 -2
- {dulus-3.15.2 → dulus-3.15.3}/dulus.egg-info/top_level.txt +0 -1
- {dulus-3.15.2 → dulus-3.15.3}/dulus.py +12 -5
- {dulus-3.15.2 → dulus-3.15.3}/dulus_account.py +115 -50
- {dulus-3.15.2 → dulus-3.15.3}/pyproject.toml +1 -1
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_login_gate.py +211 -13
- {dulus-3.15.2 → dulus-3.15.3}/LICENSE +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/MANIFEST.in +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/agent.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/algolia_search.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/analytics.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/agents_bridge.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/compressor.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/context.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/githook.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/marketplace.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/mempalace_bridge.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/paths.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/personas.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/plugins.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/server.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/session_utils.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/tasks.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/theme_pack.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/backend/themes.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/banners/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/banners/banner_rotator.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/banners/banners_dulus_ai.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/batch_api.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/checkpoint/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/checkpoint/hooks.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/checkpoint/store.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/checkpoint/types.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/__main__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/ansi.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/assets/ascii/dulus_logo.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/assets/ascii/eagle.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/assets/ascii/terminal_art.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/banners.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/demo.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/effects.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/effort_slider.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/progress.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/py.typed +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/spinners.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cli_animations/status.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/clipboard_utils.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/cloudsave.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/common.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/compaction.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/config.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/context.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/data/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/data/plugins/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/data/plugins/composio/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/data/plugins/composio/composio_plugin/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/data/plugins/composio/composio_plugin/session_manager.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/data/plugins/composio/composio_plugin/tool_generator.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/data/plugins/composio/plugin.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/data/plugins/composio/plugin_tool.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/display_blocks.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/API.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/BRAND_GUIDE.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/CHANGELOG.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/CONTRIBUTING.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/DEPLOYMENT.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/FAQ.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/GETTING_STARTED.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/SECURITY.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/architecture.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/dashboard/index.html +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/divider.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/dulus-bird.png +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/generate.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/nvidia-models.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/particle-playground.html +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/personas/index.html +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/preview.html +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/python-console.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/readme/dulus-os.png +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/readme/hero.png +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/readme/pyc_heap.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/readme/pyc_receipts.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/readme/pyc_trap.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/readme/task-board.png +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/readme/webchat.png +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-agents.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-brainstorm.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-bridges.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-features.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-freetier.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-memory.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-models.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-perms.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-plugins.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-quickstart.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/sec-ssj.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/spinners.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/split-pane.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/terminal-boot.svg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/docs/termux-edge.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus.egg-info/SOURCES.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus.egg-info/dependency_links.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus.egg-info/entry_points.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus.egg-info/requires.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_bar_client.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_mcp/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_mcp/client.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_mcp/commands.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_mcp/config.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_mcp/hub.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_mcp/tools.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_mcp/types.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_quick_menu.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/add_dir_manager.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/afk_mode.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/approval_runtime.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/background_tasks.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/clipboard_utils.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/diff_visualizer.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/export_import.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/hook_engine.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/isolate.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/notification_manager.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/session_fork.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/shell_mode.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/todo_visualizer.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/tree_ls.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/wire_events.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/dulus_tools/yolo_mode.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/file_filter.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/fs_compass.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/governance.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/input.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/license_manager.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/audit.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/consolidator.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/context.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/mempalace_bridge.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/offload.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/palace.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/scan.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/askuserquestion_after_numbered_list.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/background_jobs_no_extra_timers.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/cleverness_over_resources.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/corporate_tls_breaks_curl_cffi.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/hardened_rules.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/investigator_workflow_heuristic.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/native_code_over_sketchy_plugins.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/no_personal_info_in_code.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/searches_include_modified_date.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/tmux_send_keys_power_patterns.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/token_optimization_technique.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/tool_chaining_capability.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/insights/webbridge_evaluate_first_pattern.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/seeds/short_memory.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/sessions.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/store.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/tools.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/types.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/memory/vector_search.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/model_params.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/multi_agent/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/multi_agent/subagent.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/multi_agent/tools.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/paste_placeholders.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/personality_config.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/plugin/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/plugin/loader.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/plugin/recommend.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/plugin/store.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/plugin/types.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/profiles.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/providers.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/pyconsole.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/setup.cfg +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/builtin.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/LICENSE-obsidian-skills +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/README.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/defuddle/SKILL.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/json-canvas/SKILL.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/json-canvas/references/EXAMPLES.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/obsidian-bases/SKILL.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/obsidian-bases/references/FUNCTIONS_REFERENCE.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/obsidian-cli/SKILL.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/obsidian-markdown/SKILL.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/obsidian-markdown/references/CALLOUTS.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/obsidian-markdown/references/EMBEDS.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/obsidian-markdown/references/PROPERTIES.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/README.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/SKILL.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/addresses.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/advancedbackgroundchecks.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/beenverified.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/clustal.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/clustrmaps.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/cyberbackgroundchecks.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/familytreenow.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/fastpeoplesearch.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/intelius.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/mylife.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/nuwber.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/peekyou.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/peoplefinders.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/radaris.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/rehold.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/searchpeoplefree.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/socialcatfish.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/spokeo.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/thatsthem.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/truepeoplesearch.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/usphonebook.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/brokers/whitepages.json +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/legal/ccpa.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/legal/drop.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/legal/gdpr.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/methods.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/site-playbooks.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/references/state-machine.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/autopilot.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/badbool.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/brokers.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/cdp.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/config.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/crypto.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/dossier.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/email_modes.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/emailer.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/ledger.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/legal.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/paths.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/pdd.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/registry.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/report.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/scan.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/storage.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/tiers.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/scripts/vectors.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/templates/consent/authorization.md +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/templates/emails/ccpa-authorized-agent.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/templates/emails/ccpa-deletion.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/templates/emails/ccpa-indirect-deletion.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/templates/emails/gdpr-erasure.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/bundled/unbroker/templates/emails/generic-optout.txt +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/clawhub.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/executor.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/loader.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skill/tools.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/skills.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/soul.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/spinner.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/steer_input.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/subagent.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/task/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/task/store.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/task/tools.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/task/types.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_afk_yolo.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_agent_tool_inputs.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_approval_runtime.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_background_task_tools.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_background_tasks.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_chatgpt_oauth.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_checkpoint.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_cli_animations_integration.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_clipboard_utils.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_compaction.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_compaction_failures.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_composio_tool_generator.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_diff_view.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_diff_visualization.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_display_blocks.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_dulus_account.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_empty_assistant_turn.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_export_import.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_grok_usage.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_headless_login.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_hook_engine.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_injection_fix.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_interruptible_stream.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_json_protocol.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_license.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_mcp.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_mcp_algolia.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_memory.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_memory_home_resolution.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_notification_manager.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_persistence_safety.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_plugin.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_profile_isolation.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_profile_plugin_scope.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_provider_errors.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_provider_stability.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_public_surface.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_repl_resilience.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_session_fork.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_shell_detection.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_shell_mode.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_skills.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_skillssh_algolia.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_steer_input.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_subagent.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_task.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_telegram_buffer.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_think_tool.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_todo_tool.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_todo_visualization.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_tool_registry.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_tool_safety.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_tree_ls.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_voice.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_webbridge_tabs.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tests/test_wire_events.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tmux_tools.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/token_budget.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tool_registry.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tools.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tools_background.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tools_think.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/tools_todo.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/ui/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/ui/input.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/ui/render.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/updater.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/voice/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/voice/audio_utils.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/voice/keyterms.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/voice/recorder.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/voice/stt.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/voice/tts.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/voice/wake_word.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/webbridge/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/webbridge/core.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/webbridge/tools.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/webchat.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/webchat_server.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/webchat_ui/__init__.py +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/webchat_ui/app.js +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/webchat_ui/index.html +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/webchat_ui/style.css +0 -0
- {dulus-3.15.2 → dulus-3.15.3}/welcome.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: dulus
|
|
3
|
-
Version: 3.15.
|
|
3
|
+
Version: 3.15.3
|
|
4
4
|
Summary: Provider-independent agent runtime for the terminal — cloud and local models, real tools, MCP, plugins, memory, sub-agents, and Dulus OS.
|
|
5
5
|
Author-email: KevRojo <dev@dulus.ai>
|
|
6
6
|
Maintainer-email: KevRojo <dev@dulus.ai>
|
|
@@ -476,7 +476,7 @@ Those numbers are not a vanity dashboard. They explain the product: Dulus is bui
|
|
|
476
476
|
|
|
477
477
|
## Install in 30 seconds
|
|
478
478
|
|
|
479
|
-
> **Dulus runs on a free Dulus account.** The first `dulus` opens your browser to sign in — over SSH or on a box with no desktop it shows a link, a code and a QR to approve from your phone or laptop instead; after that the session is remembered. CI, scripts and servers: set `DULUS_API_KEY` to a `dulus_sk_*` key from `/login dulus key`. `--version` and `--help` never ask.
|
|
479
|
+
> **Dulus runs on a free Dulus account.** The first `dulus` opens your browser to sign in — over SSH or on a box with no desktop it shows a link, a code and a QR to approve from your phone or laptop instead; after that the session is remembered. CI, scripts and servers: set `DULUS_API_KEY` to a `dulus_sk_*` key from `/login dulus key`. `--version` and `--help` never ask. **Behind a firewall** (mainland China, a locked-down office)? Sign-in follows `HTTPS_PROXY`, and a key minted on any machine that can sign in works on this one.
|
|
480
480
|
|
|
481
481
|
If Python 3.11 or newer is already installed:
|
|
482
482
|
|
|
@@ -371,7 +371,7 @@ Those numbers are not a vanity dashboard. They explain the product: Dulus is bui
|
|
|
371
371
|
|
|
372
372
|
## Install in 30 seconds
|
|
373
373
|
|
|
374
|
-
> **Dulus runs on a free Dulus account.** The first `dulus` opens your browser to sign in — over SSH or on a box with no desktop it shows a link, a code and a QR to approve from your phone or laptop instead; after that the session is remembered. CI, scripts and servers: set `DULUS_API_KEY` to a `dulus_sk_*` key from `/login dulus key`. `--version` and `--help` never ask.
|
|
374
|
+
> **Dulus runs on a free Dulus account.** The first `dulus` opens your browser to sign in — over SSH or on a box with no desktop it shows a link, a code and a QR to approve from your phone or laptop instead; after that the session is remembered. CI, scripts and servers: set `DULUS_API_KEY` to a `dulus_sk_*` key from `/login dulus key`. `--version` and `--help` never ask. **Behind a firewall** (mainland China, a locked-down office)? Sign-in follows `HTTPS_PROXY`, and a key minted on any machine that can sign in works on this one.
|
|
375
375
|
|
|
376
376
|
If Python 3.11 or newer is already installed:
|
|
377
377
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## 🔥🔥🔥 News (Pacific Time)
|
|
4
4
|
|
|
5
|
+
- November 11, 2026 (**🔐 v3.15.3 — sign-in that survives a filtered network**): **A network that blocks Dulus no longer blocks you.** Where Auth0 is only intermittently reachable — mainland China and parts of Asia — the first launch used to exit with a raw JSON error: no way in, not even with your own DeepSeek or Qwen key. Now every sign-in step retries dropped connections, timeouts and 429/5xx, and a reply that isn't JSON (a Wi-Fi login page, a filtering proxy) counts as no answer instead of crashing the flow. When the servers simply can't be reached the launch gate stops announcing it and just starts Dulus — silently — while `/login dulus` and the welcome wizard still spell out the two ways through: `HTTPS_PROXY`, or a `dulus_sk_*` key minted on any machine that can sign in. A real "no" (denied, expired, turned down) still stops you, and a crash in the check still fails open. `pip install -U dulus`. 🦅🇩🇴
|
|
6
|
+
|
|
5
7
|
- November 10, 2026 (**🔐 v3.15.2 — sign-in now works on headless servers**): **No browser, no problem.** The mandatory sign-in used to assume a browser — over SSH, on a server or in Git Bash the link could arrive after you were already waiting, and `--headless` could freeze opening a text browser. Now the link and code go straight to the terminal you are watching (with a QR when it fits), `--headless` never opens a browser, `$BROWSER` is honoured so VS Code remote terminals open the link on your local machine, and the wait rides out network hiccups for the code's full 15 minutes. `pip install -U dulus`. 🦅🇩🇴
|
|
6
8
|
|
|
7
9
|
- November 9, 2026 (**🔐 v3.15.1 — the sign-in gate can't lock you out of your own terminal**): **A launch that can't check your sign-in now warns and carries on.** The gate used to trust the session check completely: a missing optional dependency, a proxy swallowing the reply or a bug in the check itself turned the first screen into a traceback instead of a prompt. It now fails open — you get one grey line saying the check couldn't run and Dulus starts normally. The suite also learns that the REPL-resilience test is not a sign-in test: it runs with a CI key so the gate never masks the crashes it exists to catch (that one went red on Linux only). `pip install -U dulus`. 🦅🇩🇴
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: dulus
|
|
3
|
-
Version: 3.15.
|
|
3
|
+
Version: 3.15.3
|
|
4
4
|
Summary: Provider-independent agent runtime for the terminal — cloud and local models, real tools, MCP, plugins, memory, sub-agents, and Dulus OS.
|
|
5
5
|
Author-email: KevRojo <dev@dulus.ai>
|
|
6
6
|
Maintainer-email: KevRojo <dev@dulus.ai>
|
|
@@ -476,7 +476,7 @@ Those numbers are not a vanity dashboard. They explain the product: Dulus is bui
|
|
|
476
476
|
|
|
477
477
|
## Install in 30 seconds
|
|
478
478
|
|
|
479
|
-
> **Dulus runs on a free Dulus account.** The first `dulus` opens your browser to sign in — over SSH or on a box with no desktop it shows a link, a code and a QR to approve from your phone or laptop instead; after that the session is remembered. CI, scripts and servers: set `DULUS_API_KEY` to a `dulus_sk_*` key from `/login dulus key`. `--version` and `--help` never ask.
|
|
479
|
+
> **Dulus runs on a free Dulus account.** The first `dulus` opens your browser to sign in — over SSH or on a box with no desktop it shows a link, a code and a QR to approve from your phone or laptop instead; after that the session is remembered. CI, scripts and servers: set `DULUS_API_KEY` to a `dulus_sk_*` key from `/login dulus key`. `--version` and `--help` never ask. **Behind a firewall** (mainland China, a locked-down office)? Sign-in follows `HTTPS_PROXY`, and a key minted on any machine that can sign in works on this one.
|
|
480
480
|
|
|
481
481
|
If Python 3.11 or newer is already installed:
|
|
482
482
|
|
|
@@ -376,7 +376,7 @@ try:
|
|
|
376
376
|
from importlib.metadata import version as _pkg_version
|
|
377
377
|
VERSION = _pkg_version("dulus")
|
|
378
378
|
except Exception:
|
|
379
|
-
VERSION = "3.15.
|
|
379
|
+
VERSION = "3.15.3" # dev fallback — keep in sync with pyproject.toml
|
|
380
380
|
|
|
381
381
|
# ── Machine-readable protocol output (`--output json`) ─────────────────────
|
|
382
382
|
# Dulus is increasingly run as a child process by another agent runtime (an
|
|
@@ -13146,7 +13146,8 @@ def _require_dulus_login(args) -> None:
|
|
|
13146
13146
|
a broken sign-in can always be fixed from the command line. Renewal only
|
|
13147
13147
|
happens when a person launched Dulus; background children and `-c` runs
|
|
13148
13148
|
take the stored session at its word so parallel launches never race to
|
|
13149
|
-
rotate the same refresh token.
|
|
13149
|
+
rotate the same refresh token. A network that can't reach the sign-in
|
|
13150
|
+
servers isn't locked out either: Dulus starts without a word about it.
|
|
13150
13151
|
"""
|
|
13151
13152
|
if args.run_tool or args.job_id or args.job_path:
|
|
13152
13153
|
return
|
|
@@ -13201,12 +13202,18 @@ def _require_dulus_login(args) -> None:
|
|
|
13201
13202
|
|
|
13202
13203
|
say("\n Dulus runs on a free Dulus account — sign in once and you're in.\n")
|
|
13203
13204
|
try:
|
|
13204
|
-
token = dulus_account.
|
|
13205
|
+
outcome, token = dulus_account.sign_in(notify=say, out=screen, quiet=True)
|
|
13205
13206
|
except KeyboardInterrupt:
|
|
13206
|
-
token = None
|
|
13207
|
+
outcome, token = "refused", None
|
|
13207
13208
|
except Exception as exc: # noqa: BLE001 - a crash in the sign-in reads as a failed sign-in
|
|
13208
13209
|
say(f"[dulus] Sign-in failed ({type(exc).__name__}: {exc}).", "yellow")
|
|
13209
|
-
token = None
|
|
13210
|
+
outcome, token = "refused", None
|
|
13211
|
+
if outcome == "unreachable":
|
|
13212
|
+
# This network can't reach the sign-in servers (mainland China, some
|
|
13213
|
+
# offices and hotels), so there's no account to create from here: let
|
|
13214
|
+
# the person in without a word. The next launch asks again, and
|
|
13215
|
+
# `/login dulus` still explains the ways through.
|
|
13216
|
+
return
|
|
13210
13217
|
if not token:
|
|
13211
13218
|
say("[dulus] Sign-in didn't finish. Run `dulus` again whenever you're ready.", "yellow")
|
|
13212
13219
|
sys.exit(1)
|
|
@@ -31,7 +31,7 @@ import subprocess
|
|
|
31
31
|
import sys
|
|
32
32
|
import threading
|
|
33
33
|
import time
|
|
34
|
-
from typing import Any, Callable, TextIO
|
|
34
|
+
from typing import Any, Callable, NoReturn, TextIO
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
DULUS_API_BASE = os.environ.get("DULUS_API_BASE", "https://control.dulus.ai").rstrip("/")
|
|
@@ -350,6 +350,69 @@ def _poll_device_flow(device_code: str) -> tuple[str, str]:
|
|
|
350
350
|
return "retry", f"HTTP {reply.status_code}"
|
|
351
351
|
|
|
352
352
|
|
|
353
|
+
class _Unreachable(Exception):
|
|
354
|
+
"""The sign-in servers gave this network no answer — which is not a refusal."""
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
def _unreachable(notify: Callable[[str], Any], what: str, url: str) -> NoReturn:
|
|
358
|
+
"""Say what didn't answer and how to get through, then end the sign-in."""
|
|
359
|
+
notify(f"[dulus] {what}")
|
|
360
|
+
notify(f"[dulus] Check this machine can reach {url} — behind a proxy, set HTTPS_PROXY.")
|
|
361
|
+
raise _Unreachable(what)
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
def _ask_dulus(notify: Callable[[str], Any], send: Callable[..., Any], url: str,
|
|
365
|
+
**kwargs: Any) -> Any:
|
|
366
|
+
"""One Dulus API call after approval, with the tries the start of the sign-in gets.
|
|
367
|
+
|
|
368
|
+
By then the person has approved, often from a phone: one connection lost on
|
|
369
|
+
a long route (mainland China, a hotel network) shouldn't throw that away.
|
|
370
|
+
"""
|
|
371
|
+
problem = ""
|
|
372
|
+
for attempt in range(3):
|
|
373
|
+
if attempt:
|
|
374
|
+
time.sleep(2 * attempt)
|
|
375
|
+
try:
|
|
376
|
+
reply = send(url, timeout=30, **kwargs)
|
|
377
|
+
except Exception as exc: # noqa: BLE001 - no network for a moment: try again
|
|
378
|
+
problem = type(exc).__name__
|
|
379
|
+
continue
|
|
380
|
+
if not _transient(reply.status_code):
|
|
381
|
+
return reply
|
|
382
|
+
problem = f"HTTP {reply.status_code}"
|
|
383
|
+
_unreachable(notify, f"Could not reach the Dulus API ({problem}).", DULUS_API_BASE)
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
def sign_in(
|
|
387
|
+
notify: Callable[[str], Any] = functools.partial(print, flush=True),
|
|
388
|
+
browser: str = "auto",
|
|
389
|
+
out: TextIO | None = None,
|
|
390
|
+
*,
|
|
391
|
+
quiet: bool = False,
|
|
392
|
+
) -> tuple[str, str | None]:
|
|
393
|
+
""":func:`login`, also saying how it went.
|
|
394
|
+
|
|
395
|
+
Returns ``("ok", token)`` once signed in, ``("refused", None)`` when the
|
|
396
|
+
sign-in was denied, abandoned or turned down, and ``("unreachable", None)``
|
|
397
|
+
when this network never got an answer from the sign-in servers — the same
|
|
398
|
+
split :func:`_renew` makes for renewals.
|
|
399
|
+
|
|
400
|
+
``quiet`` says nothing about servers that don't answer (no retry notices,
|
|
401
|
+
nothing to check), so the launch gate can let such a person in without a
|
|
402
|
+
word. The sign-in itself — link, code, approval — still shows.
|
|
403
|
+
"""
|
|
404
|
+
explain = (lambda _message: None) if quiet else notify
|
|
405
|
+
try:
|
|
406
|
+
token = _device_flow(notify, browser, out, explain)
|
|
407
|
+
except _Unreachable:
|
|
408
|
+
# A filtered network (mainland China, a locked-down office) can still
|
|
409
|
+
# run on an account: a key minted wherever Dulus answers works here.
|
|
410
|
+
explain("[dulus] Or sign in on any machine that can reach Dulus, mint a key there with "
|
|
411
|
+
"`/login dulus key`, and set DULUS_API_KEY to it on this one.")
|
|
412
|
+
return "unreachable", None
|
|
413
|
+
return ("ok", token) if token else ("refused", None)
|
|
414
|
+
|
|
415
|
+
|
|
353
416
|
def login(
|
|
354
417
|
notify: Callable[[str], Any] = functools.partial(print, flush=True),
|
|
355
418
|
browser: str = "auto",
|
|
@@ -378,6 +441,19 @@ def login(
|
|
|
378
441
|
2. GET /api/entitlements with the Auth0 token → account lease.
|
|
379
442
|
3. POST /v1/oauth/authorize with the lease → authorization code.
|
|
380
443
|
4. POST /v1/oauth/token (code + PKCE verifier) → CLI tokens.
|
|
444
|
+
|
|
445
|
+
:func:`sign_in` does the work and also tells a refusal apart from a
|
|
446
|
+
network that can't reach the sign-in servers.
|
|
447
|
+
"""
|
|
448
|
+
return sign_in(notify, browser, out)[1]
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
def _device_flow(notify: Callable[[str], Any], browser: str, out: TextIO | None,
|
|
452
|
+
explain: Callable[[str], Any]) -> str | None:
|
|
453
|
+
"""The chain :func:`login` describes.
|
|
454
|
+
|
|
455
|
+
``explain`` gets what's said about servers that don't answer. Raises
|
|
456
|
+
:class:`_Unreachable` when a step gets no answer.
|
|
381
457
|
"""
|
|
382
458
|
import requests
|
|
383
459
|
|
|
@@ -386,7 +462,7 @@ def login(
|
|
|
386
462
|
problem = ""
|
|
387
463
|
for attempt in range(3):
|
|
388
464
|
if attempt:
|
|
389
|
-
|
|
465
|
+
explain(f"[dulus] No answer from the login server yet ({problem}) — trying again…")
|
|
390
466
|
time.sleep(2 * attempt)
|
|
391
467
|
start = {}
|
|
392
468
|
try:
|
|
@@ -410,12 +486,10 @@ def login(
|
|
|
410
486
|
link = str(start.get("verification_uri_complete") or short_link)
|
|
411
487
|
if not (device_code and user_code and link):
|
|
412
488
|
refusal = start.get("error_description") or start.get("error")
|
|
413
|
-
if refusal:
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
notify(f"[dulus] Check this machine can reach https://{_AUTH0_DOMAIN} — "
|
|
418
|
-
"behind a proxy, set HTTPS_PROXY.")
|
|
489
|
+
if not refusal:
|
|
490
|
+
_unreachable(explain, f"Couldn't get a sign-in code from the login server ({problem}).",
|
|
491
|
+
f"https://{_AUTH0_DOMAIN}")
|
|
492
|
+
notify(f"[dulus] The login server wouldn't start a sign-in: {refusal}")
|
|
419
493
|
return None
|
|
420
494
|
|
|
421
495
|
interval = _seconds(start.get("interval"), 5)
|
|
@@ -462,9 +536,11 @@ def login(
|
|
|
462
536
|
|
|
463
537
|
auth0_token = ""
|
|
464
538
|
stalled = False
|
|
539
|
+
answered = False # did Auth0 answer even one poll?
|
|
465
540
|
while time.monotonic() < deadline:
|
|
466
541
|
time.sleep(interval)
|
|
467
542
|
outcome, detail = _poll_device_flow(device_code)
|
|
543
|
+
answered = answered or outcome != "retry"
|
|
468
544
|
if outcome == "token":
|
|
469
545
|
auth0_token = detail
|
|
470
546
|
break
|
|
@@ -484,19 +560,15 @@ def login(
|
|
|
484
560
|
return None
|
|
485
561
|
|
|
486
562
|
if not auth0_token:
|
|
563
|
+
if not answered:
|
|
564
|
+
_unreachable(explain, "The login server never answered while waiting for approval.",
|
|
565
|
+
f"https://{_AUTH0_DOMAIN}")
|
|
487
566
|
notify("[dulus] Sign-in timed out before it was approved.")
|
|
488
567
|
return None
|
|
489
568
|
|
|
490
569
|
# ── 2. Account lease ────────────────────────────────────────────────
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
f"{DULUS_API_BASE}/api/entitlements",
|
|
494
|
-
headers={"Authorization": f"Bearer {auth0_token}"},
|
|
495
|
-
timeout=30,
|
|
496
|
-
)
|
|
497
|
-
except Exception as exc:
|
|
498
|
-
notify(f"[dulus] Could not reach the Dulus API: {exc}")
|
|
499
|
-
return None
|
|
570
|
+
ent = _ask_dulus(explain, requests.get, f"{DULUS_API_BASE}/api/entitlements",
|
|
571
|
+
headers={"Authorization": f"Bearer {auth0_token}"})
|
|
500
572
|
if ent.status_code != 200:
|
|
501
573
|
notify(f"[dulus] Account lookup failed ({ent.status_code}).")
|
|
502
574
|
return None
|
|
@@ -510,23 +582,20 @@ def login(
|
|
|
510
582
|
verifier, challenge = _pkce_pair()
|
|
511
583
|
state = secrets.token_urlsafe(24)
|
|
512
584
|
redirect_uri = f"http://127.0.0.1{_REDIRECT_PATH}"
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
except Exception as exc:
|
|
528
|
-
notify(f"[dulus] Authorization request failed: {exc}")
|
|
529
|
-
return None
|
|
585
|
+
authz = _ask_dulus(
|
|
586
|
+
explain,
|
|
587
|
+
requests.post,
|
|
588
|
+
f"{DULUS_API_BASE}/v1/oauth/authorize",
|
|
589
|
+
params={
|
|
590
|
+
"client_id": DULUS_OAUTH_CLIENT_ID,
|
|
591
|
+
"redirect_uri": redirect_uri,
|
|
592
|
+
"code_challenge": challenge,
|
|
593
|
+
"code_challenge_method": "S256",
|
|
594
|
+
"state": state,
|
|
595
|
+
"scope": DULUS_OAUTH_SCOPE,
|
|
596
|
+
},
|
|
597
|
+
headers={"X-Dulus-Lease": lease},
|
|
598
|
+
)
|
|
530
599
|
if authz.status_code != 200:
|
|
531
600
|
notify(f"[dulus] Authorization rejected ({authz.status_code}): {authz.text[:200]}")
|
|
532
601
|
return None
|
|
@@ -536,22 +605,18 @@ def login(
|
|
|
536
605
|
return None
|
|
537
606
|
|
|
538
607
|
# ── 4. Code exchange ────────────────────────────────────────────────
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
except Exception as exc:
|
|
552
|
-
notify(f"[dulus] Token exchange failed: {exc}")
|
|
553
|
-
return None
|
|
554
|
-
|
|
608
|
+
response = _ask_dulus(
|
|
609
|
+
explain,
|
|
610
|
+
requests.post,
|
|
611
|
+
f"{DULUS_API_BASE}/v1/oauth/token",
|
|
612
|
+
json={
|
|
613
|
+
"grant_type": "authorization_code",
|
|
614
|
+
"client_id": DULUS_OAUTH_CLIENT_ID,
|
|
615
|
+
"code": code,
|
|
616
|
+
"redirect_uri": redirect_uri,
|
|
617
|
+
"code_verifier": verifier,
|
|
618
|
+
},
|
|
619
|
+
)
|
|
555
620
|
payload = _json_body(response)
|
|
556
621
|
if response.status_code != 200 or not payload.get("access_token"):
|
|
557
622
|
notify(f"[dulus] Token exchange rejected ({response.status_code}).")
|
|
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
|
|
|
10
10
|
|
|
11
11
|
[project]
|
|
12
12
|
name = "dulus"
|
|
13
|
-
version = "3.15.
|
|
13
|
+
version = "3.15.3"
|
|
14
14
|
description = "Provider-independent agent runtime for the terminal — cloud and local models, real tools, MCP, plugins, memory, sub-agents, and Dulus OS."
|
|
15
15
|
readme = "README.md"
|
|
16
16
|
requires-python = ">=3.10"
|
|
@@ -120,6 +120,184 @@ def test_refresh_returns_none_when_refused(store, monkeypatch):
|
|
|
120
120
|
assert dulus_account.refresh("r1") is None
|
|
121
121
|
|
|
122
122
|
|
|
123
|
+
# ── sign_in over a long or filtered route ───────────────────────────────────
|
|
124
|
+
|
|
125
|
+
_DEVICE = f"https://{dulus_account._AUTH0_DOMAIN}/oauth/device/code"
|
|
126
|
+
_POLL = f"https://{dulus_account._AUTH0_DOMAIN}/oauth/token"
|
|
127
|
+
_LEASE = f"{dulus_account.DULUS_API_BASE}/api/entitlements"
|
|
128
|
+
_AUTHORIZE = f"{dulus_account.DULUS_API_BASE}/v1/oauth/authorize"
|
|
129
|
+
_EXCHANGE = f"{dulus_account.DULUS_API_BASE}/v1/oauth/token"
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
class _Page(_Resp):
|
|
133
|
+
"""What a Wi-Fi login page or a filtering proxy sends back: not JSON."""
|
|
134
|
+
|
|
135
|
+
def json(self):
|
|
136
|
+
raise ValueError("Expecting value: line 1 column 1 (char 0)")
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class _Clock:
|
|
140
|
+
"""Virtual time, so retries and the wait for approval cost the suite nothing."""
|
|
141
|
+
|
|
142
|
+
def __init__(self):
|
|
143
|
+
self.now = 1_000_000.0
|
|
144
|
+
|
|
145
|
+
def time(self):
|
|
146
|
+
return self.now
|
|
147
|
+
|
|
148
|
+
def monotonic(self):
|
|
149
|
+
return self.now
|
|
150
|
+
|
|
151
|
+
def sleep(self, seconds):
|
|
152
|
+
self.now += seconds
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
@pytest.fixture()
|
|
156
|
+
def network(store, monkeypatch):
|
|
157
|
+
"""Answer each sign-in URL from its own script of replies; the last one repeats."""
|
|
158
|
+
import requests
|
|
159
|
+
|
|
160
|
+
script: dict = {}
|
|
161
|
+
calls: list = []
|
|
162
|
+
|
|
163
|
+
def send(url, **_):
|
|
164
|
+
calls.append(url)
|
|
165
|
+
replies = script[url]
|
|
166
|
+
reply = replies.pop(0) if len(replies) > 1 else replies[0]
|
|
167
|
+
if isinstance(reply, BaseException):
|
|
168
|
+
raise reply
|
|
169
|
+
return reply
|
|
170
|
+
|
|
171
|
+
monkeypatch.setattr(requests, "post", send)
|
|
172
|
+
monkeypatch.setattr(requests, "get", send)
|
|
173
|
+
monkeypatch.setattr(dulus_account, "time", _Clock())
|
|
174
|
+
monkeypatch.setattr(dulus_account, "_browser_openers", lambda url, mode="auto": [])
|
|
175
|
+
return script, calls
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def _a_clean_sign_in():
|
|
179
|
+
return {
|
|
180
|
+
_DEVICE: [_Resp(200, {"device_code": "dc", "user_code": "ABCD-EFGH",
|
|
181
|
+
"verification_uri": "https://login.test/activate"})],
|
|
182
|
+
_POLL: [_Resp(400, {"error": "authorization_pending"}), _Resp(200, {"access_token": "a0"})],
|
|
183
|
+
_LEASE: [_Resp(200, {"leaseToken": "lease"})],
|
|
184
|
+
_AUTHORIZE: [_Resp(200, {"code": "c0"})],
|
|
185
|
+
_EXCHANGE: [_Resp(200, {"access_token": "cli", "refresh_token": "r0", "expires_in": 3600})],
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def test_sign_in_rides_out_a_lossy_route(network):
|
|
190
|
+
"""Every step can lose a request on the way and the sign-in still lands."""
|
|
191
|
+
import requests
|
|
192
|
+
|
|
193
|
+
script, calls = network
|
|
194
|
+
script.update(_a_clean_sign_in())
|
|
195
|
+
script[_DEVICE].insert(0, requests.ConnectionError("connection reset by peer"))
|
|
196
|
+
script[_POLL].insert(0, requests.ReadTimeout("read timed out"))
|
|
197
|
+
script[_LEASE].insert(0, _Resp(503))
|
|
198
|
+
script[_AUTHORIZE].insert(0, requests.ConnectTimeout("connect timed out"))
|
|
199
|
+
script[_EXCHANGE].insert(0, _Resp(502))
|
|
200
|
+
|
|
201
|
+
assert dulus_account.sign_in(notify=lambda m: None) == ("ok", "cli")
|
|
202
|
+
assert calls.count(_DEVICE) == 2 and calls.count(_LEASE) == 2
|
|
203
|
+
assert dulus_account.load_store()["lease_token"] == "lease"
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
def test_login_still_hands_back_just_the_token(network):
|
|
207
|
+
script, _ = network
|
|
208
|
+
script.update(_a_clean_sign_in())
|
|
209
|
+
assert dulus_account.login(notify=lambda m: None) == "cli"
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
def test_a_login_server_that_never_answers_is_unreachable(network):
|
|
213
|
+
import requests
|
|
214
|
+
|
|
215
|
+
script, calls = network
|
|
216
|
+
script[_DEVICE] = [requests.ConnectionError("connection reset by peer")]
|
|
217
|
+
said: list = []
|
|
218
|
+
|
|
219
|
+
assert dulus_account.sign_in(notify=said.append) == ("unreachable", None)
|
|
220
|
+
assert calls == [_DEVICE] * 3
|
|
221
|
+
# Name what didn't answer, then the two ways through: a proxy, or a key
|
|
222
|
+
# minted on a machine that can reach Dulus.
|
|
223
|
+
text = "\n".join(said)
|
|
224
|
+
assert dulus_account._AUTH0_DOMAIN in text
|
|
225
|
+
assert "HTTPS_PROXY" in text and "DULUS_API_KEY" in text
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
def test_a_wifi_login_page_is_not_an_answer(network):
|
|
229
|
+
script, _ = network
|
|
230
|
+
script[_DEVICE] = [_Page(200)]
|
|
231
|
+
assert dulus_account.sign_in(notify=lambda m: None) == ("unreachable", None)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
def test_polls_that_never_get_through_are_unreachable(network):
|
|
235
|
+
import requests
|
|
236
|
+
|
|
237
|
+
script, _ = network
|
|
238
|
+
script.update(_a_clean_sign_in())
|
|
239
|
+
script[_POLL] = [requests.ConnectTimeout("connect timed out")]
|
|
240
|
+
assert dulus_account.sign_in(notify=lambda m: None) == ("unreachable", None)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
def test_dulus_api_out_of_reach_after_approval_is_unreachable(network):
|
|
244
|
+
script, _ = network
|
|
245
|
+
script.update(_a_clean_sign_in())
|
|
246
|
+
script[_LEASE] = [_Resp(503)]
|
|
247
|
+
assert dulus_account.sign_in(notify=lambda m: None) == ("unreachable", None)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
@pytest.mark.parametrize("url, reply", [
|
|
251
|
+
(_DEVICE, _Resp(403, {"error": "unauthorized_client"})),
|
|
252
|
+
(_POLL, _Resp(403, {"error": "access_denied"})),
|
|
253
|
+
(_POLL, _Resp(400, {"error": "authorization_pending"})), # the code ran out unapproved
|
|
254
|
+
(_LEASE, _Resp(401, {"detail": "invalid token"})),
|
|
255
|
+
])
|
|
256
|
+
def test_a_real_no_is_refused_not_unreachable(network, url, reply):
|
|
257
|
+
"""Only a network that can't get an answer opens the gate; a "no" keeps it shut."""
|
|
258
|
+
script, _ = network
|
|
259
|
+
script.update(_a_clean_sign_in())
|
|
260
|
+
script[url] = [reply]
|
|
261
|
+
assert dulus_account.sign_in(notify=lambda m: None) == ("refused", None)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
def test_a_quiet_sign_in_says_nothing_when_the_login_server_never_answers(network):
|
|
265
|
+
"""The launch gate lets a blocked person in without a word: nothing to read, nothing to try."""
|
|
266
|
+
import requests
|
|
267
|
+
|
|
268
|
+
script, _ = network
|
|
269
|
+
script[_DEVICE] = [requests.ConnectionError("connection reset by peer")]
|
|
270
|
+
said: list = []
|
|
271
|
+
|
|
272
|
+
assert dulus_account.sign_in(notify=said.append, quiet=True) == ("unreachable", None)
|
|
273
|
+
assert said == []
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
@pytest.mark.parametrize("url", [_POLL, _LEASE])
|
|
277
|
+
def test_a_quiet_sign_in_never_explains_a_network_that_stops_answering(network, url):
|
|
278
|
+
import requests
|
|
279
|
+
|
|
280
|
+
script, _ = network
|
|
281
|
+
script.update(_a_clean_sign_in())
|
|
282
|
+
script[url] = [requests.ConnectionError("connection reset by peer")]
|
|
283
|
+
said: list = []
|
|
284
|
+
|
|
285
|
+
assert dulus_account.sign_in(notify=said.append, quiet=True) == ("unreachable", None)
|
|
286
|
+
text = "\n".join(said)
|
|
287
|
+
assert "ABCD-EFGH" in text # the sign-in itself was shown
|
|
288
|
+
for explanation in ("never answered", "Could not reach", "HTTPS_PROXY", "DULUS_API_KEY"):
|
|
289
|
+
assert explanation not in text
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
def test_a_quiet_sign_in_still_shows_the_link_and_code(network):
|
|
293
|
+
script, _ = network
|
|
294
|
+
script.update(_a_clean_sign_in())
|
|
295
|
+
said: list = []
|
|
296
|
+
assert dulus_account.sign_in(notify=said.append, quiet=True) == ("ok", "cli")
|
|
297
|
+
assert any("https://login.test/activate" in m for m in said)
|
|
298
|
+
assert any("ABCD-EFGH" in m for m in said)
|
|
299
|
+
|
|
300
|
+
|
|
123
301
|
# ── the launch gate ─────────────────────────────────────────────────────────
|
|
124
302
|
|
|
125
303
|
def _args(**over):
|
|
@@ -136,12 +314,12 @@ def gate(monkeypatch):
|
|
|
136
314
|
seen["renew"] = renew
|
|
137
315
|
return seen.get("answer", "none")
|
|
138
316
|
|
|
139
|
-
def
|
|
317
|
+
def sign_in(notify=print, **options):
|
|
140
318
|
seen["login_options"] = options
|
|
141
|
-
return seen.setdefault("login", "token")
|
|
319
|
+
return seen.setdefault("login", ("ok", "token"))
|
|
142
320
|
|
|
143
321
|
monkeypatch.setattr(dulus_account, "session_status", status)
|
|
144
|
-
monkeypatch.setattr(dulus_account, "
|
|
322
|
+
monkeypatch.setattr(dulus_account, "sign_in", sign_in)
|
|
145
323
|
monkeypatch.setattr(dulus, "_protocol_enabled", lambda: False)
|
|
146
324
|
monkeypatch.setattr(dulus, "_login_gate_can_prompt", lambda: True)
|
|
147
325
|
return seen
|
|
@@ -174,16 +352,36 @@ def test_gate_survives_a_broken_session_check(monkeypatch, capsys):
|
|
|
174
352
|
|
|
175
353
|
def test_gate_signs_you_in(gate):
|
|
176
354
|
dulus._require_dulus_login(_args())
|
|
177
|
-
assert gate["login"] == "token"
|
|
355
|
+
assert gate["login"] == ("ok", "token")
|
|
178
356
|
|
|
179
357
|
|
|
180
358
|
def test_gate_stops_when_sign_in_does_not_finish(gate):
|
|
181
|
-
gate["login"] = None
|
|
359
|
+
gate["login"] = ("refused", None)
|
|
360
|
+
with pytest.raises(SystemExit) as exc:
|
|
361
|
+
dulus._require_dulus_login(_args())
|
|
362
|
+
assert exc.value.code == 1
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
def test_gate_stops_on_ctrl_c_during_sign_in(gate, monkeypatch):
|
|
366
|
+
def interrupted(notify=print, **options):
|
|
367
|
+
raise KeyboardInterrupt
|
|
368
|
+
|
|
369
|
+
monkeypatch.setattr(dulus_account, "sign_in", interrupted)
|
|
182
370
|
with pytest.raises(SystemExit) as exc:
|
|
183
371
|
dulus._require_dulus_login(_args())
|
|
184
372
|
assert exc.value.code == 1
|
|
185
373
|
|
|
186
374
|
|
|
375
|
+
def test_gate_lets_a_blocked_person_in_without_a_word(gate, capsys):
|
|
376
|
+
"""A network that can't reach the sign-in servers (mainland China…) just gets Dulus."""
|
|
377
|
+
gate["login"] = ("unreachable", None)
|
|
378
|
+
dulus._require_dulus_login(_args()) # must not exit
|
|
379
|
+
assert gate["login_options"]["quiet"] is True
|
|
380
|
+
shown = capsys.readouterr()
|
|
381
|
+
text = (shown.out + shown.err).lower()
|
|
382
|
+
assert "carrying on" not in text and "didn't finish" not in text
|
|
383
|
+
|
|
384
|
+
|
|
187
385
|
class _Screen:
|
|
188
386
|
"""A terminal stand-in that records what reached the person, and when it was flushed."""
|
|
189
387
|
|
|
@@ -214,13 +412,13 @@ def test_the_sign_in_link_goes_to_the_terminal_even_with_stdout_redirected(gate,
|
|
|
214
412
|
monkeypatch.setattr(dulus, "_login_gate_can_prompt", lambda: True)
|
|
215
413
|
shown_while_waiting = []
|
|
216
414
|
|
|
217
|
-
def
|
|
415
|
+
def sign_in(notify=print, **options):
|
|
218
416
|
notify("https://dulus.us.auth0.com/activate?user_code=ABCD-EFGH")
|
|
219
417
|
shown_while_waiting.append(stderr.flushed) # what's on screen while polling
|
|
220
418
|
assert options["out"] is stderr # the QR goes there too
|
|
221
|
-
return "token"
|
|
419
|
+
return "ok", "token"
|
|
222
420
|
|
|
223
|
-
monkeypatch.setattr(dulus_account, "
|
|
421
|
+
monkeypatch.setattr(dulus_account, "sign_in", sign_in)
|
|
224
422
|
dulus._require_dulus_login(_args())
|
|
225
423
|
|
|
226
424
|
assert "user_code=ABCD-EFGH" in shown_while_waiting[0]
|
|
@@ -238,22 +436,22 @@ def test_the_sign_in_link_is_flushed_through_a_git_bash_pipe(gate, monkeypatch):
|
|
|
238
436
|
monkeypatch.setattr(dulus, "_attached_to_msys_pty", lambda stream: stream is pipe)
|
|
239
437
|
shown_while_waiting = []
|
|
240
438
|
|
|
241
|
-
def
|
|
439
|
+
def sign_in(notify=print, **options):
|
|
242
440
|
notify("https://dulus.us.auth0.com/activate?user_code=ABCD-EFGH")
|
|
243
441
|
shown_while_waiting.append(pipe.flushed)
|
|
244
|
-
return "token"
|
|
442
|
+
return "ok", "token"
|
|
245
443
|
|
|
246
|
-
monkeypatch.setattr(dulus_account, "
|
|
444
|
+
monkeypatch.setattr(dulus_account, "sign_in", sign_in)
|
|
247
445
|
dulus._require_dulus_login(_args())
|
|
248
446
|
|
|
249
447
|
assert "user_code=ABCD-EFGH" in shown_while_waiting[0]
|
|
250
448
|
|
|
251
449
|
|
|
252
450
|
def test_a_crash_inside_the_sign_in_is_a_failed_sign_in_not_a_traceback(gate, monkeypatch, capsys):
|
|
253
|
-
def
|
|
451
|
+
def sign_in(notify=print, **options):
|
|
254
452
|
raise RuntimeError("proxy ate the reply")
|
|
255
453
|
|
|
256
|
-
monkeypatch.setattr(dulus_account, "
|
|
454
|
+
monkeypatch.setattr(dulus_account, "sign_in", sign_in)
|
|
257
455
|
with pytest.raises(SystemExit) as exc:
|
|
258
456
|
dulus._require_dulus_login(_args())
|
|
259
457
|
|
|
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
|