answer42 0.11.2__tar.gz → 0.11.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 (69) hide show
  1. {answer42-0.11.2 → answer42-0.11.3}/PKG-INFO +1 -1
  2. {answer42-0.11.2 → answer42-0.11.3}/pyproject.toml +1 -1
  3. {answer42-0.11.2 → answer42-0.11.3}/src/cf/DataProcessors/MCPTestManager/Forms//320/244/320/276/321/200/320/274/320/260/Ext/Form/Module.bsl +5 -1
  4. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/assets/MCPTestClient.cf +0 -0
  5. answer42-0.11.3/src/mcp_1c/assets/MCPTestManager.cf +0 -0
  6. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/protocol.py +1 -1
  7. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/server.py +13 -3
  8. answer42-0.11.2/src/mcp_1c/assets/MCPTestManager.cf +0 -0
  9. {answer42-0.11.2 → answer42-0.11.3}/.gitignore +0 -0
  10. {answer42-0.11.2 → answer42-0.11.3}/LICENSE +0 -0
  11. {answer42-0.11.2 → answer42-0.11.3}/README.md +0 -0
  12. {answer42-0.11.2 → answer42-0.11.3}/credentials.example.json +0 -0
  13. {answer42-0.11.2 → answer42-0.11.3}/docs/agent-installation.md +0 -0
  14. {answer42-0.11.2 → answer42-0.11.3}/docs/architecture.md +0 -0
  15. {answer42-0.11.2 → answer42-0.11.3}/docs/assets/answer42-logo.png +0 -0
  16. {answer42-0.11.2 → answer42-0.11.3}/docs/assets/platform42-logo.svg +0 -0
  17. {answer42-0.11.2 → answer42-0.11.3}/docs/installation.md +0 -0
  18. {answer42-0.11.2 → answer42-0.11.3}/scripts/build_cf.py +0 -0
  19. {answer42-0.11.2 → answer42-0.11.3}/scripts/e2e_http_smoke.py +0 -0
  20. {answer42-0.11.2 → answer42-0.11.3}/scripts/e2e_stable.py +0 -0
  21. {answer42-0.11.2 → answer42-0.11.3}/scripts/openclaw_mcp_autoreload.py +0 -0
  22. {answer42-0.11.2 → answer42-0.11.3}/scripts/rag_cli.py +0 -0
  23. {answer42-0.11.2 → answer42-0.11.3}/scripts/read_webclient_start_info.py +0 -0
  24. {answer42-0.11.2 → answer42-0.11.3}/src/cf/ConfigDumpInfo.xml +0 -0
  25. {answer42-0.11.2 → answer42-0.11.3}/src/cf/Configuration.xml +0 -0
  26. {answer42-0.11.2 → answer42-0.11.3}/src/cf/DataProcessors/MCPTestManager/Ext/ObjectModule.bsl +0 -0
  27. {answer42-0.11.2 → answer42-0.11.3}/src/cf/DataProcessors/MCPTestManager/Forms//320/244/320/276/321/200/320/274/320/260/Ext/Form.xml" +0 -0
  28. {answer42-0.11.2 → answer42-0.11.3}/src/cf/DataProcessors/MCPTestManager/Forms//320/244/320/276/321/200/320/274/320/260.xml" +0 -0
  29. {answer42-0.11.2 → answer42-0.11.3}/src/cf/DataProcessors/MCPTestManager.xml +0 -0
  30. {answer42-0.11.2 → answer42-0.11.3}/src/cf/Ext/ManagedApplicationModule.bsl +0 -0
  31. {answer42-0.11.2 → answer42-0.11.3}/src/cf/Languages//320/240/321/203/321/201/321/201/320/272/320/270/320/271.xml" +0 -0
  32. {answer42-0.11.2 → answer42-0.11.3}/src/client_cf/Catalogs//320/237/320/241_/320/222/320/273/320/260/320/264/320/265/320/273/320/265/321/206.xml" +0 -0
  33. {answer42-0.11.2 → answer42-0.11.3}/src/client_cf/Catalogs//320/237/320/241_/320/241/320/277/321/200/320/260/320/262/320/276/321/207/320/275/320/270/320/2721.xml" +0 -0
  34. {answer42-0.11.2 → answer42-0.11.3}/src/client_cf/ConfigDumpInfo.xml +0 -0
  35. {answer42-0.11.2 → answer42-0.11.3}/src/client_cf/Configuration.xml +0 -0
  36. {answer42-0.11.2 → answer42-0.11.3}/src/client_cf/Languages//320/240/321/203/321/201/321/201/320/272/320/270/320/271.xml" +0 -0
  37. {answer42-0.11.2 → answer42-0.11.3}/src/client_cf/Reports//320/237/320/241_/320/241/320/277/320/270/321/201/320/276/320/272/320/255/320/273/320/265/320/274/320/265/320/275/321/202/320/276/320/262/Ext/ManagerModule.bsl" +0 -0
  38. {answer42-0.11.2 → answer42-0.11.3}/src/client_cf/Reports//320/237/320/241_/320/241/320/277/320/270/321/201/320/276/320/272/320/255/320/273/320/265/320/274/320/265/320/275/321/202/320/276/320/262/Ext/ObjectModule.bsl" +0 -0
  39. {answer42-0.11.2 → answer42-0.11.3}/src/client_cf/Reports//320/237/320/241_/320/241/320/277/320/270/321/201/320/276/320/272/320/255/320/273/320/265/320/274/320/265/320/275/321/202/320/276/320/262/Templates//320/236/321/201/320/275/320/276/320/262/320/275/320/260/321/217/320/241/321/205/320/265/320/274/320/260/320/232/320/276/320/274/320/277/320/276/320/275/320/276/320/262/320/272/320/270/320/224/320/260/320/275/320/275/321/213/321/205/Ext/Template.xml" +0 -0
  40. {answer42-0.11.2 → answer42-0.11.3}/src/client_cf/Reports//320/237/320/241_/320/241/320/277/320/270/321/201/320/276/320/272/320/255/320/273/320/265/320/274/320/265/320/275/321/202/320/276/320/262/Templates//320/236/321/201/320/275/320/276/320/262/320/275/320/260/321/217/320/241/321/205/320/265/320/274/320/260/320/232/320/276/320/274/320/277/320/276/320/275/320/276/320/262/320/272/320/270/320/224/320/260/320/275/320/275/321/213/321/205.xml" +0 -0
  41. {answer42-0.11.2 → answer42-0.11.3}/src/client_cf/Reports//320/237/320/241_/320/241/320/277/320/270/321/201/320/276/320/272/320/255/320/273/320/265/320/274/320/265/320/275/321/202/320/276/320/262.xml" +0 -0
  42. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/__init__.py +0 -0
  43. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/assets/__init__.py +0 -0
  44. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/auth.py +0 -0
  45. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/bridge.py +0 -0
  46. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/browser_agent.py +0 -0
  47. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/credentials.py +0 -0
  48. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/credentials_cli.py +0 -0
  49. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/html_agent.py +0 -0
  50. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/os_support.py +0 -0
  51. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/platform.py +0 -0
  52. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/rag/__init__.py +0 -0
  53. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/rag/detect.py +0 -0
  54. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/rag/dump.py +0 -0
  55. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/rag/model.py +0 -0
  56. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/rag/parsers.py +0 -0
  57. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/rag/service.py +0 -0
  58. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/rag/store.py +0 -0
  59. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/rag/summary_backend.py +0 -0
  60. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/rag/summary_vector.py +0 -0
  61. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/recorder.py +0 -0
  62. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/release_helper.py +0 -0
  63. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/runtime.py +0 -0
  64. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/skill_installer.py +0 -0
  65. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/tool_groups.py +0 -0
  66. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/webclient_probe.py +0 -0
  67. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/webkit_patch.py +0 -0
  68. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/win_desktop.py +0 -0
  69. {answer42-0.11.2 → answer42-0.11.3}/src/mcp_1c/window_control.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: answer42
3
- Version: 0.11.2
3
+ Version: 0.11.3
4
4
  Summary: Answer42 — The Answer to Life, Universe, and 1C — UI Driver. MCP-powered 1C:Enterprise UI automation: click, fill, navigate, test, and introspect managed forms through the test-client API
5
5
  Author: Marvin (AI Assistant), 42Clouds, and contributors
6
6
  Author-email: "Kosolapov Stanislav (proDOOMman)" <prodoomman@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "answer42"
3
- version = "0.11.2"
3
+ version = "0.11.3"
4
4
  description = "Answer42 — The Answer to Life, Universe, and 1C — UI Driver. MCP-powered 1C:Enterprise UI automation: click, fill, navigate, test, and introspect managed forms through the test-client API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -359,7 +359,7 @@
359
359
 
360
360
  &НаКлиенте
361
361
  Функция ВерсияПротоколаМенеджераMCP()
362
- Возврат "2026.11.14.1";
362
+ Возврат "2026.11.16.1";
363
363
  КонецФункции
364
364
 
365
365
  &НаКлиенте
@@ -761,8 +761,12 @@
761
761
  // Клиент тестирования в браузере: его находят по идентификатору (параметр TESTCLIENTID адреса публикации),
762
762
  // без адреса и порта: с ними платформа ищет тонкий клиент по TCP и не находит браузер.
763
763
  ИдентификаторКлиента = СвойствоСтруктуры(Параметры, "client_id", "");
764
+ АдресСервераСопряжения = СвойствоСтруктуры(Параметры, "pairing_host", "");
764
765
  Если ПустаяСтрока(ИдентификаторКлиента) Тогда
765
766
  ТестируемоеПриложение = Новый ТестируемоеПриложение(АдресКлиентаТестирования, Порт);
767
+ ИначеЕсли Не ПустаяСтрока(АдресСервераСопряжения) Тогда
768
+ // Клиент зарегистрирован на другом сервере (менеджер кластера, порт 1541, или веб-сервер, порт 1538).
769
+ ТестируемоеПриложение = Новый ТестируемоеПриложение(АдресСервераСопряжения, СвойствоСтруктуры(Параметры, "pairing_port", 1541), ИдентификаторКлиента);
766
770
  Иначе
767
771
  ТестируемоеПриложение = Новый ТестируемоеПриложение(Неопределено, Неопределено, ИдентификаторКлиента);
768
772
  КонецЕсли;
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  from dataclasses import dataclass
4
4
  from typing import Any
5
5
 
6
- MANAGER_PROTOCOL_VERSION = "2026.11.14.1"
6
+ MANAGER_PROTOCOL_VERSION = "2026.11.16.1"
7
7
 
8
8
 
9
9
  @dataclass(slots=True)
@@ -5534,6 +5534,7 @@ async def start_session(
5534
5534
  client_mode: Annotated[str, "Test client kind: thin (1cv8c /TESTCLIENT; default, or ONEC_MCP_CLIENT_MODE) or browser (the 1C web client in Chrome/Edge: needs a web publication URL; the html_* tools then work on the whole client page as on a site: DOM, text, clicks, typing, scripts, console, plus browser_screenshot/browser_press_key/browser_navigate)"] = "",
5535
5535
  browser_path: Annotated[str, "client_mode=browser: Chrome/Edge executable; empty = ONEC_MCP_BROWSER_PATH or an installed Chrome/Edge"] = "",
5536
5536
  browser_headless: Annotated[bool, "client_mode=browser: run the browser without a window"] = False,
5537
+ browser_test_server: Annotated[str, "client_mode=browser, remote publication: host[:port] of the server the web client registers on for testing (cluster manager, default port 1541; file base: web server, 1538); empty = ONEC_MCP_BROWSER_TEST_SERVER"] = "",
5537
5538
  html_mode: Annotated[str, "How the html_* tools reach live pages in HTML document fields: auto (Linux: remote; Windows: patched when the platform's Web Inspector has the Answer42 bridge, console otherwise; default, or ONEC_MCP_HTML_MODE), console (Windows: the inspector hot key and a loader typed into its console), patched (the bridge built into the inspector front end: Windows — installed into the platform, see html_inspector_patch; Linux — overlaid per session, nothing to install, needs xdotool), remote (Linux: the WebKitGTK remote inspector), disabled (no bridge: the html_* tools are unavailable)"] = "",
5538
5539
  ) -> dict[str, Any]:
5539
5540
  """One-shot session factory: detect version, start infrastructure, and connect the 1C test client.
@@ -5917,6 +5918,7 @@ async def start_session(
5917
5918
  connect_result = await _connect_browser_client_impl(
5918
5919
  sess, base_url=connect_base_url, username=username, password=password,
5919
5920
  browser_path=browser_path, headless=browser_headless, query=browser_query,
5921
+ test_server=browser_test_server,
5920
5922
  )
5921
5923
  else:
5922
5924
  connect_result = await _connect_test_client_impl(
@@ -6744,6 +6746,7 @@ async def _connect_browser_client_impl(
6744
6746
  browser_path: str = "",
6745
6747
  headless: bool = False,
6746
6748
  query: str = "",
6749
+ test_server: str = "",
6747
6750
  ) -> Any:
6748
6751
  """Open the web client in Chrome/Edge as a test client and attach the test manager to it by identifier."""
6749
6752
  start_monotonic = time.perf_counter()
@@ -6771,6 +6774,11 @@ async def _connect_browser_client_impl(
6771
6774
  # The manager finds the browser client through the server of its own infobase; a client registered on a
6772
6775
  # remote server is out of its reach.
6773
6776
  remote = (urlsplit(r_base).hostname or "").lower() not in {"localhost", "127.0.0.1", "::1", "[::1]"}
6777
+ pairing_host, pairing_port = "", 0
6778
+ test_server = (test_server or os.environ.get("ONEC_MCP_BROWSER_TEST_SERVER", "")).strip()
6779
+ if test_server:
6780
+ server_parts = urlsplit(f"//{test_server}")
6781
+ pairing_host, pairing_port = server_parts.hostname or "", server_parts.port or 1541
6774
6782
  try:
6775
6783
  open_url = f"{r_base}?{raw_query}" if raw_query else r_base
6776
6784
  url = browser_agent.browser_client_url(open_url, client_id)
@@ -6788,6 +6796,7 @@ async def _connect_browser_client_impl(
6788
6796
  "client_log": "", "connection_mode": "ws", "connection_value": r_base,
6789
6797
  "target_connection_mode": "ws", "expected_manager_protocol_version": MANAGER_PROTOCOL_VERSION,
6790
6798
  "connect_timeout_seconds": _BROWSER_PAIRING_SECONDS,
6799
+ "pairing_host": pairing_host, "pairing_port": pairing_port,
6791
6800
  }
6792
6801
  _touch_session(sess)
6793
6802
  page: dict[str, Any] = {}
@@ -6800,7 +6809,7 @@ async def _connect_browser_client_impl(
6800
6809
  # The web client registers itself with the server when its interface has started; the manager then finds
6801
6810
  # it by the identifier (it keeps trying for the pairing time).
6802
6811
  try:
6803
- if remote and os.environ.get("ONEC_MCP_BROWSER_FORCE_PAIRING") != "1":
6812
+ if remote and not pairing_host and os.environ.get("ONEC_MCP_BROWSER_FORCE_PAIRING") != "1":
6804
6813
  # The manager cannot see a client registered on a remote server and then blocks for minutes.
6805
6814
  raise BridgeError("pairing not attempted: remote publication")
6806
6815
  result = await sess.bridge.call("attach_test_client", params)
@@ -6810,8 +6819,9 @@ async def _connect_browser_client_impl(
6810
6819
  hint = (
6811
6820
  f"The publication {urlsplit(r_base).netloc} is on another host: the test manager looks for the "
6812
6821
  "browser client on the server of its own infobase, so it cannot find a client that registered "
6813
- "on a remote server. Open the base on this machine, or work through the html_* and browser_* "
6814
- "tools. ONEC_MCP_BROWSER_FORCE_PAIRING=1 tries the pairing anyway."
6822
+ "on a remote server. Pass browser_test_server (host[:port] of that server reachable from this "
6823
+ "machine, for example over a VPN: the cluster manager port 1541 or the web server port 1538), "
6824
+ "open the base on this machine, or work through the html_* and browser_* tools."
6815
6825
  )
6816
6826
  else:
6817
6827
  hint = "Check that the web publication is reachable and its web server allows the test-client ports."
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes