dulus 3.15.7__tar.gz → 3.15.8__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.7/dulus.egg-info → dulus-3.15.8}/PKG-INFO +1 -1
- {dulus-3.15.7 → dulus-3.15.8}/docs/CHANGELOG.md +6 -6
- {dulus-3.15.7 → dulus-3.15.8}/docs/FAQ.md +3 -3
- {dulus-3.15.7 → dulus-3.15.8}/docs/GETTING_STARTED.md +2 -2
- {dulus-3.15.7 → dulus-3.15.8}/docs/news.md +2 -1
- {dulus-3.15.7 → dulus-3.15.8/dulus.egg-info}/PKG-INFO +1 -1
- {dulus-3.15.7 → dulus-3.15.8}/dulus.egg-info/SOURCES.txt +3 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus.egg-info/top_level.txt +1 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus.py +31 -6
- {dulus-3.15.7 → dulus-3.15.8}/input.py +3 -3
- {dulus-3.15.7 → dulus-3.15.8}/providers.py +13 -27
- {dulus-3.15.7 → dulus-3.15.8}/pyproject.toml +2 -1
- dulus-3.15.8/retired_web.py +46 -0
- dulus-3.15.8/tests/test_retired_web_providers.py +164 -0
- dulus-3.15.8/ui/history.py +23 -0
- {dulus-3.15.7 → dulus-3.15.8}/ui/input.py +3 -3
- {dulus-3.15.7 → dulus-3.15.8}/welcome.py +5 -5
- {dulus-3.15.7 → dulus-3.15.8}/LICENSE +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/MANIFEST.in +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/README.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/agent.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/algolia_search.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/analytics.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/app_installer.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/agents_bridge.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/compressor.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/context.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/githook.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/marketplace.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/mempalace_bridge.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/paths.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/personas.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/plugins.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/server.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/session_utils.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/tasks.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/theme_pack.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/backend/themes.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/banners/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/banners/banner_rotator.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/banners/banners_dulus_ai.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/batch_api.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/checkpoint/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/checkpoint/hooks.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/checkpoint/store.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/checkpoint/types.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/__main__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/ansi.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/assets/ascii/dulus_logo.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/assets/ascii/eagle.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/assets/ascii/terminal_art.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/banners.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/demo.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/effects.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/effort_slider.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/progress.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/py.typed +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/spinners.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cli_animations/status.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/clipboard_utils.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/cloudsave.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/common.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/compaction.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/config.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/context.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/data/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/data/plugins/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/data/plugins/composio/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/data/plugins/composio/composio_plugin/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/data/plugins/composio/composio_plugin/session_manager.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/data/plugins/composio/composio_plugin/tool_generator.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/data/plugins/composio/plugin.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/data/plugins/composio/plugin_tool.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/display_blocks.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/API.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/APP_VS_OPEN_SOURCE.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/BRAND_GUIDE.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/CONTRIBUTING.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/DEPLOYMENT.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/SECURITY.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/architecture.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/dashboard/index.html +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/divider.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/dulus-bird.png +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/generate.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/nvidia-models.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/particle-playground.html +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/personas/index.html +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/preview.html +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/python-console.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/readme/dulus-os.png +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/readme/hero.png +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/readme/pyc_heap.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/readme/pyc_receipts.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/readme/pyc_trap.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/readme/task-board.png +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/readme/webchat.png +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-agents.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-brainstorm.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-bridges.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-features.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-freetier.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-memory.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-models.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-perms.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-plugins.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-quickstart.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/sec-ssj.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/spinners.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/split-pane.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/terminal-boot.svg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/docs/termux-edge.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus.egg-info/dependency_links.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus.egg-info/entry_points.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus.egg-info/requires.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_account.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_bar_client.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_mcp/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_mcp/client.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_mcp/commands.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_mcp/config.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_mcp/hub.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_mcp/tools.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_mcp/types.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_quick_menu.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/add_dir_manager.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/afk_mode.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/approval_runtime.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/background_tasks.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/clipboard_utils.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/diff_visualizer.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/export_import.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/hook_engine.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/isolate.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/notification_manager.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/session_fork.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/shell_mode.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/todo_visualizer.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/tree_ls.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/wire_events.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/dulus_tools/yolo_mode.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/file_filter.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/fs_compass.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/governance.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/license_manager.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/audit.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/consolidator.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/context.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/mempalace_bridge.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/offload.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/palace.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/scan.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/askuserquestion_after_numbered_list.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/background_jobs_no_extra_timers.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/cleverness_over_resources.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/corporate_tls_breaks_curl_cffi.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/hardened_rules.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/investigator_workflow_heuristic.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/native_code_over_sketchy_plugins.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/no_personal_info_in_code.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/searches_include_modified_date.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/tmux_send_keys_power_patterns.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/token_optimization_technique.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/tool_chaining_capability.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/insights/webbridge_evaluate_first_pattern.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/seeds/short_memory.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/sessions.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/store.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/tools.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/types.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/memory/vector_search.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/model_params.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/multi_agent/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/multi_agent/subagent.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/multi_agent/tools.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/paste_placeholders.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/personality_config.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/plugin/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/plugin/loader.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/plugin/recommend.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/plugin/store.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/plugin/types.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/profiles.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/pyconsole.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/setup.cfg +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/builtin.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/LICENSE-obsidian-skills +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/README.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/defuddle/SKILL.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/json-canvas/SKILL.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/json-canvas/references/EXAMPLES.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/obsidian-bases/SKILL.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/obsidian-bases/references/FUNCTIONS_REFERENCE.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/obsidian-cli/SKILL.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/obsidian-markdown/SKILL.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/obsidian-markdown/references/CALLOUTS.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/obsidian-markdown/references/EMBEDS.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/obsidian-markdown/references/PROPERTIES.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/README.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/SKILL.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/addresses.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/advancedbackgroundchecks.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/beenverified.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/clustal.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/clustrmaps.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/cyberbackgroundchecks.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/familytreenow.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/fastpeoplesearch.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/intelius.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/mylife.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/nuwber.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/peekyou.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/peoplefinders.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/radaris.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/rehold.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/searchpeoplefree.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/socialcatfish.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/spokeo.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/thatsthem.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/truepeoplesearch.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/usphonebook.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/brokers/whitepages.json +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/legal/ccpa.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/legal/drop.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/legal/gdpr.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/methods.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/site-playbooks.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/references/state-machine.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/autopilot.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/badbool.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/brokers.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/cdp.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/config.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/crypto.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/dossier.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/email_modes.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/emailer.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/ledger.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/legal.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/paths.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/pdd.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/registry.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/report.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/scan.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/storage.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/tiers.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/scripts/vectors.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/templates/consent/authorization.md +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/templates/emails/ccpa-authorized-agent.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/templates/emails/ccpa-deletion.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/templates/emails/ccpa-indirect-deletion.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/templates/emails/gdpr-erasure.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/bundled/unbroker/templates/emails/generic-optout.txt +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/clawhub.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/executor.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/loader.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skill/tools.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/skills.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/soul.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/spinner.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/steer_input.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/subagent.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/task/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/task/store.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/task/tools.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/task/types.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_afk_yolo.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_agent_tool_inputs.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_analytics.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_app_installer.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_approval_runtime.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_background_task_tools.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_background_tasks.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_chatgpt_oauth.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_checkpoint.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_cli_animations_integration.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_clipboard_utils.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_compaction.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_compaction_failures.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_composio_tool_generator.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_diff_view.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_diff_visualization.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_display_blocks.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_dulus_account.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_empty_assistant_turn.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_export_import.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_grok_usage.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_headless_login.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_hook_engine.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_injection_fix.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_interruptible_stream.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_json_protocol.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_license.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_login_gate.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_mcp.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_mcp_algolia.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_memory.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_memory_home_resolution.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_news_radio.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_notification_manager.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_persistence_safety.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_plugin.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_profile_isolation.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_profile_plugin_scope.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_provider_errors.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_provider_stability.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_public_surface.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_repl_resilience.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_sentry_reporting.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_session_fork.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_shell_detection.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_shell_mode.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_skills.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_skillssh_algolia.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_steer_input.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_streamed_tool_names.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_subagent.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_task.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_telegram_buffer.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_think_tool.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_todo_tool.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_todo_visualization.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_tool_registry.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_tool_safety.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_tree_ls.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_voice.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_webbridge_tabs.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tests/test_wire_events.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tmux_tools.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/token_budget.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tool_registry.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tools.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tools_background.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tools_think.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/tools_todo.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/ui/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/ui/render.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/updater.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/voice/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/voice/audio_utils.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/voice/keyterms.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/voice/recorder.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/voice/stt.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/voice/tts.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/voice/wake_word.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/webbridge/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/webbridge/core.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/webbridge/tools.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/webchat.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/webchat_server.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/webchat_ui/__init__.py +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/webchat_ui/app.js +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/webchat_ui/index.html +0 -0
- {dulus-3.15.7 → dulus-3.15.8}/webchat_ui/style.css +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: dulus
|
|
3
|
-
Version: 3.15.
|
|
3
|
+
Version: 3.15.8
|
|
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>
|
|
@@ -32,18 +32,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
32
32
|
option that runs the OAuth sign-in; the returning-user tip now points at
|
|
33
33
|
`/login dulus` or `/config <provider>_api_key=…`.
|
|
34
34
|
- Supported no-API-key routes are now the Dulus router plus subscription OAuth
|
|
35
|
-
(`/login claude`, `/login chatgpt`, `/login kimi`, `/login grok`)
|
|
36
|
-
|
|
35
|
+
(`/login claude`, `/login chatgpt`, `/login kimi`, `/login grok`) and
|
|
36
|
+
local Ollama / LM Studio / `edge`. NVIDIA NIM uses your `NVIDIA_API_KEY`.
|
|
37
37
|
|
|
38
38
|
### Fixed
|
|
39
39
|
- `config.py` declared `license_key` twice in `DEFAULTS`; removed the duplicate.
|
|
40
40
|
- Regenerated `docs/api.html`, which was stale well before this change.
|
|
41
41
|
|
|
42
42
|
### Migration
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
After updating public Dulus, a saved browser-session model stops before any
|
|
44
|
+
provider request, even if the old cookies or a valid API key are present.
|
|
45
|
+
You can resume the conversation and choose a supported model with `/model`.
|
|
46
|
+
For Fuel-metered inference, run `/login dulus` and `/model dulus/dulus-b-27b`.
|
|
47
47
|
|
|
48
48
|
## 3.13.9 — 2026-09-01
|
|
49
49
|
|
|
@@ -30,7 +30,7 @@ $DULUS is a utility token on Solana that powers the Dulus business layer (cloud
|
|
|
30
30
|
|
|
31
31
|
- **11 native providers:** Anthropic, OpenAI, Gemini, DeepSeek, Qwen, Kimi, Zhipu, MiniMax, Ollama, LM Studio, Custom
|
|
32
32
|
- **100+ via LiteLLM:** OpenRouter, Groq, Together, Bedrock, Vertex, Mistral, xAI, Fireworks, Azure, and more
|
|
33
|
-
-
|
|
33
|
+
- The Dulus router uses Fuel. Claude, ChatGPT, Kimi and Grok use your subscription via OAuth. Ollama runs locally. NVIDIA NIM requires your own `NVIDIA_API_KEY`.
|
|
34
34
|
|
|
35
35
|
### Does Dulus work offline?
|
|
36
36
|
|
|
@@ -129,7 +129,7 @@ The token is the fuel layer for the Dulus business layer. The open-source REPL s
|
|
|
129
129
|
|
|
130
130
|
### Is the token required to use Dulus?
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
You can use the open-source REPL with your own provider credentials or a local model. Dulus-hosted inference is metered in Fuel.
|
|
133
133
|
|
|
134
134
|
### Contract address?
|
|
135
135
|
|
|
@@ -202,7 +202,7 @@ Dulus es tu companero de IA — un agente autonomo en Python que se conecta a cu
|
|
|
202
202
|
|
|
203
203
|
- **11 proveedores nativos:** Anthropic, OpenAI, Gemini, DeepSeek, Qwen, Kimi, Zhipu, MiniMax, Ollama, LM Studio, Custom
|
|
204
204
|
- **100+ via LiteLLM:** OpenRouter, Groq, Together, Bedrock, Vertex, Mistral, xAI, y mas
|
|
205
|
-
-
|
|
205
|
+
- El router de Dulus consume Fuel. Claude, ChatGPT, Kimi y Grok usan tu suscripción mediante OAuth. Ollama funciona en tu equipo. NVIDIA NIM requiere tu propia `NVIDIA_API_KEY`.
|
|
206
206
|
|
|
207
207
|
### Como funciona el login por suscripcion?
|
|
208
208
|
|
|
@@ -124,7 +124,7 @@ How should I call you? [amigo]
|
|
|
124
124
|
Que proveedor queres usar de entrada?
|
|
125
125
|
1. Dulus account (hosted models, Fuel-metered)
|
|
126
126
|
2. Ollama (local, free)
|
|
127
|
-
3. NVIDIA NIM (
|
|
127
|
+
3. NVIDIA NIM (your API key)
|
|
128
128
|
4. Anthropic Claude
|
|
129
129
|
5. Kimi for Coding
|
|
130
130
|
6. Moonshot Kimi K2
|
|
@@ -184,7 +184,7 @@ cat error.log | dulus -p "what caused this error"
|
|
|
184
184
|
/model # show current
|
|
185
185
|
/model gpt-4o # switch to OpenAI
|
|
186
186
|
/model ollama/llama3.3 # switch to local
|
|
187
|
-
/model nvidia-web/deepseek-r1 #
|
|
187
|
+
/model nvidia-web/deepseek-ai/deepseek-r1 # uses your NVIDIA_API_KEY
|
|
188
188
|
```
|
|
189
189
|
|
|
190
190
|
### Use Memory
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## 🔥🔥🔥 News (Pacific Time)
|
|
4
4
|
|
|
5
|
-
- November
|
|
5
|
+
- November 25, 2026 (**🔒 v3.15.8 — retired browser sessions stay retired**): **Public Dulus no longer runs the retired browser-session (Harvest) providers.** A config or saved conversation still pinned to one of those models now stops before any provider request, even when old cookies or a valid API key are present, instead of quietly routing somewhere else. Your history is intact: resume it and pick a supported model with `/model`, or run `/login dulus` and `/model dulus/dulus-b-27b` for Fuel-metered inference. `pip install -U dulus`. 🦅
|
|
6
|
+
- 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. `pip install -U dulus`. 🦅
|
|
6
7
|
- 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`. 🦅
|
|
7
8
|
|
|
8
9
|
- 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`. 🦅
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: dulus
|
|
3
|
-
Version: 3.15.
|
|
3
|
+
Version: 3.15.8
|
|
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>
|
|
@@ -29,6 +29,7 @@ profiles.py
|
|
|
29
29
|
providers.py
|
|
30
30
|
pyconsole.py
|
|
31
31
|
pyproject.toml
|
|
32
|
+
retired_web.py
|
|
32
33
|
skills.py
|
|
33
34
|
soul.py
|
|
34
35
|
spinner.py
|
|
@@ -316,6 +317,7 @@ tests/test_provider_errors.py
|
|
|
316
317
|
tests/test_provider_stability.py
|
|
317
318
|
tests/test_public_surface.py
|
|
318
319
|
tests/test_repl_resilience.py
|
|
320
|
+
tests/test_retired_web_providers.py
|
|
319
321
|
tests/test_sentry_reporting.py
|
|
320
322
|
tests/test_session_fork.py
|
|
321
323
|
tests/test_shell_detection.py
|
|
@@ -337,6 +339,7 @@ tests/test_voice.py
|
|
|
337
339
|
tests/test_webbridge_tabs.py
|
|
338
340
|
tests/test_wire_events.py
|
|
339
341
|
ui/__init__.py
|
|
342
|
+
ui/history.py
|
|
340
343
|
ui/input.py
|
|
341
344
|
ui/render.py
|
|
342
345
|
voice/__init__.py
|
|
@@ -257,6 +257,8 @@ from datetime import datetime
|
|
|
257
257
|
from pathlib import Path
|
|
258
258
|
from typing import Optional, Union, Any, Callable
|
|
259
259
|
|
|
260
|
+
from retired_web import retired_command_error, retired_provider_message, retired_web_provider
|
|
261
|
+
|
|
260
262
|
if sys.platform == "win32":
|
|
261
263
|
os.system("") # Enable ANSI escape codes on Windows CMD
|
|
262
264
|
# IDLE wraps stdout/stderr in StdOutputFile which lacks .reconfigure —
|
|
@@ -311,7 +313,7 @@ try:
|
|
|
311
313
|
from importlib.metadata import version as _pkg_version
|
|
312
314
|
VERSION = _pkg_version("dulus")
|
|
313
315
|
except Exception:
|
|
314
|
-
VERSION = "3.15.
|
|
316
|
+
VERSION = "3.15.8" # dev fallback — keep in sync with pyproject.toml
|
|
315
317
|
|
|
316
318
|
# ── Sentry error tracking (optional — graceful degradation if not installed) ─
|
|
317
319
|
# Off-switch for demos/privacy: set DULUS_NO_SENTRY=1 (or SENTRY_DSN="") to skip.
|
|
@@ -1346,8 +1348,11 @@ def cmd_model(args: str, _state, config) -> bool:
|
|
|
1346
1348
|
while len(_seg) >= 2 and _seg[0] == _seg[1] and _seg[0] in PROVIDERS:
|
|
1347
1349
|
_seg.pop(1)
|
|
1348
1350
|
m = "/".join(_seg)
|
|
1349
|
-
config["model"] = m
|
|
1350
1351
|
pname = detect_provider(m)
|
|
1352
|
+
if pname not in PROVIDERS:
|
|
1353
|
+
err(retired_provider_message(pname), report=False)
|
|
1354
|
+
return True
|
|
1355
|
+
config["model"] = m
|
|
1351
1356
|
ok(f"Model set to {m} (provider: {pname})")
|
|
1352
1357
|
from config import save_config
|
|
1353
1358
|
save_config(config)
|
|
@@ -1671,7 +1676,7 @@ def _print_login_nag(config: dict) -> None:
|
|
|
1671
1676
|
print(" " + clr("TODAY", "yellow", "bold")
|
|
1672
1677
|
+ ": " + clr("Qwen UNCENSORED", "cyan", "bold")
|
|
1673
1678
|
+ " drops on our endpoint. Stock Fuel now.")
|
|
1674
|
-
print(clr("
|
|
1679
|
+
print(clr(" You can also use your own provider credentials or a local model.", "dim"))
|
|
1675
1680
|
print()
|
|
1676
1681
|
print(" Buy $DULUS now:")
|
|
1677
1682
|
print(f" {styled_dx_url}")
|
|
@@ -1798,6 +1803,9 @@ def cmd_config(args: str, _state, config) -> bool:
|
|
|
1798
1803
|
elif "=" in args:
|
|
1799
1804
|
key, _, val = args.partition("=")
|
|
1800
1805
|
key, val = key.strip(), val.strip()
|
|
1806
|
+
if key == "model" and (removed := retired_web_provider(val)):
|
|
1807
|
+
err(retired_provider_message(removed), report=False)
|
|
1808
|
+
return True
|
|
1801
1809
|
# Type coercion
|
|
1802
1810
|
if val.lower() in ("true", "false"):
|
|
1803
1811
|
val = val.lower() == "true"
|
|
@@ -9903,7 +9911,9 @@ def cmd_doctor(args: str, state, config) -> bool:
|
|
|
9903
9911
|
provider = detect_provider(model)
|
|
9904
9912
|
key = get_api_key(provider, config)
|
|
9905
9913
|
|
|
9906
|
-
if
|
|
9914
|
+
if provider not in PROVIDERS:
|
|
9915
|
+
fail(retired_provider_message(provider))
|
|
9916
|
+
elif key:
|
|
9907
9917
|
ok(f"API key for {provider}: set ({key[:4]}...{key[-4:]})")
|
|
9908
9918
|
elif provider in ("ollama", "lmstudio"):
|
|
9909
9919
|
ok(f"Provider {provider}: no key needed (local)")
|
|
@@ -10802,6 +10812,11 @@ def handle_slash(line: str, state, config, *, raise_errors: bool = False) -> Uni
|
|
|
10802
10812
|
return result
|
|
10803
10813
|
return True
|
|
10804
10814
|
|
|
10815
|
+
# An old trigger stored in a user's skills must not revive a retired command.
|
|
10816
|
+
if reason := retired_command_error(line):
|
|
10817
|
+
err(reason, report=False)
|
|
10818
|
+
return True
|
|
10819
|
+
|
|
10805
10820
|
# Fall through to skill lookup
|
|
10806
10821
|
from skill import find_skill
|
|
10807
10822
|
skill = find_skill(line)
|
|
@@ -13625,7 +13640,10 @@ def main():
|
|
|
13625
13640
|
|
|
13626
13641
|
print(clr(f"\n [Dulus Command] Executing: {cmd_str}", "cyan", "bold"))
|
|
13627
13642
|
|
|
13628
|
-
|
|
13643
|
+
if reason := retired_command_error(cmd_str):
|
|
13644
|
+
_emit_error(reason)
|
|
13645
|
+
err(reason, report=False)
|
|
13646
|
+
sys.exit(1)
|
|
13629
13647
|
result = handle_slash(cmd_str, state, config, raise_errors=True)
|
|
13630
13648
|
|
|
13631
13649
|
# Check if command returned a tuple (skill execution request)
|
|
@@ -13710,7 +13728,14 @@ def main():
|
|
|
13710
13728
|
config["_cli_soul"] = args.soul
|
|
13711
13729
|
|
|
13712
13730
|
# Check API key for active provider (warn only, don't block local providers)
|
|
13713
|
-
if
|
|
13731
|
+
if removed := retired_web_provider(config["model"]):
|
|
13732
|
+
message = retired_provider_message(removed)
|
|
13733
|
+
if args.model or args.prompt or args.print_mode or _protocol_enabled():
|
|
13734
|
+
_emit_error(message)
|
|
13735
|
+
err(message, report=False)
|
|
13736
|
+
sys.exit(1)
|
|
13737
|
+
warn(message)
|
|
13738
|
+
elif not has_api_key(config):
|
|
13714
13739
|
pname = detect_provider(config["model"])
|
|
13715
13740
|
prov = PROVIDERS.get(pname, {})
|
|
13716
13741
|
env = prov.get("api_key_env", "")
|
|
@@ -18,7 +18,6 @@ from typing import Any, Callable, Optional
|
|
|
18
18
|
|
|
19
19
|
try:
|
|
20
20
|
from prompt_toolkit import PromptSession, Application
|
|
21
|
-
from prompt_toolkit.auto_suggest import AutoSuggestFromHistory
|
|
22
21
|
from prompt_toolkit.completion import (
|
|
23
22
|
Completer, Completion, FuzzyCompleter, WordCompleter, merge_completers,
|
|
24
23
|
)
|
|
@@ -30,6 +29,7 @@ try:
|
|
|
30
29
|
from prompt_toolkit.patch_stdout import patch_stdout
|
|
31
30
|
from prompt_toolkit.styles import Style
|
|
32
31
|
from prompt_toolkit.enums import EditingMode
|
|
32
|
+
from ui.history import DulusHistorySuggest
|
|
33
33
|
HAS_PROMPT_TOOLKIT = True
|
|
34
34
|
except ImportError:
|
|
35
35
|
HAS_PROMPT_TOOLKIT = False
|
|
@@ -407,7 +407,7 @@ def _build_session(history_path: Optional[Path]):
|
|
|
407
407
|
return PromptSession(
|
|
408
408
|
history=history,
|
|
409
409
|
completer=completer,
|
|
410
|
-
auto_suggest=
|
|
410
|
+
auto_suggest=DulusHistorySuggest(),
|
|
411
411
|
complete_while_typing=True,
|
|
412
412
|
enable_history_search=False,
|
|
413
413
|
mouse_support=False,
|
|
@@ -695,7 +695,7 @@ def read_line_split(prompt: str = "> ", history_path: Optional[Path] = None) ->
|
|
|
695
695
|
_split_buffer = Buffer(
|
|
696
696
|
history=history,
|
|
697
697
|
completer=completer,
|
|
698
|
-
auto_suggest=
|
|
698
|
+
auto_suggest=DulusHistorySuggest(),
|
|
699
699
|
complete_while_typing=True,
|
|
700
700
|
enable_history_search=False,
|
|
701
701
|
multiline=False,
|
|
@@ -41,6 +41,8 @@ import uuid
|
|
|
41
41
|
from types import SimpleNamespace
|
|
42
42
|
from typing import Generator, Any, Callable, Iterable, cast
|
|
43
43
|
|
|
44
|
+
from retired_web import retired_provider_message, retired_web_provider
|
|
45
|
+
|
|
44
46
|
|
|
45
47
|
# ── TLS: trust the OS certificate store ──────────────────────────────────
|
|
46
48
|
# Cloudflare WARP / Cloudflare One does TLS inspection with its own root CA,
|
|
@@ -1008,6 +1010,8 @@ _PREFIXES = [
|
|
|
1008
1010
|
def detect_provider(model: str) -> str:
|
|
1009
1011
|
"""Return provider name for a model string.
|
|
1010
1012
|
Supports 'provider/model' explicit format, or auto-detect by prefix."""
|
|
1013
|
+
if removed := retired_web_provider(model):
|
|
1014
|
+
return removed
|
|
1011
1015
|
if "/" in model:
|
|
1012
1016
|
p = model.split("/", 1)[0]
|
|
1013
1017
|
if p in PROVIDERS:
|
|
@@ -1031,12 +1035,7 @@ XAI_OAUTH_BASE_URL = "https://api.x.ai/v1"
|
|
|
1031
1035
|
|
|
1032
1036
|
|
|
1033
1037
|
def _load_grok_build_session_token() -> str | None:
|
|
1034
|
-
"""Load the
|
|
1035
|
-
Stored in ~/.grok/auth.json after `grok login` (or when you launched this session).
|
|
1036
|
-
This is THE auth the official `grok` / Grok Build CLI uses — same OAuth client_id,
|
|
1037
|
-
same backend. Using it directly is 100x more reliable than Playwright harvest.
|
|
1038
|
-
"grok build y ya".
|
|
1039
|
-
"""
|
|
1038
|
+
"""Load the official Grok CLI token saved by `grok login`."""
|
|
1040
1039
|
import json
|
|
1041
1040
|
import os
|
|
1042
1041
|
import pathlib
|
|
@@ -1050,7 +1049,6 @@ def _load_grok_build_session_token() -> str | None:
|
|
|
1050
1049
|
try:
|
|
1051
1050
|
data = json.loads(auth_path.read_text())
|
|
1052
1051
|
# The key is usually "https://auth.x.ai::b1a00492-073a-47ea-816f-4c329264a828"
|
|
1053
|
-
# (exact same client_id we had hardcoded for the harvest flow)
|
|
1054
1052
|
for entry in data.values():
|
|
1055
1053
|
if isinstance(entry, dict):
|
|
1056
1054
|
key = entry.get("key")
|
|
@@ -1065,16 +1063,6 @@ def _load_grok_build_session_token() -> str | None:
|
|
|
1065
1063
|
return None
|
|
1066
1064
|
|
|
1067
1065
|
|
|
1068
|
-
# NOTE: The old Playwright browser harvest for Grok (/login grok with _xai_oauth_login)
|
|
1069
|
-
# has been completely removed for cleanliness.
|
|
1070
|
-
# The only supported ways to authenticate Grok models are now:
|
|
1071
|
-
# - Official Grok Build TUI (`grok login`) → ~/.grok/auth.json (preferred)
|
|
1072
|
-
# - Direct XAI_API_KEY
|
|
1073
|
-
#
|
|
1074
|
-
# If you want the old harvest behavior you can keep a copy of the previous providers.py
|
|
1075
|
-
# or implement it yourself. We no longer maintain it here.
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
1066
|
# ── Native OAuth 2.0 + PKCE login (no browser automation, no `grok` binary) ──
|
|
1079
1067
|
# Implements the exact Authorization-Code + PKCE flow the official Grok CLI uses
|
|
1080
1068
|
# against auth.x.ai. Opens the system browser, captures the code on the loopback
|
|
@@ -3123,14 +3111,9 @@ def stream_xai_oauth(
|
|
|
3123
3111
|
messages: list,
|
|
3124
3112
|
tool_schemas: list,
|
|
3125
3113
|
config: dict,
|
|
3126
|
-
_auth_path: str | None = None, #
|
|
3114
|
+
_auth_path: str | None = None, # retained for callers using the old signature
|
|
3127
3115
|
) -> Generator:
|
|
3128
|
-
"""Stream from xAI
|
|
3129
|
-
or a direct XAI_API_KEY.
|
|
3130
|
-
|
|
3131
|
-
The old Playwright browser harvest for Grok has been removed for cleanliness.
|
|
3132
|
-
We source the token exclusively via _load_grok_build_session_token() + XAI_API_KEY.
|
|
3133
|
-
"""
|
|
3116
|
+
"""Stream from xAI using Grok CLI credentials, Dulus OAuth or XAI_API_KEY."""
|
|
3134
3117
|
import requests as _req
|
|
3135
3118
|
|
|
3136
3119
|
# Now that Dulus uses the official Grok Build TUI session (grok login),
|
|
@@ -3146,7 +3129,6 @@ def stream_xai_oauth(
|
|
|
3146
3129
|
|
|
3147
3130
|
# Clean session + headers for official Grok Build TUI session token
|
|
3148
3131
|
# or direct XAI_API_KEY fallback.
|
|
3149
|
-
# The old Playwright harvest flow for xAI/Grok has been removed.
|
|
3150
3132
|
session = _req.Session()
|
|
3151
3133
|
|
|
3152
3134
|
# Present as the official Grok CLI client. We're reusing the Grok Build TUI
|
|
@@ -3411,6 +3393,8 @@ def bare_model(model: str) -> str:
|
|
|
3411
3393
|
|
|
3412
3394
|
|
|
3413
3395
|
def get_api_key(provider_name: str, config: dict) -> str:
|
|
3396
|
+
if retired_web_provider(provider_name):
|
|
3397
|
+
return ""
|
|
3414
3398
|
# moonshot is an alias for kimi (same API backend and credentials)
|
|
3415
3399
|
if provider_name == "moonshot":
|
|
3416
3400
|
provider_name = "kimi"
|
|
@@ -6215,8 +6199,11 @@ def stream(
|
|
|
6215
6199
|
failures (timeouts, 429 rate-limit, 5xx server errors).
|
|
6216
6200
|
"""
|
|
6217
6201
|
provider_name = detect_provider(model)
|
|
6202
|
+
prov = PROVIDERS.get(provider_name)
|
|
6203
|
+
if prov is None:
|
|
6204
|
+
yield from _config_error_turn(retired_provider_message(provider_name))
|
|
6205
|
+
return
|
|
6218
6206
|
model_name = bare_model(model)
|
|
6219
|
-
prov = PROVIDERS.get(provider_name, PROVIDERS["openai"])
|
|
6220
6207
|
api_key = get_api_key(provider_name, config)
|
|
6221
6208
|
|
|
6222
6209
|
def _inner_stream() -> Generator:
|
|
@@ -6230,7 +6217,6 @@ def stream(
|
|
|
6230
6217
|
yield from stream_dulus_account(model_name, system, messages, tool_schemas, config)
|
|
6231
6218
|
elif prov["type"] == "xai-oauth":
|
|
6232
6219
|
# Official Grok Build TUI session (`grok login` → ~/.grok/auth.json) or XAI_API_KEY.
|
|
6233
|
-
# No separate harvest file is used (old Playwright harvest for Grok was removed).
|
|
6234
6220
|
yield from stream_xai_oauth(model_name, system, messages, tool_schemas, config)
|
|
6235
6221
|
elif prov["type"] == "chatgpt-oauth":
|
|
6236
6222
|
# ChatGPT/Codex subscription OAuth (`/login chatgpt` or ~/.codex/auth.json)
|
|
@@ -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.8"
|
|
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"
|
|
@@ -214,6 +214,7 @@ py-modules = [
|
|
|
214
214
|
"personality_config",
|
|
215
215
|
"profiles",
|
|
216
216
|
"providers",
|
|
217
|
+
"retired_web",
|
|
217
218
|
"pyconsole",
|
|
218
219
|
"skills",
|
|
219
220
|
"soul",
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Recognize browser-session selectors and commands saved by older public Dulus releases."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
_RETIRED_WEB_PROVIDERS = {
|
|
5
|
+
"claude-code", "claude-web", "deepseek-web", "gemini-web", "kimi-web", "qwen-web",
|
|
6
|
+
}
|
|
7
|
+
_RETIRED_COMMANDS = {
|
|
8
|
+
"/harvest", "/harvest-claude", "/claude-harvest", "/harvest-kimi",
|
|
9
|
+
"/harvest-gemini", "/gemini-harvest", "/harvest-deepseek", "/deepseek-harvest",
|
|
10
|
+
"/harvest-qwen", "/qwen-harvest", "/claude-chats", "/gemini-chats", "/kimi-chats",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def retired_web_provider(model: str) -> str | None:
|
|
15
|
+
"""Recognize old browser-session selectors before model-family auto-detection."""
|
|
16
|
+
namespace = model.partition("/")[0].partition(":")[0].strip().lower().replace("_", "-")
|
|
17
|
+
return namespace if namespace in _RETIRED_WEB_PROVIDERS else None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def retired_provider_message(provider: str) -> str:
|
|
21
|
+
return (
|
|
22
|
+
f"The '{provider}' browser-session provider was removed from public Dulus. "
|
|
23
|
+
"For Fuel-metered models, run /login dulus and /model dulus/dulus-b-27b. "
|
|
24
|
+
"Use /model to select your own provider."
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def retired_command_error(line: str) -> str | None:
|
|
29
|
+
"""Identify removed slash commands or an attempt to select a retired provider."""
|
|
30
|
+
parts = line.split(maxsplit=1)
|
|
31
|
+
if not parts:
|
|
32
|
+
return None
|
|
33
|
+
command = parts[0].lower().replace("_", "-")
|
|
34
|
+
if command in _RETIRED_COMMANDS:
|
|
35
|
+
return f"Unknown command: {parts[0]} (type /help for commands)"
|
|
36
|
+
if len(parts) == 2:
|
|
37
|
+
value = parts[1]
|
|
38
|
+
if command == "/config":
|
|
39
|
+
key, _, value = value.partition("=")
|
|
40
|
+
if key.strip() != "model":
|
|
41
|
+
return None
|
|
42
|
+
elif command != "/model":
|
|
43
|
+
return None
|
|
44
|
+
if removed := retired_web_provider(value):
|
|
45
|
+
return retired_provider_message(removed)
|
|
46
|
+
return None
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"""Upgraded public installs must never route a saved browser session to another provider."""
|
|
2
|
+
import json
|
|
3
|
+
import os
|
|
4
|
+
import subprocess
|
|
5
|
+
import sys
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
import pytest
|
|
10
|
+
from prompt_toolkit.application import create_app_session
|
|
11
|
+
from prompt_toolkit.completion import CompleteEvent
|
|
12
|
+
from prompt_toolkit.document import Document
|
|
13
|
+
from prompt_toolkit.history import FileHistory
|
|
14
|
+
from prompt_toolkit.input import DummyInput
|
|
15
|
+
from prompt_toolkit.output import DummyOutput
|
|
16
|
+
|
|
17
|
+
import config
|
|
18
|
+
import dulus
|
|
19
|
+
import providers
|
|
20
|
+
from agent import AgentState
|
|
21
|
+
from input import SlashCompleter
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@pytest.mark.parametrize(("provider", "model"), [
|
|
25
|
+
("claude-web", "claude-web/claude-sonnet-4-6"),
|
|
26
|
+
("claude-code", "claude-code/claude-opus-4-6"),
|
|
27
|
+
("deepseek-web", "deepseek-web/deepseek-r1"),
|
|
28
|
+
("gemini-web", "gemini-web/gemini-latest"),
|
|
29
|
+
("kimi-web", "kimi-web/kimi-latest"),
|
|
30
|
+
("qwen-web", "qwen-web/qwen-plus"),
|
|
31
|
+
("gemini-web", "GEMINI_WEB:gemini-latest"),
|
|
32
|
+
("claude-web", "claude-web"),
|
|
33
|
+
])
|
|
34
|
+
def test_retired_models_stop_before_credentials(provider, model, monkeypatch):
|
|
35
|
+
assert providers.detect_provider(model) == provider
|
|
36
|
+
assert provider not in providers.PROVIDERS
|
|
37
|
+
assert not providers.get_api_key(provider, {f"{provider}_api_key": "old"})
|
|
38
|
+
monkeypatch.setattr(providers, "get_api_key", lambda *_: pytest.fail("looked up credentials"))
|
|
39
|
+
events = list(providers.stream(model, "", [], [], {}))
|
|
40
|
+
assert len(events) == 2
|
|
41
|
+
chunk, turn = events
|
|
42
|
+
assert isinstance(chunk, providers.TextChunk)
|
|
43
|
+
assert isinstance(turn, providers.AssistantTurn) and turn.error
|
|
44
|
+
assert provider in chunk.text
|
|
45
|
+
assert chunk.text == turn.text
|
|
46
|
+
assert "/model" in turn.text
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@pytest.mark.parametrize(("model", "provider"), [
|
|
50
|
+
("nvidia-web/meta/llama-3.3-70b-instruct", "nvidia-web"),
|
|
51
|
+
("kimi-code/k3", "kimi-code"),
|
|
52
|
+
("custom/claude-code", "custom"),
|
|
53
|
+
])
|
|
54
|
+
def test_other_provider_names_remain_selectable(model, provider):
|
|
55
|
+
assert providers.detect_provider(model) == provider
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def test_resume_keeps_transcript_and_requires_explicit_model_change(tmp_path, monkeypatch):
|
|
59
|
+
config_file = tmp_path / "config.json"
|
|
60
|
+
monkeypatch.setattr(config, "CONFIG_FILE", config_file)
|
|
61
|
+
auth = tmp_path / "gemini_web.json"
|
|
62
|
+
auth.write_text('{"cookies": {"SID": "old-session"}}', encoding="utf-8")
|
|
63
|
+
config_file.write_text(json.dumps({
|
|
64
|
+
"model": "gemini-web/gemini-latest", "gemini_web_auth_path": str(auth),
|
|
65
|
+
"pending_first_run_harvest": "gemini", "gemini_api_key": "own-key",
|
|
66
|
+
}), encoding="utf-8")
|
|
67
|
+
saved = tmp_path / "session_latest.json"
|
|
68
|
+
messages = [{"role": "user", "content": "earlier question"}]
|
|
69
|
+
saved.write_text(json.dumps({"messages": messages, "turn_count": 1}), encoding="utf-8")
|
|
70
|
+
monkeypatch.setattr(config, "SESSIONS_DIR", tmp_path)
|
|
71
|
+
cfg = config.load_config()
|
|
72
|
+
state = AgentState()
|
|
73
|
+
dulus.cmd_resume("", state, cfg)
|
|
74
|
+
assert state.messages == messages
|
|
75
|
+
|
|
76
|
+
calls = []
|
|
77
|
+
|
|
78
|
+
def record_request(*args):
|
|
79
|
+
calls.append(args)
|
|
80
|
+
return ()
|
|
81
|
+
|
|
82
|
+
monkeypatch.setattr(providers, "stream_openai_compat", record_request)
|
|
83
|
+
assert list(providers.stream(cfg["model"], "", state.messages, [], cfg))[-1].error
|
|
84
|
+
assert calls == []
|
|
85
|
+
|
|
86
|
+
dulus.cmd_model("gemini/gemini-2.0-flash", state, cfg)
|
|
87
|
+
list(providers.stream(cfg["model"], "", state.messages, [], cfg))
|
|
88
|
+
assert len(calls) == 1
|
|
89
|
+
assert calls[0][:3] == (
|
|
90
|
+
"own-key", providers.PROVIDERS["gemini"]["base_url"], "gemini-2.0-flash",
|
|
91
|
+
)
|
|
92
|
+
assert calls[0][4] == messages
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
@pytest.mark.parametrize("command", ["/model claude-code:opus", "/config model=claude-web/opus"])
|
|
96
|
+
def test_rejected_selection_keeps_current_model(command, monkeypatch, capsys):
|
|
97
|
+
cfg = {"model": "dulus/dulus-b-27b"}
|
|
98
|
+
monkeypatch.setattr(config, "save_config", lambda *_: pytest.fail("saved a removed provider"))
|
|
99
|
+
assert dulus.handle_slash(command, None, cfg)
|
|
100
|
+
assert cfg["model"] == "dulus/dulus-b-27b"
|
|
101
|
+
assert "/login dulus" in capsys.readouterr().err
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
@pytest.mark.parametrize(("args", "expected"), [
|
|
105
|
+
(["--cmd", "harvest-gemini"], "Unknown command"),
|
|
106
|
+
(["-p", "hello"], "gemini-web"),
|
|
107
|
+
(["--model", "claude-code:opus", "-p", "hello"], "claude-code"),
|
|
108
|
+
])
|
|
109
|
+
def test_one_shot_reports_error_for_removed_commands_and_saved_models(args, expected, tmp_path):
|
|
110
|
+
(tmp_path / "config.json").write_text(json.dumps({
|
|
111
|
+
"model": "gemini-web/gemini-latest", "telemetry": False,
|
|
112
|
+
}), encoding="utf-8")
|
|
113
|
+
env = dict(os.environ, DULUS_CONFIG_DIR=str(tmp_path), DULUS_HOME=str(tmp_path),
|
|
114
|
+
DULUS_API_KEY="dulus_sk_" + "x" * 32)
|
|
115
|
+
run = subprocess.run(
|
|
116
|
+
[sys.executable, "-m", "dulus", "--output", "json", *args],
|
|
117
|
+
cwd=Path(dulus.__file__).parent, env=env, capture_output=True, encoding="utf-8", timeout=20,
|
|
118
|
+
)
|
|
119
|
+
assert run.returncode == 1
|
|
120
|
+
frame = json.loads(run.stdout)
|
|
121
|
+
assert frame["type"] == "error" and expected in frame["message"]
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def test_harvest_commands_are_absent_from_help_dispatch_and_completions(capsys):
|
|
125
|
+
dulus.cmd_help("", None, {})
|
|
126
|
+
help_text = (dulus.__doc__ + capsys.readouterr().out).lower()
|
|
127
|
+
completer = SlashCompleter(lambda: dulus.COMMANDS, lambda: dulus._CMD_META)
|
|
128
|
+
suggestions = {item.text for item in completer.get_completions(Document("/"), CompleteEvent())}
|
|
129
|
+
assert "/model" in suggestions
|
|
130
|
+
assert "harvest" not in help_text
|
|
131
|
+
assert not any("harvest" in name for name in suggestions | dulus.COMMANDS.keys())
|
|
132
|
+
for name in ("claude_chats", "gemini_chats", "kimi_chats"):
|
|
133
|
+
assert name not in dulus.COMMANDS
|
|
134
|
+
assert f"/{name}" not in help_text and f"/{name}" not in suggestions
|
|
135
|
+
assert dulus._model_dynamic_completions("gemini-web/") == []
|
|
136
|
+
assert "gemini/gemini-2.0-flash" in dulus._model_dynamic_completions("gemini/")
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def test_old_slash_alias_cannot_fall_through_to_a_saved_skill(monkeypatch, capsys):
|
|
140
|
+
import skill
|
|
141
|
+
|
|
142
|
+
monkeypatch.setattr(skill, "find_skill", lambda *_: pytest.fail("looked up a retired command"))
|
|
143
|
+
assert dulus.handle_slash("/gemini_harvest", None, {})
|
|
144
|
+
assert "Unknown command" in capsys.readouterr().err
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
@pytest.mark.asyncio
|
|
148
|
+
@pytest.mark.parametrize("module", ["input", "ui.input"])
|
|
149
|
+
async def test_history_suggests_valid_entries_after_upgrade(module, tmp_path):
|
|
150
|
+
path = tmp_path / "input_history_pt.txt"
|
|
151
|
+
history = FileHistory(str(path))
|
|
152
|
+
for entry in ("/help", "/model custom/claude-code", "/harvest-gemini", "/gemini_harvest",
|
|
153
|
+
"/kimi_chats", "/model claude-code/opus", "/config model=gemini-web:pro"):
|
|
154
|
+
history.append_string(entry)
|
|
155
|
+
with create_app_session(input=DummyInput(), output=DummyOutput()):
|
|
156
|
+
session = import_module(module)._build_session(path)
|
|
157
|
+
buffer = session.default_buffer
|
|
158
|
+
entries = [entry async for entry in buffer.history.load()]
|
|
159
|
+
assert "/harvest-gemini" in entries
|
|
160
|
+
suggest = session.auto_suggest
|
|
161
|
+
for prefix in ("/har", "/gemini_", "/kimi_ch", "/model claude-code", "/config model="):
|
|
162
|
+
assert suggest.get_suggestion(buffer, Document(prefix)) is None
|
|
163
|
+
assert suggest.get_suggestion(buffer, Document("/h")).text == "elp"
|
|
164
|
+
assert suggest.get_suggestion(buffer, Document("/model ")).text == "custom/claude-code"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""Prompt history suggestions shared by the terminal input layouts."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from prompt_toolkit.auto_suggest import AutoSuggestFromHistory, Suggestion
|
|
5
|
+
from prompt_toolkit.buffer import Buffer
|
|
6
|
+
from prompt_toolkit.document import Document
|
|
7
|
+
|
|
8
|
+
from retired_web import retired_command_error
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DulusHistorySuggest(AutoSuggestFromHistory):
|
|
12
|
+
"""Skip retired slash commands while keeping the original history available for recall."""
|
|
13
|
+
|
|
14
|
+
def get_suggestion(self, buffer: Buffer, document: Document) -> Suggestion | None:
|
|
15
|
+
prefix = document.text.rsplit("\n", 1)[-1]
|
|
16
|
+
if not prefix.lstrip().startswith("/"):
|
|
17
|
+
return super().get_suggestion(buffer, document)
|
|
18
|
+
|
|
19
|
+
for entry in reversed(buffer.history.get_strings()):
|
|
20
|
+
for line in reversed(entry.splitlines()):
|
|
21
|
+
if line.startswith(prefix) and not retired_command_error(line):
|
|
22
|
+
return Suggestion(line[len(prefix):])
|
|
23
|
+
return None
|