euron-code 1.11.2__tar.gz → 1.11.4__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 (186) hide show
  1. {euron_code-1.11.2 → euron_code-1.11.4}/CHANGELOG.md +19 -0
  2. {euron_code-1.11.2 → euron_code-1.11.4}/PKG-INFO +1 -1
  3. {euron_code-1.11.2 → euron_code-1.11.4}/pyproject.toml +1 -1
  4. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/__init__.py +1 -1
  5. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/agent.py +6 -2
  6. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/datacheck.py +1 -1
  7. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/permissions.py +19 -1
  8. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/prompts.py +3 -1
  9. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/toolchain.py +2 -0
  10. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/background.py +12 -1
  11. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/shell.py +36 -1
  12. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v1111_ceo_classes.py +46 -0
  13. {euron_code-1.11.2 → euron_code-1.11.4}/.gitignore +0 -0
  14. {euron_code-1.11.2 → euron_code-1.11.4}/LICENSE +0 -0
  15. {euron_code-1.11.2 → euron_code-1.11.4}/README.md +0 -0
  16. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/__main__.py +0 -0
  17. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/activity.py +0 -0
  18. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/api.py +0 -0
  19. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/attachments.py +0 -0
  20. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/auth.py +0 -0
  21. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/autoupdate.py +0 -0
  22. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/builtin_skills/build-from-reference/SKILL.md +0 -0
  23. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/builtin_skills/explain-codebase/SKILL.md +0 -0
  24. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/builtin_skills/review/SKILL.md +0 -0
  25. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/builtin_skills/test-writer/SKILL.md +0 -0
  26. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/cache.py +0 -0
  27. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/checkpoints.py +0 -0
  28. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/cli.py +0 -0
  29. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/codeindex.py +0 -0
  30. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/config.py +0 -0
  31. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/context.py +0 -0
  32. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/contextforge/LICENSE +0 -0
  33. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/contextforge/__init__.py +0 -0
  34. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/contextforge/text.py +0 -0
  35. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/contextforge/toolout.py +0 -0
  36. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/credentials.py +0 -0
  37. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/ctxstats.py +0 -0
  38. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/doctor.py +0 -0
  39. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/documents.py +0 -0
  40. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/doi_guard.py +0 -0
  41. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/dotnet.py +0 -0
  42. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/error_hints.py +0 -0
  43. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/errorlog.py +0 -0
  44. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/failures.py +0 -0
  45. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/friendly.py +0 -0
  46. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/frontmatter.py +0 -0
  47. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/guards.py +0 -0
  48. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/hooks.py +0 -0
  49. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/keys.py +0 -0
  50. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/knowledge.py +0 -0
  51. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/licensing.py +0 -0
  52. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/llm/__init__.py +0 -0
  53. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/llm/anthropic.py +0 -0
  54. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/llm/base.py +0 -0
  55. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/llm/openai_compat.py +0 -0
  56. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/llm/setup.py +0 -0
  57. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/logo.py +0 -0
  58. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/markdown_view.py +0 -0
  59. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/memory.py +0 -0
  60. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/migration.py +0 -0
  61. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/modes.py +0 -0
  62. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/mvc5.py +0 -0
  63. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/osscache.py +0 -0
  64. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/ossgithub.py +0 -0
  65. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/pasteinput.py +0 -0
  66. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/pathfix.py +0 -0
  67. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/progress.py +0 -0
  68. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/project_setup.py +0 -0
  69. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/repl.py +0 -0
  70. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/repomap.py +0 -0
  71. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/rules.py +0 -0
  72. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/security_scan.py +0 -0
  73. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/sessions.py +0 -0
  74. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/skills.py +0 -0
  75. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/taskstate.py +0 -0
  76. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/textsafe.py +0 -0
  77. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tls.py +0 -0
  78. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/__init__.py +0 -0
  79. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/base.py +0 -0
  80. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/citations.py +0 -0
  81. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/db.py +0 -0
  82. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/design.py +0 -0
  83. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/document.py +0 -0
  84. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/erie.py +0 -0
  85. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/fs.py +0 -0
  86. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/ignore.py +0 -0
  87. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/normalize.py +0 -0
  88. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/oss.py +0 -0
  89. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/pagecheck.py +0 -0
  90. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/pathfind.py +0 -0
  91. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/port.py +0 -0
  92. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/reuse.py +0 -0
  93. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/search.py +0 -0
  94. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/skill.py +0 -0
  95. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/symbols.py +0 -0
  96. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/task.py +0 -0
  97. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/template.py +0 -0
  98. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/todo.py +0 -0
  99. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/web.py +0 -0
  100. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/tools/websearch.py +0 -0
  101. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/transcript.py +0 -0
  102. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/trust.py +0 -0
  103. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/ui.py +0 -0
  104. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/update_check.py +0 -0
  105. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/usage_view.py +0 -0
  106. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/version_info.py +0 -0
  107. {euron_code-1.11.2 → euron_code-1.11.4}/src/euron_code/webforms.py +0 -0
  108. {euron_code-1.11.2 → euron_code-1.11.4}/tests/conftest.py +0 -0
  109. {euron_code-1.11.2 → euron_code-1.11.4}/tests/fake_providers.py +0 -0
  110. {euron_code-1.11.2 → euron_code-1.11.4}/tests/helpers.py +0 -0
  111. {euron_code-1.11.2 → euron_code-1.11.4}/tests/measure_floor.py +0 -0
  112. {euron_code-1.11.2 → euron_code-1.11.4}/tests/mock_gateway.py +0 -0
  113. {euron_code-1.11.2 → euron_code-1.11.4}/tests/serve_helper.py +0 -0
  114. {euron_code-1.11.2 → euron_code-1.11.4}/tests/sim_long_session.py +0 -0
  115. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_agent_mock.py +0 -0
  116. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_api_shell.py +0 -0
  117. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_bench.py +0 -0
  118. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_bench_harness.py +0 -0
  119. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_cli_e2e.py +0 -0
  120. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_context_memory_sessions.py +0 -0
  121. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_dashboard_fixes.py +0 -0
  122. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_dashboard_fixes_102.py +0 -0
  123. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_db.py +0 -0
  124. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_erie.py +0 -0
  125. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_knowledge_security.py +0 -0
  126. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_markdown_view.py +0 -0
  127. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_oss_local.py +0 -0
  128. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_permissions.py +0 -0
  129. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_powershell_exit_codes.py +0 -0
  130. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_qa_attach_secrets.py +0 -0
  131. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_qa_long_task.py +0 -0
  132. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_qa_print_output.py +0 -0
  133. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_qa_reuse_unrelated.py +0 -0
  134. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_qa_yolo_outside.py +0 -0
  135. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_render_ghost.py +0 -0
  136. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_repl.py +0 -0
  137. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_reuse_honesty.py +0 -0
  138. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_search.py +0 -0
  139. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_textsafe.py +0 -0
  140. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_tools_fs.py +0 -0
  141. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_transcript_ui.py +0 -0
  142. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_update_check.py +0 -0
  143. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v1100_finish_on_time.py +0 -0
  144. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v1110_first_prompt.py +0 -0
  145. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v111_user_reports.py +0 -0
  146. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v113_fix_path.py +0 -0
  147. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v11_byo.py +0 -0
  148. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v11_speed.py +0 -0
  149. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v11_tool_fixes.py +0 -0
  150. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v130_cut_writes.py +0 -0
  151. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v130_reliability.py +0 -0
  152. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v140_parity.py +0 -0
  153. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v152_migration.py +0 -0
  154. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v153_user_errors.py +0 -0
  155. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v155_user_errors.py +0 -0
  156. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v156_autoupdate.py +0 -0
  157. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v156_paste_and_edits.py +0 -0
  158. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v157_zero_errors.py +0 -0
  159. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v15_hosted_models.py +0 -0
  160. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v15_reuse_off_subagent_hooks.py +0 -0
  161. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v160_stop_scope_atomic.py +0 -0
  162. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v161_residual_errors.py +0 -0
  163. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v170_v2.py +0 -0
  164. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v180_rescue_research_permissions.py +0 -0
  165. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v181_silent_failures_verified.py +0 -0
  166. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v182_zero_errors.py +0 -0
  167. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v184_selfupdate_pep668.py +0 -0
  168. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v186_bypass_and_waits.py +0 -0
  169. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v187_sleep_wake.py +0 -0
  170. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v188_typed_cli_commands.py +0 -0
  171. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v189_edit_partial.py +0 -0
  172. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v190_refund_fixes.py +0 -0
  173. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v191_page_assets.py +0 -0
  174. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v194_citations.py +0 -0
  175. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v2_rules_skills_hooks.py +0 -0
  176. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v2_tokens_shortcuts.py +0 -0
  177. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v2_usage_headers.py +0 -0
  178. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v31_security.py +0 -0
  179. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v3_accounts_value_setup.py +0 -0
  180. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v3_activity.py +0 -0
  181. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v3_attachments.py +0 -0
  182. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v3_context.py +0 -0
  183. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v3_live_repl.py +0 -0
  184. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v3_single_login.py +0 -0
  185. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v4.py +0 -0
  186. {euron_code-1.11.2 → euron_code-1.11.4}/tests/test_v5.py +0 -0
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.11.4 (2026-11-24)
4
+
5
+ - `cd <dir> && ...` while the shell already stands in that dir no longer fails ("Cannot find path ...client\client"):
6
+ the cd is dropped, or resolved from the project root. Six repeats of it stopped a Stitch-port task as stuck.
7
+ - Bulk generation: each parallel writer checks its items before writing (no repeated options, answers spread),
8
+ so the merged file needs no fixing round.
9
+
10
+ ## 1.11.3 (2026-11-24)
11
+
12
+ - The data check compares a record's options exactly (spacing aside): `'Hello'` and `'hello'` are different answers
13
+ to a lower()/upper() question, not duplicates. The false report cost a 150-question quiz 10+ extra minutes.
14
+ - A command that runs node / python / npm / git by its full path is no longer an "outside the project" question
15
+ (its arguments are still checked), and the toolchain note asks for tools by name. 1.11.x listed full paths, and
16
+ `C:/.../python.exe -m pytest` was refused in bypass, leaving the task unverified.
17
+ - The "details you gave are not in the files" check has its own flag: an earlier placeholder nudge no longer switches
18
+ it off (a portfolio shipped without the email the request gave).
19
+ - start_background_process refuses a port that is already in use, instead of reporting "listening" at once and
20
+ letting every check test some other program on that port.
21
+
3
22
  ## 1.11.2 (2026-11-24)
4
23
 
5
24
  - The data check no longer reports a false problem on a field the request did not group by ("25 for each topic" is
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: euron-code
3
- Version: 1.11.2
3
+ Version: 1.11.4
4
4
  Summary: Euron Code: an agentic coding assistant in your terminal for Euron Plus and Super 30 students.
5
5
  Project-URL: Homepage, https://euron.one/code-agent
6
6
  Author-email: Euron <contact@euron.one>
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "euron-code"
7
- version = "1.11.2"
7
+ version = "1.11.4"
8
8
  description = "Euron Code: an agentic coding assistant in your terminal for Euron Plus and Super 30 students."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1,3 +1,3 @@
1
1
  """Euron Code: an agentic coding assistant for the terminal."""
2
2
 
3
- __version__ = "1.11.2"
3
+ __version__ = "1.11.4"
@@ -647,6 +647,7 @@ class Agent:
647
647
  self.pending_image_paths: List[Path] = [] # their local files (a photo may belong on the page)
648
648
  self.pending_tool_images: List[Tuple[str, Dict[str, Any]]] = [] # check_app screenshots for the next step
649
649
  self._placeholder_nudged = False
650
+ self._details_nudged = False
650
651
  self._ctx_note_band = 0 # 10% band of the last small "Context was N% full" note
651
652
  self.pending_paths: List[Path] = [] # /attach, /paste-image: attached to the next prompt
652
653
  self._notice_nudged = False # one THIRD_PARTY_NOTICES nudge per prompt
@@ -1084,6 +1085,7 @@ class Agent:
1084
1085
  self._data_gated = 0
1085
1086
  self._todo_alone = 0
1086
1087
  self._placeholder_nudged = False
1088
+ self._details_nudged = False
1087
1089
  self._notice_nudged = False
1088
1090
  self._migration_nudges = 0
1089
1091
  self._migration_noted = {}
@@ -1558,10 +1560,12 @@ class Agent:
1558
1560
  self.ui.warn("Note: that last step was described but NOT run. Type continue to make Euron Code "
1559
1561
  "do it (a stronger helper model takes over when it keeps failing).")
1560
1562
  where = self._placeholders() if not self._placeholder_nudged and not self.is_subagent else ""
1561
- if not where and not self._placeholder_nudged and not self.is_subagent:
1563
+ if not where and not getattr(self, "_details_nudged", False) and not self.is_subagent:
1564
+ # its own flag (1.11.3): a placeholder nudge earlier used to switch this check off, and a
1565
+ # portfolio shipped without the email the request gave (gate 24 Nov, build-portfolio)
1562
1566
  lost = self._unused_details(user_text)
1563
1567
  if lost:
1564
- self._placeholder_nudged = True
1568
+ self._details_nudged = True
1565
1569
  self._append({"role": "user", "content": prompts.DETAILS_NUDGE.format(details=lost)})
1566
1570
  self.ui.dim("(some details you gave are not in the files yet; asking Euron Code to add them)")
1567
1571
  continue
@@ -88,7 +88,7 @@ def check(path: Path, request: str = "") -> Optional[Dict[str, Any]]:
88
88
  for k in [k for k, c in keys.items() if c >= n * 0.5][:12]:
89
89
  vals = [r.get(k) for r in recs if k in r]
90
90
  if all(isinstance(v, list) for v in vals):
91
- bad = [i for i, v in enumerate(vals) if len({_norm(x) for x in v}) < len(v)]
91
+ bad = [i for i, v in enumerate(vals) if len({" ".join(str(x).split()) for x in v}) < len(v)]
92
92
  lens = Counter(len(v) for v in vals)
93
93
  if bad:
94
94
  problems.append(f"`{k}` repeats an entry in record(s) " + ", ".join(f"#{i + 1}" for i in bad[:8])
@@ -225,6 +225,23 @@ def _system_program(part: str) -> bool:
225
225
  except (OSError, ValueError, RuntimeError):
226
226
  continue
227
227
  return False
228
+ _TOOLCHAIN_EXE = re.compile(r"(?i)(^|[\\/])(node|npm|npx|python\d*(\.\d+)?|py|pip\d*|git|uv|pnpm|yarn|bun|deno|java|javac|"
229
+ r"go|cargo|rustc|dotnet)(\.exe|\.cmd|\.bat)?$")
230
+
231
+
232
+ def _toolchain_program(part: str) -> bool:
233
+ """The program of a command, named by its full path, when it is an installed interpreter / build tool (node,
234
+ python, npm, git): the program itself is not something the command reads or writes; its ARGUMENTS still are
235
+ checked one by one. 1.11.x gave the model full tool paths, and every `C:/.../python.exe -m pytest` became an
236
+ "outside the project" question (gate 24 Nov: pytest and pip refused in bypass, task left unverified)."""
237
+ if not _TOOLCHAIN_EXE.search(part):
238
+ return False
239
+ try:
240
+ return Path(_expand(part)).is_file()
241
+ except (OSError, ValueError):
242
+ return False
243
+
244
+
228
245
  # `~` only as the home folder (`~`, `~/x`, `~user`): a Markdown fence `~~~` or `~=` inside inline code is not a path
229
246
  # (bench 2026-11-09: `python -c "...~~~..."` was refused as "outside the project" in bypass mode).
230
247
  _PATHLIKE = re.compile(r"^(?:[A-Za-z]:[\\/]|/|~(?:$|[\\/]|\w)|\\\\|\.\.(?:[\\/]|$)|\$HOME|\$\{HOME\}|\$env:USERPROFILE|%USERPROFILE%)")
@@ -360,7 +377,8 @@ def _outside_in(command: str, roots: List[Path], allowed: List[Path], in_code: b
360
377
  if os.name == "nt" and not in_code and part is not None and (
361
378
  _WIN_VALUE_SWITCH.match(part) or tool_switches and _WIN_WORD_SWITCH.match(part)):
362
379
  continue
363
- if head and part == tok.strip().strip('"').strip("'") and _system_program(part):
380
+ if head and part == tok.strip().strip('"').strip("'") and (_system_program(part)
381
+ or _toolchain_program(part)):
364
382
  continue
365
383
  if in_code and part.startswith("/") and _rooted_slash_is_route(part):
366
384
  continue
@@ -177,7 +177,9 @@ DESIGN_CHECK_NOTE = ("[Euron Code: the pages are not confirmed against the desig
177
177
  BULK_SPLIT_NOTE = ("[Euron Code: this request generates {n} items. One stream writes them slowly, so split the work: in "
178
178
  "ONE step call task 3 times (mode \"write\"), each with its own share (about {share} items, its own "
179
179
  "part of the categories) and its own part file, for example parts/part1.json, parts/part2.json, "
180
- "parts/part3.json, with the exact item format the user asked for and items that do not overlap. "
180
+ "parts/part3.json, with the exact item format the user asked for and items that do not overlap. Tell each "
181
+ "writer to check every item before writing it (no repeated option or value inside an item, answers "
182
+ "spread evenly), so the merged file needs no fixing round. "
181
183
  "Then merge the parts with a short script into the requested file (renumber ids, drop duplicates), "
182
184
  "check the counts, and fix what the check reports.]")
183
185
  DATA_CHECK_NOTE = ("[Euron Code: I counted the data files you wrote (a script, not the model):\n{report}\nFix every "
@@ -164,4 +164,6 @@ def note(found: Dict[str, str]) -> str:
164
164
  s += f". Not on the user's PATH, so Euron Code added these folders to PATH for every command: {found['_added']}"
165
165
  if missing:
166
166
  s += ". Not installed: " + ", ".join(missing)
167
+ if have:
168
+ s += ". Run them by name (node, npm, python, git), not by full path"
167
169
  return s
@@ -249,8 +249,19 @@ class StartBackgroundProcess(Tool):
249
249
  cmd = self._quoted(args, ctx)
250
250
  pm = manager(ctx)
251
251
  cwd = ctx.shell.cwd if getattr(ctx, "shell", None) is not None else ctx.root
252
- bp = pm.start(cmd, cwd, ctx.settings.get("shell"), name=str(args.get("name") or ""))
253
252
  port = opt_int(args, "wait_for_port", None)
253
+ if port and port_open(port):
254
+ # 1.11.3: another program already answers on this port; waiting for it would report "listening" at
255
+ # once and every check would test THAT program (gate 24 Nov: a portfolio checked against a stranger's
256
+ # index.php on 8080, a Vite app chased 404s for 50 minutes)
257
+ mine = [p.id for p in pm.running()]
258
+ return ToolResult(f"Not started: port {port} is already in use"
259
+ + (f" (if it is your own {', '.join(mine)}, stop_process it first)" if mine else
260
+ " by another program, not this project")
261
+ + f". Start it on a free port instead (e.g. {port + 1}, or let the tool pick: Vite --port "
262
+ f"{port + 1}, http-server -p {port + 1}), or use check_app with path= for a static page.",
263
+ is_error=True, preview=f"port {port} busy")
264
+ bp = pm.start(cmd, cwd, ctx.settings.get("shell"), name=str(args.get("name") or ""))
254
265
  ready = str(args.get("ready_text") or "")
255
266
  timeout = max(1, min(opt_int(args, "timeout", 30) or 30, 120))
256
267
  cancel = getattr(getattr(ctx, "agent", None), "cancel", None)
@@ -8,6 +8,7 @@ from __future__ import annotations
8
8
 
9
9
  import base64
10
10
  import os
11
+ import re
11
12
  import shutil
12
13
  import signal
13
14
  import subprocess
@@ -332,6 +333,35 @@ class ShellSession:
332
333
  return code, text.rstrip(), timed_out
333
334
 
334
335
 
336
+ _LEAD_CD = re.compile(r"""^\s*cd\s+(?:/d\s+)?(["']?)([^"'&;|]+?)\1\s*(&&|;)\s*""")
337
+
338
+
339
+ def fix_leading_cd(command: str, cwd: Path, root: Path) -> Tuple[str, str]:
340
+ """A command that starts with `cd <relative dir> &&` while the shell already stands in that dir (the working
341
+ directory persists): `cd client && npm run build` from inside client/ failed with "Cannot find path
342
+ ...client\\client" six times and the task was stopped as stuck (gate 24 Nov, design-port-chain). The cd is
343
+ dropped when cwd already IS that dir, and pointed at the project's dir when only the root has it."""
344
+ m = _LEAD_CD.match(command)
345
+ if not m:
346
+ return command, ""
347
+ target = m.group(2).strip()
348
+ t = Path(target)
349
+ if t.is_absolute() or target in (".", "..") or target.startswith(("~", "$", "%", "-")):
350
+ return command, ""
351
+ try:
352
+ if (cwd / t).is_dir():
353
+ return command, ""
354
+ rest = command[m.end():]
355
+ if cwd.resolve() == (root / t).resolve() or cwd.name.lower() == t.name.lower() and len(t.parts) == 1:
356
+ return rest, f"(already in {target}; the leading cd was dropped)"
357
+ if (root / t).is_dir():
358
+ q = str((root / t).resolve())
359
+ return f'cd "{q}" {m.group(3)} ' + rest, f"(cd {target} resolved from the project root)"
360
+ except OSError:
361
+ pass
362
+ return command, ""
363
+
364
+
335
365
  class Bash(Tool):
336
366
  name = "bash"
337
367
  description = (
@@ -382,6 +412,11 @@ class Bash(Tool):
382
412
  if not cmd:
383
413
  raise ToolError("Empty command.")
384
414
  cmd, quoted = self._quoted({"command": cmd}, ctx)
415
+ try:
416
+ sh0 = self._session(ctx)
417
+ cmd, cd_note = fix_leading_cd(cmd, sh0.cwd if sh0.cwd.is_dir() else ctx.root, ctx.root)
418
+ except Exception:
419
+ cd_note = ""
385
420
  default_t = int(ctx.settings.get("bashTimeout") or 120)
386
421
  timeout = max(1, min(opt_int(args, "timeout", default_t) or default_t, 600))
387
422
  sh = self._session(ctx)
@@ -394,7 +429,7 @@ class Bash(Tool):
394
429
  return ToolResult("The user interrupted the command (Ctrl-C); it was killed.", is_error=True,
395
430
  preview="interrupted")
396
431
  body = ctx.cut(out, "pipe through a filter such as `| tail -50` for less")
397
- head = f"Exit code: {code}"
432
+ head = f"Exit code: {code}" + (f" {cd_note}" if cd_note else "")
398
433
  if timed_out:
399
434
  head += f" (killed after {timeout}s timeout)"
400
435
  if sh.cwd != before:
@@ -183,3 +183,49 @@ def test_unfinished_answer_pattern():
183
183
  assert _UNFINISHED_RE.search("Actually, wait - the key difference is that the debug script connects to the")
184
184
  assert _UNFINISHED_RE.search("Let me check the database path:")
185
185
  assert not _UNFINISHED_RE.search("All 12 tests pass. The notes API is in server/main.py.")
186
+
187
+
188
+ def test_options_differing_only_in_case_are_not_duplicates(tmp_path):
189
+ import json as _json
190
+ from euron_code import datacheck
191
+ q = [{"id": i + 1, "topic": "strings", "question": f"Q{i}: what does 'Hello'.lower() return?",
192
+ "options": ["'Hello'", "'hello'", "'HELLO'", "None"], "answer": 1} for i in range(30)]
193
+ p = tmp_path / "q.json"
194
+ p.write_text(_json.dumps(q), encoding="utf-8")
195
+ assert not any("repeated" in x or "duplicate" in x for x in datacheck.check(p, "30 questions")["problems"])
196
+
197
+
198
+ def test_full_path_interpreter_is_not_outside(tmp_path):
199
+ import sys as _sys
200
+ from euron_code.permissions import outside_paths
201
+ py = _sys.executable
202
+ assert outside_paths(f'"{py}" -m pytest server/tests -q', [tmp_path]) == []
203
+ secret = "C:/Windows/System32/config/SAM" if _sys.platform == "win32" else "/etc/shadow"
204
+ assert outside_paths(f'"{py}" {secret}', [tmp_path]) != []
205
+
206
+
207
+ def test_background_refuses_a_port_already_in_use(tmp_path):
208
+ import socket
209
+ from types import SimpleNamespace
210
+ from euron_code.tools.background import StartBackgroundProcess
211
+ s = socket.socket()
212
+ s.bind(("127.0.0.1", 0))
213
+ s.listen(1)
214
+ port = s.getsockname()[1]
215
+ try:
216
+ ctx = SimpleNamespace(root=tmp_path, shell=None, settings={}, agent=None, cut=lambda x: x)
217
+ r = StartBackgroundProcess().run({"command": "python -m http.server", "wait_for_port": port}, ctx)
218
+ assert r.is_error and "already in use" in r.content
219
+ finally:
220
+ s.close()
221
+
222
+
223
+ def test_leading_cd_into_the_dir_we_are_in_is_dropped(tmp_path):
224
+ from euron_code.tools.shell import fix_leading_cd
225
+ (tmp_path / "client" / "src").mkdir(parents=True)
226
+ cmd, note = fix_leading_cd('cd client && npm run build', tmp_path / "client", tmp_path)
227
+ assert cmd == "npm run build" and note
228
+ cmd, note = fix_leading_cd('cd client && npm run build', tmp_path, tmp_path)
229
+ assert cmd == 'cd client && npm run build' and not note
230
+ cmd, note = fix_leading_cd('cd client; npm test', tmp_path / "client" / "src", tmp_path)
231
+ assert str(tmp_path / "client") in cmd and note
File without changes
File without changes
File without changes