dulus 3.15.2__tar.gz → 3.15.3__tar.gz

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