dulus 3.15.6__tar.gz → 3.15.7__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.6/dulus.egg-info → dulus-3.15.7}/PKG-INFO +2 -2
- dulus-3.15.7/analytics.py +189 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/FAQ.md +4 -4
- {dulus-3.15.6 → dulus-3.15.7}/docs/SECURITY.md +1 -1
- {dulus-3.15.6 → dulus-3.15.7}/docs/news.md +1 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/termux-edge.md +3 -4
- {dulus-3.15.6 → dulus-3.15.7/dulus.egg-info}/PKG-INFO +2 -2
- {dulus-3.15.6 → dulus-3.15.7}/dulus.egg-info/SOURCES.txt +1 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus.egg-info/requires.txt +1 -1
- {dulus-3.15.6 → dulus-3.15.7}/dulus.py +13 -23
- {dulus-3.15.6 → dulus-3.15.7}/pyproject.toml +3 -5
- dulus-3.15.7/tests/test_analytics.py +181 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_provider_errors.py +10 -1
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_repl_resilience.py +4 -2
- dulus-3.15.6/analytics.py +0 -200
- {dulus-3.15.6 → dulus-3.15.7}/LICENSE +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/MANIFEST.in +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/README.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/agent.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/algolia_search.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/app_installer.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/agents_bridge.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/compressor.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/context.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/githook.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/marketplace.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/mempalace_bridge.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/paths.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/personas.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/plugins.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/server.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/session_utils.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/tasks.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/theme_pack.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/backend/themes.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/banners/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/banners/banner_rotator.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/banners/banners_dulus_ai.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/batch_api.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/checkpoint/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/checkpoint/hooks.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/checkpoint/store.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/checkpoint/types.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/__main__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/ansi.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/assets/ascii/dulus_logo.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/assets/ascii/eagle.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/assets/ascii/terminal_art.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/banners.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/demo.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/effects.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/effort_slider.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/progress.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/py.typed +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/spinners.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cli_animations/status.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/clipboard_utils.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/cloudsave.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/common.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/compaction.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/config.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/context.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/data/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/data/plugins/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/data/plugins/composio/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/data/plugins/composio/composio_plugin/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/data/plugins/composio/composio_plugin/session_manager.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/data/plugins/composio/composio_plugin/tool_generator.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/data/plugins/composio/plugin.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/data/plugins/composio/plugin_tool.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/display_blocks.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/API.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/APP_VS_OPEN_SOURCE.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/BRAND_GUIDE.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/CHANGELOG.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/CONTRIBUTING.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/DEPLOYMENT.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/GETTING_STARTED.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/architecture.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/dashboard/index.html +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/divider.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/dulus-bird.png +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/generate.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/nvidia-models.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/particle-playground.html +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/personas/index.html +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/preview.html +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/python-console.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/readme/dulus-os.png +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/readme/hero.png +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/readme/pyc_heap.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/readme/pyc_receipts.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/readme/pyc_trap.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/readme/task-board.png +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/readme/webchat.png +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-agents.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-brainstorm.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-bridges.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-features.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-freetier.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-memory.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-models.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-perms.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-plugins.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-quickstart.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/sec-ssj.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/spinners.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/split-pane.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/docs/terminal-boot.svg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus.egg-info/dependency_links.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus.egg-info/entry_points.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus.egg-info/top_level.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_account.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_bar_client.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_mcp/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_mcp/client.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_mcp/commands.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_mcp/config.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_mcp/hub.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_mcp/tools.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_mcp/types.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_quick_menu.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/add_dir_manager.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/afk_mode.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/approval_runtime.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/background_tasks.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/clipboard_utils.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/diff_visualizer.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/export_import.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/hook_engine.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/isolate.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/notification_manager.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/session_fork.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/shell_mode.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/todo_visualizer.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/tree_ls.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/wire_events.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/dulus_tools/yolo_mode.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/file_filter.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/fs_compass.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/governance.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/input.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/license_manager.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/audit.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/consolidator.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/context.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/mempalace_bridge.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/offload.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/palace.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/scan.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/askuserquestion_after_numbered_list.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/background_jobs_no_extra_timers.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/cleverness_over_resources.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/corporate_tls_breaks_curl_cffi.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/hardened_rules.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/investigator_workflow_heuristic.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/native_code_over_sketchy_plugins.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/no_personal_info_in_code.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/searches_include_modified_date.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/tmux_send_keys_power_patterns.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/token_optimization_technique.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/tool_chaining_capability.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/insights/webbridge_evaluate_first_pattern.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/seeds/short_memory.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/sessions.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/store.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/tools.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/types.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/memory/vector_search.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/model_params.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/multi_agent/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/multi_agent/subagent.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/multi_agent/tools.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/paste_placeholders.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/personality_config.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/plugin/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/plugin/loader.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/plugin/recommend.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/plugin/store.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/plugin/types.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/profiles.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/providers.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/pyconsole.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/setup.cfg +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/builtin.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/LICENSE-obsidian-skills +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/README.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/defuddle/SKILL.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/json-canvas/SKILL.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/json-canvas/references/EXAMPLES.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/obsidian-bases/SKILL.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/obsidian-bases/references/FUNCTIONS_REFERENCE.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/obsidian-cli/SKILL.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/obsidian-markdown/SKILL.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/obsidian-markdown/references/CALLOUTS.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/obsidian-markdown/references/EMBEDS.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/obsidian-markdown/references/PROPERTIES.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/README.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/SKILL.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/addresses.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/advancedbackgroundchecks.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/beenverified.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/clustal.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/clustrmaps.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/cyberbackgroundchecks.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/familytreenow.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/fastpeoplesearch.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/intelius.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/mylife.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/nuwber.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/peekyou.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/peoplefinders.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/radaris.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/rehold.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/searchpeoplefree.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/socialcatfish.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/spokeo.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/thatsthem.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/truepeoplesearch.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/usphonebook.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/brokers/whitepages.json +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/legal/ccpa.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/legal/drop.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/legal/gdpr.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/methods.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/site-playbooks.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/references/state-machine.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/autopilot.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/badbool.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/brokers.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/cdp.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/config.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/crypto.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/dossier.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/email_modes.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/emailer.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/ledger.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/legal.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/paths.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/pdd.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/registry.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/report.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/scan.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/storage.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/tiers.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/scripts/vectors.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/templates/consent/authorization.md +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/templates/emails/ccpa-authorized-agent.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/templates/emails/ccpa-deletion.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/templates/emails/ccpa-indirect-deletion.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/templates/emails/gdpr-erasure.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/bundled/unbroker/templates/emails/generic-optout.txt +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/clawhub.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/executor.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/loader.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skill/tools.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/skills.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/soul.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/spinner.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/steer_input.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/subagent.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/task/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/task/store.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/task/tools.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/task/types.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_afk_yolo.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_agent_tool_inputs.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_app_installer.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_approval_runtime.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_background_task_tools.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_background_tasks.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_chatgpt_oauth.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_checkpoint.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_cli_animations_integration.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_clipboard_utils.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_compaction.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_compaction_failures.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_composio_tool_generator.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_diff_view.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_diff_visualization.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_display_blocks.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_dulus_account.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_empty_assistant_turn.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_export_import.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_grok_usage.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_headless_login.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_hook_engine.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_injection_fix.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_interruptible_stream.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_json_protocol.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_license.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_login_gate.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_mcp.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_mcp_algolia.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_memory.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_memory_home_resolution.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_news_radio.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_notification_manager.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_persistence_safety.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_plugin.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_profile_isolation.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_profile_plugin_scope.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_provider_stability.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_public_surface.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_sentry_reporting.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_session_fork.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_shell_detection.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_shell_mode.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_skills.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_skillssh_algolia.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_steer_input.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_streamed_tool_names.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_subagent.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_task.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_telegram_buffer.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_think_tool.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_todo_tool.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_todo_visualization.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_tool_registry.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_tool_safety.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_tree_ls.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_voice.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_webbridge_tabs.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tests/test_wire_events.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tmux_tools.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/token_budget.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tool_registry.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tools.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tools_background.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tools_think.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/tools_todo.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/ui/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/ui/input.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/ui/render.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/updater.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/voice/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/voice/audio_utils.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/voice/keyterms.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/voice/recorder.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/voice/stt.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/voice/tts.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/voice/wake_word.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/webbridge/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/webbridge/core.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/webbridge/tools.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/webchat.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/webchat_server.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/webchat_ui/__init__.py +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/webchat_ui/app.js +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/webchat_ui/index.html +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/webchat_ui/style.css +0 -0
- {dulus-3.15.6 → dulus-3.15.7}/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.7
|
|
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>
|
|
@@ -57,7 +57,7 @@ Requires-Dist: pyttsx3
|
|
|
57
57
|
Requires-Dist: composio>=1.0.0rc2
|
|
58
58
|
Requires-Dist: beautifulsoup4>=4.12.0
|
|
59
59
|
Requires-Dist: segno>=1.6.0
|
|
60
|
-
Requires-Dist: sentry-sdk
|
|
60
|
+
Requires-Dist: sentry-sdk<3,>=2.0.0
|
|
61
61
|
Requires-Dist: truststore>=0.9
|
|
62
62
|
Requires-Dist: pytesseract>=0.3.10
|
|
63
63
|
Requires-Dist: dulus-bar>=0.5.1
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"""Always-on usage analytics for the public Dulus CLI.
|
|
2
|
+
|
|
3
|
+
The CLI sends session, message, tool, command, and model-selection events
|
|
4
|
+
to Mixpanel and Amplitude. Events contain a locally generated random ID,
|
|
5
|
+
Dulus and Python versions, the OS, and the relevant provider, model, tool,
|
|
6
|
+
or command name. Prompts, replies, tool arguments, and file contents are
|
|
7
|
+
excluded. Delivery runs in background threads and can fail offline.
|
|
8
|
+
"""
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
import base64
|
|
12
|
+
import json
|
|
13
|
+
import os
|
|
14
|
+
import platform
|
|
15
|
+
import sys
|
|
16
|
+
import tempfile
|
|
17
|
+
import threading
|
|
18
|
+
import time
|
|
19
|
+
import uuid
|
|
20
|
+
from pathlib import Path
|
|
21
|
+
|
|
22
|
+
# Mixpanel PROJECT TOKEN for the public Dulus project.
|
|
23
|
+
# NOTE: Mixpanel ingestion tokens are write-only and designed to ship in
|
|
24
|
+
# client code (every website using Mixpanel exposes theirs). It cannot be
|
|
25
|
+
# used to read any data. Override with DULUS_MP_TOKEN.
|
|
26
|
+
_DEFAULT_MP_TOKEN = "966ce8f5ccb32f06788f51be9f8bf8f5"
|
|
27
|
+
MP_TOKEN = os.environ.get("DULUS_MP_TOKEN", _DEFAULT_MP_TOKEN).strip()
|
|
28
|
+
|
|
29
|
+
_MP_ENDPOINT = "https://api.mixpanel.com/track?ip=0"
|
|
30
|
+
|
|
31
|
+
# Amplitude receives the same usage events and random ID.
|
|
32
|
+
# Ingestion keys are write-only by design — they cannot read any data.
|
|
33
|
+
_DEFAULT_AMP_KEY = "dbdb0e42b0fc29bfdb4061612c3c8a7e"
|
|
34
|
+
AMP_KEY = os.environ.get("DULUS_AMP_KEY", _DEFAULT_AMP_KEY).strip()
|
|
35
|
+
|
|
36
|
+
# Allow routing to either provider alone. Empty overrides for both use the public projects.
|
|
37
|
+
if not (MP_TOKEN or AMP_KEY):
|
|
38
|
+
MP_TOKEN, AMP_KEY = _DEFAULT_MP_TOKEN, _DEFAULT_AMP_KEY
|
|
39
|
+
|
|
40
|
+
_AMP_ENDPOINT = "https://api2.amplitude.com/2/httpapi"
|
|
41
|
+
|
|
42
|
+
# Populated by init_telemetry() at CLI startup.
|
|
43
|
+
_distinct_id: str | None = None
|
|
44
|
+
_dulus_version: str = ""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def is_enabled() -> bool:
|
|
48
|
+
"""Return whether the client is initialized and has a delivery destination."""
|
|
49
|
+
return bool(_distinct_id and (MP_TOKEN or AMP_KEY))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _anonymous_id(value: object) -> str | None:
|
|
53
|
+
"""Accept the random UUID format used by existing Dulus installations."""
|
|
54
|
+
if isinstance(value, str):
|
|
55
|
+
try:
|
|
56
|
+
if uuid.UUID(value).version == 4:
|
|
57
|
+
return value
|
|
58
|
+
except ValueError:
|
|
59
|
+
pass
|
|
60
|
+
return None
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def _installation_id() -> str:
|
|
64
|
+
"""Share one random ID across launches without creating the wizard's config.json."""
|
|
65
|
+
from config import CONFIG_DIR, atomic_write_text
|
|
66
|
+
|
|
67
|
+
path = CONFIG_DIR / "cli-analytics" / "id"
|
|
68
|
+
new_id = uuid.uuid4().hex
|
|
69
|
+
try:
|
|
70
|
+
if not path.is_file():
|
|
71
|
+
# A rename cannot replace another launch's nonempty directory on POSIX or Windows.
|
|
72
|
+
with tempfile.TemporaryDirectory(dir=CONFIG_DIR) as staging:
|
|
73
|
+
candidate = Path(staging) / "ready"
|
|
74
|
+
candidate.mkdir(mode=0o700)
|
|
75
|
+
(candidate / "id").write_text(new_id, encoding="ascii")
|
|
76
|
+
try:
|
|
77
|
+
candidate.rename(path.parent)
|
|
78
|
+
except OSError:
|
|
79
|
+
if not path.is_file():
|
|
80
|
+
raise
|
|
81
|
+
stored = _anonymous_id(path.read_text(encoding="utf-8", errors="replace").strip())
|
|
82
|
+
if stored:
|
|
83
|
+
return stored
|
|
84
|
+
atomic_write_text(path, new_id)
|
|
85
|
+
except OSError:
|
|
86
|
+
pass # A read-only config directory can still use an ID for this session.
|
|
87
|
+
return new_id
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def init_telemetry(config: dict, version: str = "") -> None:
|
|
91
|
+
"""Initialize analytics for a CLI session, reusing its existing anonymous ID."""
|
|
92
|
+
global _distinct_id, _dulus_version
|
|
93
|
+
_dulus_version = version or _dulus_version
|
|
94
|
+
distinct_id = _anonymous_id(config.get("telemetry_id")) or _installation_id()
|
|
95
|
+
config["telemetry_id"] = distinct_id
|
|
96
|
+
_distinct_id = distinct_id
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def track(event: str, properties: dict | None = None) -> None:
|
|
100
|
+
"""Dispatch a usage event to each configured provider in the background."""
|
|
101
|
+
distinct_id = _distinct_id
|
|
102
|
+
if not is_enabled() or not distinct_id:
|
|
103
|
+
return
|
|
104
|
+
os_name = platform.system()
|
|
105
|
+
event_properties = {
|
|
106
|
+
"dulus_version": _dulus_version,
|
|
107
|
+
"os": os_name,
|
|
108
|
+
"python": f"{sys.version_info.major}.{sys.version_info.minor}",
|
|
109
|
+
**(properties or {}),
|
|
110
|
+
}
|
|
111
|
+
payload = {
|
|
112
|
+
"event": event,
|
|
113
|
+
"properties": {
|
|
114
|
+
"token": MP_TOKEN,
|
|
115
|
+
"distinct_id": distinct_id,
|
|
116
|
+
"time": int(time.time()),
|
|
117
|
+
"$ip": 0, # disable Mixpanel geolocation
|
|
118
|
+
**event_properties,
|
|
119
|
+
},
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
def _post(endpoint: str, data: bytes, content_type: str) -> None:
|
|
123
|
+
from urllib.request import Request, urlopen
|
|
124
|
+
|
|
125
|
+
# The active profile may change while the worker is waiting.
|
|
126
|
+
if _distinct_id != distinct_id:
|
|
127
|
+
return
|
|
128
|
+
req = Request(endpoint, data=data, headers={"Content-Type": content_type}, method="POST")
|
|
129
|
+
with urlopen(req, timeout=4) as response:
|
|
130
|
+
response.read()
|
|
131
|
+
|
|
132
|
+
def _send_mixpanel() -> None:
|
|
133
|
+
try:
|
|
134
|
+
from urllib.parse import urlencode
|
|
135
|
+
|
|
136
|
+
data = urlencode(
|
|
137
|
+
{"data": base64.b64encode(json.dumps([payload]).encode()).decode()}
|
|
138
|
+
).encode()
|
|
139
|
+
_post(_MP_ENDPOINT, data, "application/x-www-form-urlencoded")
|
|
140
|
+
except Exception:
|
|
141
|
+
pass # telemetry must never break Dulus
|
|
142
|
+
|
|
143
|
+
def _send_amplitude() -> None:
|
|
144
|
+
try:
|
|
145
|
+
body = json.dumps({
|
|
146
|
+
"api_key": AMP_KEY,
|
|
147
|
+
"events": [{
|
|
148
|
+
"device_id": distinct_id,
|
|
149
|
+
"event_type": event,
|
|
150
|
+
"event_properties": event_properties,
|
|
151
|
+
"platform": os_name,
|
|
152
|
+
}],
|
|
153
|
+
}).encode()
|
|
154
|
+
_post(_AMP_ENDPOINT, body, "application/json")
|
|
155
|
+
except Exception:
|
|
156
|
+
pass # telemetry must never break Dulus
|
|
157
|
+
|
|
158
|
+
if MP_TOKEN:
|
|
159
|
+
threading.Thread(target=_send_mixpanel, daemon=True, name="telemetry").start()
|
|
160
|
+
if AMP_KEY:
|
|
161
|
+
threading.Thread(target=_send_amplitude, daemon=True, name="telemetry-amp").start()
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def track_session_start(config: dict) -> None:
|
|
165
|
+
"""Convenience: one event per REPL boot (enough for DAU/MAU counts)."""
|
|
166
|
+
track("session_start", {
|
|
167
|
+
"provider": str(config.get("provider", "")),
|
|
168
|
+
"model": str(config.get("model", "")),
|
|
169
|
+
})
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def track_message_sent(model: str = "") -> None:
|
|
173
|
+
"""One event per user prompt sent to the LLM (no content — count only)."""
|
|
174
|
+
track("message_sent", {"model": model})
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def track_tool_used(tool_name: str) -> None:
|
|
178
|
+
"""One event per tool invocation (tool NAME only — never inputs)."""
|
|
179
|
+
track("tool_used", {"tool": tool_name})
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
def track_command_used(command: str) -> None:
|
|
183
|
+
"""One event per slash command (command NAME only — never args)."""
|
|
184
|
+
track("command_used", {"command": command})
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
def track_model_selected(model: str, provider: str = "") -> None:
|
|
188
|
+
"""Fired when the user switches models via /model."""
|
|
189
|
+
track("model_selected", {"model": model, "provider": provider})
|
|
@@ -68,9 +68,9 @@ Use a model that supports function calling: `qwen2.5-coder`, `llama3.3`, `mistra
|
|
|
68
68
|
### Is my data safe?
|
|
69
69
|
|
|
70
70
|
- API keys are encrypted (XOR + base64) before saving to disk
|
|
71
|
-
-
|
|
71
|
+
- Local models process prompts on your machine.
|
|
72
72
|
- MemPalace data stays on your machine
|
|
73
|
-
-
|
|
73
|
+
- The public CLI always sends usage analytics when connected. Mixpanel and Amplitude receive event names, a random ID, and runtime and feature metadata. Prompts and replies are excluded.
|
|
74
74
|
- Open source — you can audit every line
|
|
75
75
|
|
|
76
76
|
---
|
|
@@ -211,9 +211,9 @@ Dulus es tu companero de IA — un agente autonomo en Python que se conecta a cu
|
|
|
211
211
|
### Mis datos estan seguros?
|
|
212
212
|
|
|
213
213
|
- Las API keys se encriptan antes de guardarse
|
|
214
|
-
-
|
|
214
|
+
- Los modelos locales procesan los prompts en tu dispositivo.
|
|
215
215
|
- MemPalace permanece en tu maquina
|
|
216
|
-
-
|
|
216
|
+
- La CLI pública siempre envía estadísticas de uso cuando hay conexión. Mixpanel y Amplitude reciben nombres de eventos, un identificador aleatorio y datos sobre el entorno y las funciones utilizadas. Los mensajes y las respuestas quedan excluidos.
|
|
217
217
|
- Codigo abierto — puedes auditar cada linea
|
|
218
218
|
|
|
219
219
|
### Como conecto a una GPU remota?
|
|
@@ -54,7 +54,7 @@ protection.
|
|
|
54
54
|
- Prompts and tool context are sent to the provider you select unless you use a local model.
|
|
55
55
|
- Plugins, MCP servers, browser-backed providers, search tools, and bridges may contact their own services; review them before enabling them.
|
|
56
56
|
- Memory stays under `~/.dulus/memory/` and project-local `.dulus/memory/` unless a configured integration moves that data.
|
|
57
|
-
-
|
|
57
|
+
- Usage analytics are always on in the public CLI, including headless runs. The CLI sends session, message, tool, command, and model-selection events to Mixpanel and Amplitude by default. Events include a random local ID, Dulus and Python versions, the OS, and the relevant provider, model, tool, or command name. Event payloads exclude conversation text, tool arguments, and file contents.
|
|
58
58
|
|
|
59
59
|
---
|
|
60
60
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 🔥🔥🔥 News (Pacific Time)
|
|
4
4
|
|
|
5
|
+
- November 24, 2026 (**🛡️ v3.15.7 — crash reports work again**): **Sentry was silently off for fresh installs.** `sentry-sdk` 3.0.0 dropped options Dulus passes at startup, so on new installs the crash reporter failed inside a guarded block and stayed off without a word. Dulus now keeps `sentry-sdk` on 2.x until the 3.x migration lands. **Also changed: the public CLI now always sends usage analytics when online** (Mixpanel and Amplitude get event names, a random ID and runtime/feature metadata; prompts and replies are never sent) — see the FAQ. `pip install -U dulus`. 🦅
|
|
5
6
|
- November 24, 2026 (**📲 v3.15.6 — `/app` gets you the desktop app**): **One command from the terminal to the app.** `/app` (also `/install-app`, `/get-app`) picks the Dulus desktop build for your OS from the latest release, downloads it resumably, checks its published sha256 and hands it to your system installer — then shows the exact command to retire the pip copy if you want. `/app check` only looks, `/app download` only fetches. `/update` now means the app; the PyPI upgrade lives on as `/update pip`, and the startup check only pip-upgrades where there is no app build. Telegram, the web chat and pipes get the download link instead, and containers are pointed at the host. The welcome wizard offers the app right after your name. `pip install -U dulus`, then `/app`. 🦅
|
|
6
7
|
|
|
7
8
|
- November 21, 2026 (**🧹 v3.15.5 — your typos stay yours**): **A mistyped value is not a crash.** `/config max_tokens=8k` already told you the value was wrong, but the same message was also sent to our error tracker as a production `ValueError`. Now the argument checks of `/config`, `/budget`, `/proactive`, `/wake`, `/checkpoint`, `/worker`, `/bg`, `/ssj` and `/fork` only answer you; real errors, including a command that crashes, are still reported. The test suite no longer reports its own deliberate failures either. Plus a refreshed README with the desktop app at work, in English and Spanish. `pip install -U dulus`. 🦅
|
|
@@ -101,10 +101,9 @@ pip install dulus
|
|
|
101
101
|
dulus --model edge/gemma-3-1b
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
is
|
|
106
|
-
|
|
107
|
-
nothing leaves the phone.
|
|
104
|
+
The `edge/` prefix routes prompts to the local server. The model name after it
|
|
105
|
+
is a label for the model loaded with `-m`. Inference runs on the phone. The CLI
|
|
106
|
+
sends anonymous usage events when connected.
|
|
108
107
|
|
|
109
108
|
---
|
|
110
109
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: dulus
|
|
3
|
-
Version: 3.15.
|
|
3
|
+
Version: 3.15.7
|
|
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>
|
|
@@ -57,7 +57,7 @@ Requires-Dist: pyttsx3
|
|
|
57
57
|
Requires-Dist: composio>=1.0.0rc2
|
|
58
58
|
Requires-Dist: beautifulsoup4>=4.12.0
|
|
59
59
|
Requires-Dist: segno>=1.6.0
|
|
60
|
-
Requires-Dist: sentry-sdk
|
|
60
|
+
Requires-Dist: sentry-sdk<3,>=2.0.0
|
|
61
61
|
Requires-Dist: truststore>=0.9
|
|
62
62
|
Requires-Dist: pytesseract>=0.3.10
|
|
63
63
|
Requires-Dist: dulus-bar>=0.5.1
|
|
@@ -311,7 +311,7 @@ try:
|
|
|
311
311
|
from importlib.metadata import version as _pkg_version
|
|
312
312
|
VERSION = _pkg_version("dulus")
|
|
313
313
|
except Exception:
|
|
314
|
-
VERSION = "3.15.
|
|
314
|
+
VERSION = "3.15.7" # dev fallback — keep in sync with pyproject.toml
|
|
315
315
|
|
|
316
316
|
# ── Sentry error tracking (optional — graceful degradation if not installed) ─
|
|
317
317
|
# Off-switch for demos/privacy: set DULUS_NO_SENTRY=1 (or SENTRY_DSN="") to skip.
|
|
@@ -1764,6 +1764,10 @@ def cmd_clear(_args: str, state, config) -> bool:
|
|
|
1764
1764
|
return True
|
|
1765
1765
|
|
|
1766
1766
|
_SECRET_PATTERNS = ("api_key", "token", "secret", "password", "passwd", "credential")
|
|
1767
|
+
_TELEMETRY_NOTICE = (
|
|
1768
|
+
"Anonymous CLI usage analytics are always on. "
|
|
1769
|
+
"The default destinations are Mixpanel and Amplitude."
|
|
1770
|
+
)
|
|
1767
1771
|
|
|
1768
1772
|
def _redact_secret(value) -> str:
|
|
1769
1773
|
"""Mask all but last 4 chars of a secret value."""
|
|
@@ -1779,6 +1783,9 @@ def _is_secret_key(key: str) -> bool:
|
|
|
1779
1783
|
|
|
1780
1784
|
def cmd_config(args: str, _state, config) -> bool:
|
|
1781
1785
|
from config import DEFAULTS, as_whole_number, save_config
|
|
1786
|
+
if args and args.partition("=")[0].strip().lower() == "telemetry":
|
|
1787
|
+
info(_TELEMETRY_NOTICE)
|
|
1788
|
+
return True
|
|
1782
1789
|
if not args:
|
|
1783
1790
|
# Redact anything that looks like a secret (api_key/*_token/etc).
|
|
1784
1791
|
display = {}
|
|
@@ -1786,6 +1793,7 @@ def cmd_config(args: str, _state, config) -> bool:
|
|
|
1786
1793
|
if k.startswith("_"):
|
|
1787
1794
|
continue
|
|
1788
1795
|
display[k] = _redact_secret(v) if _is_secret_key(k) else v
|
|
1796
|
+
display["telemetry"] = True
|
|
1789
1797
|
print(json.dumps(display, indent=2))
|
|
1790
1798
|
elif "=" in args:
|
|
1791
1799
|
key, _, val = args.partition("=")
|
|
@@ -1793,9 +1801,6 @@ def cmd_config(args: str, _state, config) -> bool:
|
|
|
1793
1801
|
# Type coercion
|
|
1794
1802
|
if val.lower() in ("true", "false"):
|
|
1795
1803
|
val = val.lower() == "true"
|
|
1796
|
-
elif key == "telemetry":
|
|
1797
|
-
# Accept friendly aliases: /config telemetry=off|on
|
|
1798
|
-
val = val.lower() in ("on", "1", "yes", "y", "enabled")
|
|
1799
1804
|
elif val.isdigit():
|
|
1800
1805
|
val = int(val)
|
|
1801
1806
|
# Numeric settings feed arithmetic in every provider call: "8k" used
|
|
@@ -1808,12 +1813,6 @@ def cmd_config(args: str, _state, config) -> bool:
|
|
|
1808
1813
|
err(f"{key} must be a whole number, e.g. /config {key}={_default}", report=False)
|
|
1809
1814
|
return True
|
|
1810
1815
|
config[key] = val
|
|
1811
|
-
if key == "telemetry":
|
|
1812
|
-
try:
|
|
1813
|
-
import analytics as _telemetry
|
|
1814
|
-
_telemetry.init_telemetry(config)
|
|
1815
|
-
except Exception:
|
|
1816
|
-
pass
|
|
1817
1816
|
# Immediate env-bridge for keys that submodules read from os.environ
|
|
1818
1817
|
if key == "azure_speech_key" and val:
|
|
1819
1818
|
os.environ["AZURE_SPEECH_KEY"] = str(val)
|
|
@@ -13526,22 +13525,13 @@ def main():
|
|
|
13526
13525
|
if _protocol_enabled():
|
|
13527
13526
|
config["rich_live"] = False
|
|
13528
13527
|
|
|
13529
|
-
# ── Anonymous
|
|
13530
|
-
# Asks ONCE on an interactive boot when the user has never answered.
|
|
13531
|
-
# Nothing is ever sent unless the user says yes. See analytics.py for
|
|
13532
|
-
# the full privacy contract (no prompts/paths/PII — event names only).
|
|
13528
|
+
# ── Anonymous CLI usage analytics ───────────────────────────────────
|
|
13533
13529
|
try:
|
|
13534
13530
|
import analytics as _telemetry
|
|
13535
|
-
if (
|
|
13536
|
-
|
|
13537
|
-
and sys.stdin.isatty()
|
|
13538
|
-
and not args.print_mode
|
|
13539
|
-
and not args.exec_cmd
|
|
13540
|
-
and not args.run_tool
|
|
13541
|
-
and not args.daemon
|
|
13531
|
+
if sys.stdin.isatty() and not (
|
|
13532
|
+
args.print_mode or args.exec_cmd or args.run_tool or args.daemon or _protocol_enabled()
|
|
13542
13533
|
):
|
|
13543
|
-
|
|
13544
|
-
save_config(config)
|
|
13534
|
+
print(_TELEMETRY_NOTICE, file=sys.stderr)
|
|
13545
13535
|
_telemetry.init_telemetry(config, version=VERSION)
|
|
13546
13536
|
_telemetry.track_session_start(config)
|
|
13547
13537
|
except Exception:
|
|
@@ -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.7"
|
|
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"
|
|
@@ -94,7 +94,7 @@ dependencies = [
|
|
|
94
94
|
"beautifulsoup4>=4.12.0",
|
|
95
95
|
# Console QR for $DULUS reload wallets (post /login dulus)
|
|
96
96
|
"segno>=1.6.0",
|
|
97
|
-
"sentry-sdk>=2.0.0",
|
|
97
|
+
"sentry-sdk>=2.0.0,<3",
|
|
98
98
|
# OS trust store — fixes CERTIFICATE_VERIFY_FAILED behind corporate TLS
|
|
99
99
|
# interceptors (Cloudflare Zero Trust/WARP, Zscaler, Netskope). Tiny dep.
|
|
100
100
|
"truststore>=0.9",
|
|
@@ -118,9 +118,7 @@ dependencies = [
|
|
|
118
118
|
"uv>=0.4.0",
|
|
119
119
|
"sse-starlette>=2.0.0",
|
|
120
120
|
"starlette>=0.38.0",
|
|
121
|
-
#
|
|
122
|
-
# `pip install dulus[full]`, so shipping it here is the only way metrics
|
|
123
|
-
# actually reach us from real installs.
|
|
121
|
+
# Web chat product analytics uses the configured PostHog project key.
|
|
124
122
|
"posthog>=3.0.0",
|
|
125
123
|
# Memory Palace — per-turn semantic memory injection. Shipped in core on
|
|
126
124
|
# purpose: it's a first-class Dulus feature (mem_palace is ON by default)
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"""Exercise the public CLI's telemetry without contacting analytics providers."""
|
|
2
|
+
|
|
3
|
+
import base64
|
|
4
|
+
import io
|
|
5
|
+
import json
|
|
6
|
+
import runpy
|
|
7
|
+
import sys
|
|
8
|
+
import threading
|
|
9
|
+
import urllib.request
|
|
10
|
+
import uuid
|
|
11
|
+
from concurrent.futures import ThreadPoolExecutor
|
|
12
|
+
from urllib.parse import parse_qs, urlsplit
|
|
13
|
+
|
|
14
|
+
import pytest
|
|
15
|
+
|
|
16
|
+
import analytics
|
|
17
|
+
import config as cfgmod
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@pytest.fixture(autouse=True)
|
|
21
|
+
def isolate_client(monkeypatch, tmp_path):
|
|
22
|
+
monkeypatch.setattr(cfgmod, "CONFIG_DIR", tmp_path)
|
|
23
|
+
monkeypatch.setattr(analytics, "_distinct_id", None)
|
|
24
|
+
monkeypatch.setattr(analytics, "_dulus_version", "")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@pytest.fixture
|
|
28
|
+
def sent(monkeypatch):
|
|
29
|
+
requests = []
|
|
30
|
+
|
|
31
|
+
def capture(request, *, timeout):
|
|
32
|
+
requests.append(request)
|
|
33
|
+
return io.BytesIO(b"1")
|
|
34
|
+
|
|
35
|
+
monkeypatch.setattr(urllib.request, "urlopen", capture)
|
|
36
|
+
monkeypatch.setattr(threading.Thread, "start", threading.Thread.run)
|
|
37
|
+
monkeypatch.setattr(analytics, "MP_TOKEN", "mixpanel-test")
|
|
38
|
+
monkeypatch.setattr(analytics, "AMP_KEY", "amplitude-test")
|
|
39
|
+
return requests
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@pytest.mark.parametrize("settings", [{}, {"telemetry": False}, {"telemetry": "off"}])
|
|
43
|
+
def test_every_session_sends_with_legacy_opt_outs(settings, monkeypatch, sent) -> None:
|
|
44
|
+
monkeypatch.setenv("DULUS_TELEMETRY", "0")
|
|
45
|
+
analytics.init_telemetry(settings)
|
|
46
|
+
analytics.track_session_start(settings)
|
|
47
|
+
assert analytics.is_enabled()
|
|
48
|
+
assert uuid.UUID(settings["telemetry_id"]).version == 4
|
|
49
|
+
assert {urlsplit(req.full_url).hostname for req in sent} == {
|
|
50
|
+
"api.mixpanel.com", "api2.amplitude.com",
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
@pytest.mark.parametrize("interactive", [True, False])
|
|
55
|
+
def test_cli_startup_sends_without_a_consent_prompt(interactive, sent, monkeypatch, capsys) -> None:
|
|
56
|
+
import dulus
|
|
57
|
+
import welcome
|
|
58
|
+
|
|
59
|
+
settings = {"model": "ollama/test-model"}
|
|
60
|
+
if not interactive:
|
|
61
|
+
settings["telemetry"] = False
|
|
62
|
+
monkeypatch.setenv("DULUS_TELEMETRY", "0")
|
|
63
|
+
monkeypatch.setenv("DULUS_NO_IPC", "1")
|
|
64
|
+
monkeypatch.setattr(sys, "argv", ["dulus"] if interactive else ["dulus", "-p", "test"])
|
|
65
|
+
monkeypatch.setattr(sys.stdin, "isatty", lambda: interactive)
|
|
66
|
+
monkeypatch.setattr("builtins.input", lambda *args: pytest.fail("unexpected prompt"))
|
|
67
|
+
monkeypatch.setattr(welcome, "is_first_run", lambda: False)
|
|
68
|
+
monkeypatch.setattr(cfgmod, "load_config", lambda: settings)
|
|
69
|
+
monkeypatch.setattr(cfgmod, "has_api_key", lambda config: True)
|
|
70
|
+
monkeypatch.setattr(dulus, "_require_dulus_login", lambda args: None)
|
|
71
|
+
monkeypatch.setattr(dulus, "repl", lambda *args, **kwargs: None)
|
|
72
|
+
dulus.main()
|
|
73
|
+
assert len(sent) == 2
|
|
74
|
+
assert ("usage analytics are always on" in capsys.readouterr().err) == interactive
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
@pytest.mark.parametrize(
|
|
78
|
+
"mixpanel,amplitude", [(True, True), (True, False), (False, True), (False, False)]
|
|
79
|
+
)
|
|
80
|
+
def test_each_configured_provider_receives_event(mixpanel, amplitude, sent, monkeypatch) -> None:
|
|
81
|
+
if not mixpanel:
|
|
82
|
+
monkeypatch.setattr(analytics, "MP_TOKEN", "")
|
|
83
|
+
if not amplitude:
|
|
84
|
+
monkeypatch.setattr(analytics, "AMP_KEY", "")
|
|
85
|
+
saved_id = uuid.uuid4().hex
|
|
86
|
+
config = {
|
|
87
|
+
"model": "test-model", "provider": "test-provider", "telemetry_id": saved_id,
|
|
88
|
+
"user_name": "private-name", "openai_api_key": "private-key", "prompt": "private-prompt",
|
|
89
|
+
}
|
|
90
|
+
analytics.init_telemetry(config)
|
|
91
|
+
analytics.track_session_start(config)
|
|
92
|
+
|
|
93
|
+
assert analytics.is_enabled() == (mixpanel or amplitude)
|
|
94
|
+
requests = {urlsplit(request.full_url).hostname: request for request in sent}
|
|
95
|
+
assert len(sent) == int(mixpanel) + int(amplitude)
|
|
96
|
+
if mixpanel:
|
|
97
|
+
form = parse_qs(requests["api.mixpanel.com"].data.decode())
|
|
98
|
+
event, = json.loads(base64.b64decode(form["data"][0]))
|
|
99
|
+
assert event["event"] == "session_start"
|
|
100
|
+
assert event["properties"]["distinct_id"] == saved_id
|
|
101
|
+
assert event["properties"]["model"] == "test-model"
|
|
102
|
+
assert "private-" not in json.dumps(event)
|
|
103
|
+
assert parse_qs(urlsplit(requests["api.mixpanel.com"].full_url).query)["ip"] == ["0"]
|
|
104
|
+
if amplitude:
|
|
105
|
+
body = json.loads(requests["api2.amplitude.com"].data)
|
|
106
|
+
event, = body["events"]
|
|
107
|
+
assert event["event_type"] == "session_start"
|
|
108
|
+
assert event["device_id"] == saved_id
|
|
109
|
+
assert event["event_properties"]["model"] == "test-model"
|
|
110
|
+
assert "private-" not in json.dumps(event)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def test_empty_provider_overrides_use_public_projects(monkeypatch, sent) -> None:
|
|
114
|
+
monkeypatch.setenv("DULUS_MP_TOKEN", "")
|
|
115
|
+
monkeypatch.setenv("DULUS_AMP_KEY", "")
|
|
116
|
+
client = runpy.run_path(analytics.__file__)
|
|
117
|
+
client["init_telemetry"]({})
|
|
118
|
+
client["track_message_sent"]("test-model")
|
|
119
|
+
assert {urlsplit(req.full_url).hostname for req in sent} == {
|
|
120
|
+
"api.mixpanel.com", "api2.amplitude.com",
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def test_workers_recheck_identity(monkeypatch, sent) -> None:
|
|
125
|
+
pending = []
|
|
126
|
+
monkeypatch.setattr(threading.Thread, "start", lambda worker: pending.append(worker))
|
|
127
|
+
analytics.init_telemetry({"telemetry_id": uuid.uuid4().hex})
|
|
128
|
+
analytics.track_message_sent("test-model")
|
|
129
|
+
assert len(pending) == 2
|
|
130
|
+
analytics.init_telemetry({"telemetry_id": uuid.uuid4().hex})
|
|
131
|
+
for worker in pending:
|
|
132
|
+
worker.run()
|
|
133
|
+
assert not sent
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def test_concurrent_fresh_launches_share_an_id_without_completing_setup(tmp_path) -> None:
|
|
137
|
+
def start(_):
|
|
138
|
+
config = {"telemetry_id": ""}
|
|
139
|
+
analytics.init_telemetry(config)
|
|
140
|
+
return config["telemetry_id"]
|
|
141
|
+
|
|
142
|
+
with ThreadPoolExecutor(max_workers=8) as pool:
|
|
143
|
+
ids = list(pool.map(start, range(16)))
|
|
144
|
+
assert len(set(ids)) == 1
|
|
145
|
+
assert uuid.UUID(ids[0]).version == 4
|
|
146
|
+
assert (tmp_path / "cli-analytics" / "id").read_text(encoding="ascii") == ids[0]
|
|
147
|
+
assert not (tmp_path / "config.json").exists()
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
def test_invalid_legacy_id_is_replaced_with_a_random_id(sent) -> None:
|
|
151
|
+
config = {"telemetry_id": "person@example.test"}
|
|
152
|
+
analytics.init_telemetry(config)
|
|
153
|
+
analytics.track_session_start(config)
|
|
154
|
+
assert uuid.UUID(config["telemetry_id"]).version == 4
|
|
155
|
+
assert len(sent) == 2
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def test_config_reports_effective_status_without_saving_a_preference(monkeypatch, capsys) -> None:
|
|
159
|
+
import dulus
|
|
160
|
+
|
|
161
|
+
def unexpected_save(settings):
|
|
162
|
+
pytest.fail("a read-only telemetry setting must not save the config")
|
|
163
|
+
|
|
164
|
+
monkeypatch.setattr(cfgmod, "save_config", unexpected_save)
|
|
165
|
+
config = {"telemetry": False}
|
|
166
|
+
for args in ("telemetry", "telemetry=off", "telemetry=on"):
|
|
167
|
+
assert dulus.cmd_config(args, None, config)
|
|
168
|
+
assert "always on" in capsys.readouterr().out
|
|
169
|
+
assert dulus.cmd_config("", None, config)
|
|
170
|
+
assert json.loads(capsys.readouterr().out)["telemetry"] is True
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
def test_offline_providers_do_not_interrupt_the_cli(monkeypatch, sent) -> None:
|
|
174
|
+
def offline(request, *, timeout):
|
|
175
|
+
sent.append(request)
|
|
176
|
+
raise OSError("offline")
|
|
177
|
+
|
|
178
|
+
monkeypatch.setattr(urllib.request, "urlopen", offline)
|
|
179
|
+
analytics.init_telemetry({})
|
|
180
|
+
analytics.track_tool_used("Read")
|
|
181
|
+
assert len(sent) == 2
|
|
@@ -21,13 +21,22 @@ openai = pytest.importorskip("openai")
|
|
|
21
21
|
QUOTA_MSG = "ResourceExhausted: Worker local total request limit reached (606/48)"
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
def _request():
|
|
25
|
+
"""A real request: openai 3.59 reads its headers, where older ones took None."""
|
|
26
|
+
try:
|
|
27
|
+
import httpx2 as client # openai 3.x
|
|
28
|
+
except ImportError:
|
|
29
|
+
import httpx as client
|
|
30
|
+
return client.Request("POST", "https://example.com/v1/chat/completions")
|
|
31
|
+
|
|
32
|
+
|
|
24
33
|
class _QuotaStream:
|
|
25
34
|
"""Stream whose first read raises, like the real SSE client does."""
|
|
26
35
|
def __iter__(self):
|
|
27
36
|
return self
|
|
28
37
|
|
|
29
38
|
def __next__(self):
|
|
30
|
-
raise openai.APIError(QUOTA_MSG, request=
|
|
39
|
+
raise openai.APIError(QUOTA_MSG, request=_request(), body=None)
|
|
31
40
|
|
|
32
41
|
|
|
33
42
|
class _FakeClient:
|
|
@@ -80,7 +80,9 @@ _DRIVER = textwrap.dedent(
|
|
|
80
80
|
import sys
|
|
81
81
|
sys.path.insert(0, {root!r})
|
|
82
82
|
import agent
|
|
83
|
+
import analytics
|
|
83
84
|
import tools
|
|
85
|
+
from unittest.mock import patch
|
|
84
86
|
from providers import AssistantTurn, TextChunk
|
|
85
87
|
|
|
86
88
|
turns = iter(["crash", "answer", "answer"])
|
|
@@ -110,7 +112,8 @@ _DRIVER = textwrap.dedent(
|
|
|
110
112
|
|
|
111
113
|
dulus.COMMANDS["cost"] = _broken_command
|
|
112
114
|
sys.argv = ["dulus"]
|
|
113
|
-
|
|
115
|
+
with patch.object(analytics, "track"):
|
|
116
|
+
dulus.main()
|
|
114
117
|
"""
|
|
115
118
|
)
|
|
116
119
|
|
|
@@ -128,7 +131,6 @@ def test_repl_survives_a_crashing_turn_and_command(tmp_path) -> None:
|
|
|
128
131
|
"verbose": False,
|
|
129
132
|
"mem_palace": False,
|
|
130
133
|
"sticky_input": False,
|
|
131
|
-
"telemetry": False,
|
|
132
134
|
"_ipc_disabled": True,
|
|
133
135
|
# The startup update check asks GitHub and, with no app build to offer,
|
|
134
136
|
# pip-upgrades the Python running the suite. Not in a test.
|