euron-code 1.11.1__tar.gz → 1.11.2__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.
- {euron_code-1.11.1 → euron_code-1.11.2}/CHANGELOG.md +9 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/PKG-INFO +1 -1
- {euron_code-1.11.1 → euron_code-1.11.2}/pyproject.toml +1 -1
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/__init__.py +1 -1
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/agent.py +46 -1
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/datacheck.py +2 -1
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v1111_ceo_classes.py +33 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/.gitignore +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/LICENSE +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/README.md +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/__main__.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/activity.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/api.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/attachments.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/auth.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/autoupdate.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/builtin_skills/build-from-reference/SKILL.md +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/builtin_skills/explain-codebase/SKILL.md +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/builtin_skills/review/SKILL.md +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/builtin_skills/test-writer/SKILL.md +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/cache.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/checkpoints.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/cli.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/codeindex.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/config.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/context.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/contextforge/LICENSE +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/contextforge/__init__.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/contextforge/text.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/contextforge/toolout.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/credentials.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/ctxstats.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/doctor.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/documents.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/doi_guard.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/dotnet.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/error_hints.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/errorlog.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/failures.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/friendly.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/frontmatter.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/guards.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/hooks.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/keys.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/knowledge.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/licensing.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/llm/__init__.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/llm/anthropic.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/llm/base.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/llm/openai_compat.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/llm/setup.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/logo.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/markdown_view.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/memory.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/migration.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/modes.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/mvc5.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/osscache.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/ossgithub.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/pasteinput.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/pathfix.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/permissions.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/progress.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/project_setup.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/prompts.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/repl.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/repomap.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/rules.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/security_scan.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/sessions.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/skills.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/taskstate.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/textsafe.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tls.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/toolchain.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/__init__.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/background.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/base.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/citations.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/db.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/design.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/document.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/erie.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/fs.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/ignore.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/normalize.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/oss.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/pagecheck.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/pathfind.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/port.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/reuse.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/search.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/shell.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/skill.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/symbols.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/task.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/template.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/todo.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/web.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/tools/websearch.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/transcript.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/trust.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/ui.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/update_check.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/usage_view.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/version_info.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/webforms.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/conftest.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/fake_providers.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/helpers.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/measure_floor.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/mock_gateway.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/serve_helper.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/sim_long_session.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_agent_mock.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_api_shell.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_bench.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_bench_harness.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_cli_e2e.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_context_memory_sessions.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_dashboard_fixes.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_dashboard_fixes_102.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_db.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_erie.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_knowledge_security.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_markdown_view.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_oss_local.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_permissions.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_powershell_exit_codes.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_qa_attach_secrets.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_qa_long_task.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_qa_print_output.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_qa_reuse_unrelated.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_qa_yolo_outside.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_render_ghost.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_repl.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_reuse_honesty.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_search.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_textsafe.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_tools_fs.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_transcript_ui.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_update_check.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v1100_finish_on_time.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v1110_first_prompt.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v111_user_reports.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v113_fix_path.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v11_byo.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v11_speed.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v11_tool_fixes.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v130_cut_writes.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v130_reliability.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v140_parity.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v152_migration.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v153_user_errors.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v155_user_errors.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v156_autoupdate.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v156_paste_and_edits.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v157_zero_errors.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v15_hosted_models.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v15_reuse_off_subagent_hooks.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v160_stop_scope_atomic.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v161_residual_errors.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v170_v2.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v180_rescue_research_permissions.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v181_silent_failures_verified.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v182_zero_errors.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v184_selfupdate_pep668.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v186_bypass_and_waits.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v187_sleep_wake.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v188_typed_cli_commands.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v189_edit_partial.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v190_refund_fixes.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v191_page_assets.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v194_citations.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v2_rules_skills_hooks.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v2_tokens_shortcuts.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v2_usage_headers.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v31_security.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v3_accounts_value_setup.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v3_activity.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v3_attachments.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v3_context.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v3_live_repl.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v3_single_login.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v4.py +0 -0
- {euron_code-1.11.1 → euron_code-1.11.2}/tests/test_v5.py +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.11.2 (2026-11-24)
|
|
4
|
+
|
|
5
|
+
- The data check no longer reports a false problem on a field the request did not group by ("25 for each topic" is
|
|
6
|
+
checked on the topics, not on the answer index), so a correct file is not reworked.
|
|
7
|
+
- A tool call the model writes as DSML text (`<|DSML|invoke name=...>`) is run instead of being shown as the answer
|
|
8
|
+
(the edit was never applied and the task stopped with its tests red).
|
|
9
|
+
- An answer that stops mid-way ("Let me check ...", "Actually, wait ...") while the last check fails gets up to 3
|
|
10
|
+
more rounds instead of ending the task.
|
|
11
|
+
|
|
3
12
|
## 1.11.1 (2026-11-24)
|
|
4
13
|
|
|
5
14
|
- **"Do NOT modify prd.md" is enforced.** A file you tell Euron Code not to modify, touch, change, edit, delete or
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: euron-code
|
|
3
|
-
Version: 1.11.
|
|
3
|
+
Version: 1.11.2
|
|
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.
|
|
7
|
+
version = "1.11.2"
|
|
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"
|
|
@@ -560,6 +560,45 @@ def parse_inline_tool_calls(content: str):
|
|
|
560
560
|
return content, calls
|
|
561
561
|
|
|
562
562
|
|
|
563
|
+
_DSML_INVOKE = re.compile(r"<[|\uff5c]DSML[|\uff5c]invoke\s+name\s*=\s*\"([^\"]+)\"\s*>(.*?)(?:</[|\uff5c]DSML[|\uff5c]invoke>|(?=<[|\uff5c]DSML[|\uff5c]invoke\b)|$)",
|
|
564
|
+
re.DOTALL)
|
|
565
|
+
_DSML_PARAM = re.compile(r"<[|\uff5c]DSML[|\uff5c]parameter\s+name\s*=\s*\"([^\"]+)\"(?:\s+string\s*=\s*\"(true|false)\")?\s*>"
|
|
566
|
+
r"(.*?)</[|\uff5c]DSML[|\uff5c]parameter>", re.DOTALL)
|
|
567
|
+
_DSML_BLOCK = re.compile(r"(?:<tool_calls>\s*)?(?:<[|\uff5c]DSML[|\uff5c]function_calls>\s*)?<[|\uff5c]DSML[|\uff5c]invoke\b.*?"
|
|
568
|
+
r"(?:</[|\uff5c]DSML[|\uff5c]function_calls>|</tool_calls>|$)", re.DOTALL)
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
def parse_dsml_tool_calls(content: str):
|
|
572
|
+
"""A tool call written as DSML text (`<|DSML|invoke name="edit_file"><|DSML|parameter ...>`), the format some
|
|
573
|
+
rescue models fall back to: it is the call the model meant, so it runs instead of ending the task as an answer
|
|
574
|
+
(gate 24 Nov: an edit written this way was never applied and the task stopped with its tests red)."""
|
|
575
|
+
calls = []
|
|
576
|
+
for m in _DSML_INVOKE.finditer(content):
|
|
577
|
+
args: Dict[str, Any] = {}
|
|
578
|
+
for pm in _DSML_PARAM.finditer(m.group(2)):
|
|
579
|
+
key, is_str, val = pm.group(1), pm.group(2), pm.group(3)
|
|
580
|
+
if is_str == "false":
|
|
581
|
+
try:
|
|
582
|
+
args[key] = json.loads(val)
|
|
583
|
+
continue
|
|
584
|
+
except ValueError:
|
|
585
|
+
pass
|
|
586
|
+
args[key] = val
|
|
587
|
+
if args or m.group(2).strip() == "":
|
|
588
|
+
calls.append({"id": f"call_{uuid.uuid4().hex[:12]}", "type": "function",
|
|
589
|
+
"function": {"name": m.group(1).strip(), "arguments": json.dumps(args)}})
|
|
590
|
+
if calls:
|
|
591
|
+
content = _DSML_BLOCK.sub("", content).strip()
|
|
592
|
+
return content, calls
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
# An answer that stops in the middle of working ("Let me check ...", "Actually, wait ...", a trailing colon): not
|
|
596
|
+
# a final answer, so a red check gets more rounds than MAX_DONE_NUDGES (gate 24 Nov, chain-prd-plan-build).
|
|
597
|
+
_UNFINISHED_RE = re.compile(r"(?:\b(?:let me|let's|i'll|i will|i need to|now i|actually,? wait|wait)\b[^\n]{0,200}"
|
|
598
|
+
r"|[:,\u2014-])\s*$", re.I)
|
|
599
|
+
MAX_UNFINISHED_EXTRA = 3
|
|
600
|
+
|
|
601
|
+
|
|
563
602
|
class Agent:
|
|
564
603
|
def __init__(self, client: api.Client, ui, root: Path, settings: Dict[str, Any],
|
|
565
604
|
permissions: Permissions, model: str, *, session: Optional[SessionWriter] = None,
|
|
@@ -1542,6 +1581,7 @@ class Agent:
|
|
|
1542
1581
|
self._append({"role": "user", "content": prompts.NOTICE_NUDGE.format(repos=missing)})
|
|
1543
1582
|
self.ui.dim("(asking Euron Code to record the reused sources in THIRD_PARTY_NOTICES.md)")
|
|
1544
1583
|
continue
|
|
1584
|
+
self._final_text = resp.content or ""
|
|
1545
1585
|
done = self._done_nudge()
|
|
1546
1586
|
if done:
|
|
1547
1587
|
self._done_nudges += 1
|
|
@@ -2344,6 +2384,8 @@ class Agent:
|
|
|
2344
2384
|
r.tool_calls.append(c)
|
|
2345
2385
|
if not r.tool_calls and "<tool_call>" in r.content:
|
|
2346
2386
|
r.content, r.tool_calls = parse_inline_tool_calls(r.content)
|
|
2387
|
+
if not r.tool_calls and "DSML" in r.content:
|
|
2388
|
+
r.content, r.tool_calls = parse_dsml_tool_calls(r.content)
|
|
2347
2389
|
recover_reasoning_only(r)
|
|
2348
2390
|
return r
|
|
2349
2391
|
|
|
@@ -3150,7 +3192,10 @@ class Agent:
|
|
|
3150
3192
|
def _done_nudge(self) -> Optional[str]:
|
|
3151
3193
|
"""Definition of done: after the last change a real check (build / tests / running it) must pass. Up
|
|
3152
3194
|
to MAX_DONE_NUDGES times the model is sent back: to run one, or to fix the one that fails."""
|
|
3153
|
-
|
|
3195
|
+
limit = self.policy.done_nudges
|
|
3196
|
+
if _UNFINISHED_RE.search((getattr(self, "_final_text", "") or "").strip()[-300:]):
|
|
3197
|
+
limit += MAX_UNFINISHED_EXTRA # it stopped mid-way ("Let me check ..."): not an answer, keep it going
|
|
3198
|
+
if (self.is_subagent or self._done_nudges >= limit or not self._real_edits()
|
|
3154
3199
|
or self.permissions.mode == "plan" or self.settings.get("verifyNudge", True) is False):
|
|
3155
3200
|
return None
|
|
3156
3201
|
if all(_DOC_RE.search(rel) or _NO_BUILD_RE.search(rel) for rel in self.files_changed()):
|
|
@@ -102,7 +102,8 @@ def check(path: Path, request: str = "") -> Optional[Dict[str, Any]]:
|
|
|
102
102
|
distinct = Counter(normed)
|
|
103
103
|
if 1 < len(distinct) <= 20 and len(distinct) < n / 3: # a category field (topic, level, region)
|
|
104
104
|
facts.append(f"`{k}`: " + ", ".join(f"{a} {b}" for a, b in sorted(distinct.items())))
|
|
105
|
-
|
|
105
|
+
# only the field the request grouped by: its groups x per add up to the total (topic 6 x 25 = 150, not answer 4 x 25)
|
|
106
|
+
if per and abs(len(distinct) * per - n) <= per and any(c != per for c in distinct.values()):
|
|
106
107
|
problems.append(f"the request asks for {per} per `{k}` value; got "
|
|
107
108
|
+ ", ".join(f"{a} {b}" for a, b in sorted(distinct.items()) if b != per))
|
|
108
109
|
elif len(distinct) >= n * 0.8 and any(isinstance(v, str) and len(v) > 12 for v in vals):
|
|
@@ -150,3 +150,36 @@ def test_system_installs_are_refused_unless_asked():
|
|
|
150
150
|
assert system_install_refusal("npm install express", "build the app") is None
|
|
151
151
|
assert system_install_refusal("pip install -r requirements.txt", "set it up") is None
|
|
152
152
|
assert system_install_refusal("winget install OpenJS.NodeJS", "please install node for me") is None
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def test_per_group_count_only_checks_the_grouping_field(tmp_path):
|
|
156
|
+
import json as _json
|
|
157
|
+
from euron_code import datacheck
|
|
158
|
+
q = [{"id": i + 1, "topic": ["a", "b", "c", "d", "e", "f"][i % 6], "question": f"Question number {i}?",
|
|
159
|
+
"options": ["w", "x", "y", "z"], "answer": i % 4} for i in range(150)]
|
|
160
|
+
p = tmp_path / "questions.json"
|
|
161
|
+
p.write_text(_json.dumps(q), encoding="utf-8")
|
|
162
|
+
r = datacheck.check(p, "150 questions, 25 for each topic")
|
|
163
|
+
assert r["problems"] == []
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def test_dsml_text_tool_call_is_run():
|
|
167
|
+
import json as _json
|
|
168
|
+
from euron_code.agent import parse_dsml_tool_calls
|
|
169
|
+
text = ('Now fix the test: <tool_calls> <\uff5cDSML\uff5cinvoke name = "edit_file"> '
|
|
170
|
+
'<\uff5cDSML\uff5cparameter name = "path" string = "true">server/tests/test_main.py</\uff5cDSML\uff5cparameter> '
|
|
171
|
+
'<\uff5cDSML\uff5cparameter name = "old_string" string = "true">a = 1</\uff5cDSML\uff5cparameter> '
|
|
172
|
+
'<\uff5cDSML\uff5cparameter name = "replace_all" string = "false">false</\uff5cDSML\uff5cparameter>'
|
|
173
|
+
'</\uff5cDSML\uff5cinvoke></tool_calls>')
|
|
174
|
+
content, calls = parse_dsml_tool_calls(text)
|
|
175
|
+
assert len(calls) == 1 and calls[0]["function"]["name"] == "edit_file"
|
|
176
|
+
args = _json.loads(calls[0]["function"]["arguments"])
|
|
177
|
+
assert args == {"path": "server/tests/test_main.py", "old_string": "a = 1", "replace_all": False}
|
|
178
|
+
assert "DSML" not in content and content.startswith("Now fix the test")
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
def test_unfinished_answer_pattern():
|
|
182
|
+
from euron_code.agent import _UNFINISHED_RE
|
|
183
|
+
assert _UNFINISHED_RE.search("Actually, wait - the key difference is that the debug script connects to the")
|
|
184
|
+
assert _UNFINISHED_RE.search("Let me check the database path:")
|
|
185
|
+
assert not _UNFINISHED_RE.search("All 12 tests pass. The notes API is in server/main.py.")
|
|
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
|
{euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/builtin_skills/build-from-reference/SKILL.md
RENAMED
|
File without changes
|
{euron_code-1.11.1 → euron_code-1.11.2}/src/euron_code/builtin_skills/explain-codebase/SKILL.md
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|