vamp-mcp 0.2.0 → 0.2.4

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.

Potentially problematic release.


This version of vamp-mcp might be problematic. Click here for more details.

Files changed (134) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +144 -107
  3. package/THIRD_PARTY_NOTICES.md +32 -27
  4. package/bin/vamp-mcp.mjs +37 -37
  5. package/notices/mcp-virtualbox-LICENSE +21 -21
  6. package/notices/mcp-virtualbox-PROVENANCE.json +37 -37
  7. package/package.json +51 -17
  8. package/runtime/backends/common/Test-Environment.ps1 +7 -6
  9. package/runtime/backends/common/guest-install.json +58 -0
  10. package/runtime/backends/common/guest_install.py +57 -0
  11. package/runtime/backends/common/host-support.cjs +16 -0
  12. package/runtime/backends/common/packer.cjs +16 -0
  13. package/runtime/backends/hyperv/scripts/Manage-Desktop.ps1 +40 -67
  14. package/runtime/backends/hyperv/scripts/Send-InstallerBoot.ps1 +25 -0
  15. package/runtime/backends/kvm/debian-preseed.cfg +35 -35
  16. package/runtime/backends/library/registry.py +77 -77
  17. package/runtime/backends/library/replay.py +154 -154
  18. package/runtime/backends/packer/answer_media.py +16 -0
  19. package/runtime/backends/packer/deploy-hyperv.ps1 +10 -0
  20. package/runtime/backends/packer/drivers.py +49 -0
  21. package/runtime/backends/packer/hyperv-network.ps1 +10 -0
  22. package/runtime/backends/packer/images.py +75 -0
  23. package/runtime/backends/packer/osinfo.py +113 -0
  24. package/runtime/backends/packer/policy.json +15 -0
  25. package/runtime/backends/packer/runner.py +224 -0
  26. package/runtime/backends/packer/templates.py +118 -0
  27. package/runtime/backends/packer/toolchain.py +80 -0
  28. package/runtime/backends/remote_ssh/server.mjs +310 -93
  29. package/runtime/backends/virtualbox/desktop.cjs +37 -0
  30. package/runtime/backends/virtualbox/display.py +101 -101
  31. package/runtime/backends/virtualbox/history.py +139 -139
  32. package/runtime/backends/virtualbox/mouse_click.py +15 -15
  33. package/runtime/backends/virtualbox/mouse_move.py +18 -18
  34. package/runtime/backends/virtualbox/profiles.json +46 -46
  35. package/runtime/backends/virtualbox/provision.py +238 -197
  36. package/runtime/backends/virtualbox/recording_listener.py +29 -29
  37. package/runtime/backends/virtualbox/recordings.py +39 -39
  38. package/runtime/backends/virtualbox/requirements.txt +7 -7
  39. package/runtime/backends/virtualbox/rpas/debian_first_boot/manifest.json +1 -1
  40. package/runtime/backends/virtualbox/rpas/debian_first_boot/run.robot +13 -13
  41. package/runtime/backends/virtualbox/rpas/debian_first_boot/workflow.py +75 -75
  42. package/runtime/backends/virtualbox/rpas/observe/manifest.json +7 -7
  43. package/runtime/backends/virtualbox/rpas/observe/run.robot +13 -13
  44. package/runtime/backends/virtualbox/rpas/observe/workflow.py +14 -14
  45. package/runtime/backends/virtualbox/server.mjs +288 -237
  46. package/runtime/backends/virtualbox/setup_windows_sdk.py +58 -58
  47. package/runtime/backends/virtualbox/shares.py +68 -68
  48. package/runtime/backends/virtualbox/snapshots.py +53 -53
  49. package/runtime/backends/virtualbox/transfers.py +89 -89
  50. package/runtime/backends/virtualbox/vnc.py +61 -61
  51. package/runtime/guest_keys.py +13 -13
  52. package/runtime/guest_setup/http/debian-preseed.cfg +39 -0
  53. package/runtime/guest_setup/http/postdeb.sh +50 -3
  54. package/runtime/guest_setup/http/postwin.ps1 +53 -28
  55. package/runtime/guest_setup/http/setup-all.ps1 +25 -25
  56. package/runtime/guest_setup/http/setup-win.cmd +7 -7
  57. package/runtime/guest_setup/http/setup.ps1 +44 -29
  58. package/runtime/guest_setup/kvm/setup-windows.ps1 +52 -52
  59. package/runtime/guest_setup/recorder/README.txt +12 -12
  60. package/runtime/guest_setup/recorder/RECORDER-LICENSE +674 -674
  61. package/runtime/guest_setup/recorder/RECORDING-GUIDE.txt +31 -31
  62. package/runtime/guest_setup/recorder/apply-display.py +41 -41
  63. package/runtime/guest_setup/recorder/configure-debian-mirrors.py +62 -62
  64. package/runtime/guest_setup/recorder/configure-gdm.py +23 -0
  65. package/runtime/guest_setup/recorder/configure-session.ps1 +14 -0
  66. package/runtime/guest_setup/recorder/gnome-display.py +60 -60
  67. package/runtime/guest_setup/recorder/install-display-startup.py +67 -39
  68. package/runtime/guest_setup/recorder/install-hypervisor-drivers.ps1 +34 -0
  69. package/runtime/guest_setup/recorder/install-resolution-shortcut.ps1 +36 -0
  70. package/runtime/guest_setup/recorder/postwin.cmd +10 -10
  71. package/runtime/guest_setup/recorder/prepare-recording.py +30 -30
  72. package/runtime/guest_setup/recorder/requirements-recorder.txt +2 -2
  73. package/runtime/guest_setup/recorder/session-policy.py +22 -0
  74. package/runtime/guest_setup/recorder/set-resolution-registry.ps1 +40 -0
  75. package/runtime/guest_setup/recorder/setup-user.py +53 -53
  76. package/runtime/guest_setup/recorder/setup-win.cmd +4 -60
  77. package/runtime/guest_setup/recorder/setup.ps1 +112 -81
  78. package/runtime/guest_setup/recorder/setup.sh +1 -0
  79. package/runtime/guest_setup/recorder/vamp-recorder.py +148 -148
  80. package/runtime/guest_setup/recorder/verify-recorder.py +4 -4
  81. package/runtime/guest_setup/recorder/windows-display.py +76 -76
  82. package/runtime/guest_setup/requirements.txt +2 -2
  83. package/runtime/guest_setup/setup-all.ps1 +35 -35
  84. package/runtime/guest_setup/vault/Install-VCRuntime.ps1 +26 -26
  85. package/runtime/guest_setup/vault/setup-guest-vault.ps1 +148 -148
  86. package/runtime/recording_converter.py +230 -230
  87. package/runtime/requirements-mcp.txt +11 -11
  88. package/runtime/rpas/README.md +161 -161
  89. package/runtime/rpas/captcha_handoff/manifest.json +27 -27
  90. package/runtime/rpas/captcha_handoff/run.robot +16 -16
  91. package/runtime/rpas/captcha_handoff/workflow.py +11 -11
  92. package/runtime/rpas/common.resource +26 -26
  93. package/runtime/rpas/debian_update/manifest.json +27 -27
  94. package/runtime/rpas/debian_update/run.robot +17 -17
  95. package/runtime/rpas/debian_update/workflow.py +13 -13
  96. package/runtime/rpas/desktop_control/manifest.json +26 -26
  97. package/runtime/rpas/desktop_control/run.robot +27 -27
  98. package/runtime/rpas/desktop_control/workflow.py +51 -51
  99. package/runtime/rpas/firefox_launch/manifest.json +27 -27
  100. package/runtime/rpas/firefox_launch/run.robot +15 -15
  101. package/runtime/rpas/firefox_launch/workflow.py +25 -25
  102. package/runtime/rpas/firefox_naver/manifest.json +27 -27
  103. package/runtime/rpas/firefox_naver/run.robot +21 -21
  104. package/runtime/rpas/firefox_naver/workflow.py +28 -28
  105. package/runtime/rpas/kvm_validation/README.md +11 -11
  106. package/runtime/rpas/kvm_validation/manifest.json +28 -28
  107. package/runtime/rpas/kvm_validation/run.robot +30 -30
  108. package/runtime/rpas/kvm_validation/workflow.py +91 -91
  109. package/runtime/rpas/manifest.schema.json +105 -105
  110. package/runtime/rpas/naver_login/login.robot +25 -25
  111. package/runtime/rpas/naver_login/manifest.json +33 -33
  112. package/runtime/rpas/naver_login/run.robot +20 -20
  113. package/runtime/rpas/naver_login/workflow.py +32 -32
  114. package/runtime/rpas/windows_naver_recorded/README.md +24 -24
  115. package/runtime/rpas/windows_naver_recorded/conversion.json +25 -25
  116. package/runtime/rpas/windows_naver_recorded/manifest.json +28 -28
  117. package/runtime/rpas/windows_naver_recorded/run.robot +37 -37
  118. package/runtime/rpas/windows_naver_recorded/workflow.py +32 -32
  119. package/runtime/scripts/build_recorder_media.py +39 -39
  120. package/runtime/scripts/macos/setup-host.sh +0 -0
  121. package/runtime/scripts/script_server.py +571 -517
  122. package/runtime/skills/vamp-rpa-ui-checks/SKILL.md +26 -0
  123. package/runtime/skills/vamp-rpa-ui-checks/agents/openai.yaml +4 -0
  124. package/runtime/skills/vamp-rpa-ui-checks/references/display.md +12 -0
  125. package/runtime/skills/vamp-rpa-ui-checks/references/user-guide.md +51 -0
  126. package/runtime/skills/vamp-ui-cleanup/SKILL.md +15 -0
  127. package/runtime/skills/vamp-ui-cleanup/agents/openai.yaml +4 -0
  128. package/runtime/skills/vamp-ui-validation/SKILL.md +27 -0
  129. package/runtime/skills/vamp-ui-validation/agents/openai.yaml +4 -0
  130. package/runtime/third_party/mcp-virtualbox/scripts/mouse_click.py +65 -65
  131. package/runtime/third_party/pyautogui-recorder/LICENSE +674 -674
  132. package/runtime/third_party/pyautogui-recorder/PROVENANCE.json +16 -16
  133. package/runtime/third_party/pyautogui-recorder/PyAutoGuiRecorder.py +169 -169
  134. package/runtime/third_party/pyautogui-recorder/README.md +53 -53
@@ -1,24 +1,24 @@
1
- # windows_naver_recorded
2
-
3
- Generated from `naver_login_rpa` without executing source code.
4
-
5
- - Guest: `windows11`, 1920×1080; source space: `guest`.
6
- - Review `conversion.json` and the private `recording.local.json` before replay.
7
- - `run.robot` controls the order; `workflow.py` and `recording_runtime.py` execute SPICE input.
8
- - Default run returns `needs_review` without connecting to the VM.
9
- - Explicit replay: `.venv/bin/python scripts/run_rpa.py windows_naver_recorded --var ALLOW_REPLAY:True --var SPICE_URI:<actual-guest-uri>`
10
- - This refined Naver package verifies login-screen arrival with YOLO+OCR; it never claims an account was signed in.
11
- - `recording.local.json` is excluded from Git because recorded keystrokes can contain credentials. Regenerate from a local source on a new checkout.
12
- - See [conversion guide](../../docs/RECORDING_CONVERSION.md) for refinement and credential replacement.
13
-
14
-
15
- ## 추가한 목적 검증
16
-
17
- 이 패키지의 최종 목표는 **네이버 로그인 화면 도달**입니다. `workflow.py`의 `Verify Naver Login Reached`는 YOLO+OCR로 ID·비밀번호·로그인 버튼, 위치 관계와 `nid.naver.com`을 함께 검사합니다. 실제 계정을 입력하거나 로그인 제출을 수행하는 패키지가 아닙니다. 기본 `LANGUAGES`는 `ko,en`입니다.
18
-
19
-
20
- ## 실제 검증 기록
21
-
22
- 2026-11-15 Windows KVM 게스트에서 원본의 80개 동작을 한 번 재생해 로그인 화면에 도달했습니다. 처음에는 제목 NAVER와 ID placeholder가 한 YOLO 영역으로 합쳐져 정확 문자열 검증이 실패했습니다. 개별 OCR reading으로 필드를 찾도록 수정한 뒤 클릭을 다시 재생하지 않고 현재 화면을 재검사해 ID·비밀번호·로그인 영역과 도메인을 확인했습니다. 실제 자격 증명은 입력/제출하지 않았습니다.
23
-
24
- 원래 실패 기록: `artifacts/windows-naver-recorded-live/`; 수정 후 읽기 전용 확인: `artifacts/windows-naver-recorded-verification/`. 이 증거는 로컬 artifacts이며 Git에 포함하지 않습니다.
1
+ # windows_naver_recorded
2
+
3
+ Generated from `naver_login_rpa` without executing source code.
4
+
5
+ - Guest: `windows11`, 1920×1080; source space: `guest`.
6
+ - Review `conversion.json` and the private `recording.local.json` before replay.
7
+ - `run.robot` controls the order; `workflow.py` and `recording_runtime.py` execute SPICE input.
8
+ - Default run returns `needs_review` without connecting to the VM.
9
+ - Explicit replay: `.venv/bin/python scripts/run_rpa.py windows_naver_recorded --var ALLOW_REPLAY:True --var SPICE_URI:<actual-guest-uri>`
10
+ - This refined Naver package verifies login-screen arrival with YOLO+OCR; it never claims an account was signed in.
11
+ - `recording.local.json` is excluded from Git because recorded keystrokes can contain credentials. Regenerate from a local source on a new checkout.
12
+ - See [conversion guide](../../docs/RECORDING_CONVERSION.md) for refinement and credential replacement.
13
+
14
+
15
+ ## 추가한 목적 검증
16
+
17
+ 이 패키지의 최종 목표는 **네이버 로그인 화면 도달**입니다. `workflow.py`의 `Verify Naver Login Reached`는 YOLO+OCR로 ID·비밀번호·로그인 버튼, 위치 관계와 `nid.naver.com`을 함께 검사합니다. 실제 계정을 입력하거나 로그인 제출을 수행하는 패키지가 아닙니다. 기본 `LANGUAGES`는 `ko,en`입니다.
18
+
19
+
20
+ ## 실제 검증 기록
21
+
22
+ 2026-11-15 Windows KVM 게스트에서 원본의 80개 동작을 한 번 재생해 로그인 화면에 도달했습니다. 처음에는 제목 NAVER와 ID placeholder가 한 YOLO 영역으로 합쳐져 정확 문자열 검증이 실패했습니다. 개별 OCR reading으로 필드를 찾도록 수정한 뒤 클릭을 다시 재생하지 않고 현재 화면을 재검사해 ID·비밀번호·로그인 영역과 도메인을 확인했습니다. 실제 자격 증명은 입력/제출하지 않았습니다.
23
+
24
+ 원래 실패 기록: `artifacts/windows-naver-recorded-live/`; 수정 후 읽기 전용 확인: `artifacts/windows-naver-recorded-verification/`. 이 증거는 로컬 artifacts이며 Git에 포함하지 않습니다.
@@ -1,25 +1,25 @@
1
- {
2
- "format_version": 1,
3
- "source_name": "naver_login_rpa",
4
- "source_sha256": "cd02dbe5b3aa7a30a772da3cbab2cd2edaf346872bd418daff685b736a328652",
5
- "guest_os": "windows11",
6
- "coordinate_space": "guest",
7
- "guest_resolution": [
8
- 1920,
9
- 1080
10
- ],
11
- "action_count": 80,
12
- "operations": {
13
- "key_down": 37,
14
- "key_up": 37,
15
- "click": 3,
16
- "wait": 3
17
- },
18
- "initial_win_r": true,
19
- "requires_review": true,
20
- "warnings": [
21
- "Mechanical conversion only: review target positions and replace waits with state checks.",
22
- "Review all recorded input for private credentials before replay or sharing.",
23
- "1 key(s) remain held at recording end; replay teardown will release them."
24
- ]
25
- }
1
+ {
2
+ "format_version": 1,
3
+ "source_name": "naver_login_rpa",
4
+ "source_sha256": "cd02dbe5b3aa7a30a772da3cbab2cd2edaf346872bd418daff685b736a328652",
5
+ "guest_os": "windows11",
6
+ "coordinate_space": "guest",
7
+ "guest_resolution": [
8
+ 1920,
9
+ 1080
10
+ ],
11
+ "action_count": 80,
12
+ "operations": {
13
+ "key_down": 37,
14
+ "key_up": 37,
15
+ "click": 3,
16
+ "wait": 3
17
+ },
18
+ "initial_win_r": true,
19
+ "requires_review": true,
20
+ "warnings": [
21
+ "Mechanical conversion only: review target positions and replace waits with state checks.",
22
+ "Review all recorded input for private credentials before replay or sharing.",
23
+ "1 key(s) remain held at recording end; replay teardown will release them."
24
+ ]
25
+ }
@@ -1,28 +1,28 @@
1
- {
2
- "format_version": 1,
3
- "id": "windows_naver_recorded",
4
- "name": "Windows 네이버 로그인 화면 접근 (수동 기록 변환)",
5
- "version": "0.1.0",
6
- "default_entrypoint": "run",
7
- "entrypoints": [
8
- {
9
- "name": "run",
10
- "file": "run.robot",
11
- "credentials": "environment_or_prompt"
12
- }
13
- ],
14
- "python_libraries": [
15
- "workflow.py"
16
- ],
17
- "dependencies": [
18
- "spice",
19
- "yolo",
20
- "paddleocr"
21
- ],
22
- "skill": "spice-recording-convert",
23
- "outputs": {
24
- "summary": "${OUTPUT DIR}/summary.json",
25
- "robot_log": "${OUTPUT DIR}/log.html",
26
- "robot_report": "${OUTPUT DIR}/report.html"
27
- }
28
- }
1
+ {
2
+ "format_version": 1,
3
+ "id": "windows_naver_recorded",
4
+ "name": "Windows 네이버 로그인 화면 접근 (수동 기록 변환)",
5
+ "version": "0.1.0",
6
+ "default_entrypoint": "run",
7
+ "entrypoints": [
8
+ {
9
+ "name": "run",
10
+ "file": "run.robot",
11
+ "credentials": "environment_or_prompt"
12
+ }
13
+ ],
14
+ "python_libraries": [
15
+ "workflow.py"
16
+ ],
17
+ "dependencies": [
18
+ "spice",
19
+ "yolo",
20
+ "paddleocr"
21
+ ],
22
+ "skill": "spice-recording-convert",
23
+ "outputs": {
24
+ "summary": "${OUTPUT DIR}/summary.json",
25
+ "robot_log": "${OUTPUT DIR}/log.html",
26
+ "robot_report": "${OUTPUT DIR}/report.html"
27
+ }
28
+ }
@@ -1,37 +1,37 @@
1
- *** Settings ***
2
- Resource ${CURDIR}/../common.resource
3
- Library ${CURDIR}/workflow.py WITH NAME Workflow
4
- Suite Setup Contract.Begin Result ${RPA_ID}
5
- Suite Teardown Stop RPA
6
- Task Teardown End Recorded Task
7
-
8
- *** Variables ***
9
- ${RPA_ID} windows_naver_recorded
10
- ${ALLOW_REPLAY} ${FALSE}
11
- ${EXPECTED_TEXT} ${EMPTY}
12
- ${LANGUAGES} ko,en
13
- ${DEVICE} auto
14
-
15
- *** Tasks ***
16
- Replay Reviewed Guest Recording
17
- ${ready}= Workflow.Load Recording ${ALLOW_REPLAY}
18
- IF not $ready
19
- ${review}= Workflow.Review Result
20
- Contract.Publish Result ${review}
21
- Skip Review conversion.json and recording.local.json; set ALLOW_REPLAY only after review.
22
- END
23
- Spice.Connect Spice ${SPICE_URI}
24
- Workflow.Check Guest Geometry
25
- ${count}= Workflow.Action Count
26
- FOR ${index} IN RANGE ${count}
27
- Workflow.Replay Event ${index}
28
- END
29
- ${result}= Workflow.Verify Naver Login Reached ${LANGUAGES} ${DEVICE}
30
- Contract.Publish Result ${result}
31
- Pause For User Verification ${result}
32
- Should Be Equal ${result}[status] succeeded
33
-
34
- *** Keywords ***
35
- End Recorded Task
36
- Run Keyword And Continue On Failure Workflow.Release Recorded Inputs
37
- Finish RPA Task
1
+ *** Settings ***
2
+ Resource ${CURDIR}/../common.resource
3
+ Library ${CURDIR}/workflow.py WITH NAME Workflow
4
+ Suite Setup Contract.Begin Result ${RPA_ID}
5
+ Suite Teardown Stop RPA
6
+ Task Teardown End Recorded Task
7
+
8
+ *** Variables ***
9
+ ${RPA_ID} windows_naver_recorded
10
+ ${ALLOW_REPLAY} ${FALSE}
11
+ ${EXPECTED_TEXT} ${EMPTY}
12
+ ${LANGUAGES} ko,en
13
+ ${DEVICE} auto
14
+
15
+ *** Tasks ***
16
+ Replay Reviewed Guest Recording
17
+ ${ready}= Workflow.Load Recording ${ALLOW_REPLAY}
18
+ IF not $ready
19
+ ${review}= Workflow.Review Result
20
+ Contract.Publish Result ${review}
21
+ Skip Review conversion.json and recording.local.json; set ALLOW_REPLAY only after review.
22
+ END
23
+ Spice.Connect Spice ${SPICE_URI}
24
+ Workflow.Check Guest Geometry
25
+ ${count}= Workflow.Action Count
26
+ FOR ${index} IN RANGE ${count}
27
+ Workflow.Replay Event ${index}
28
+ END
29
+ ${result}= Workflow.Verify Naver Login Reached ${LANGUAGES} ${DEVICE}
30
+ Contract.Publish Result ${result}
31
+ Pause For User Verification ${result}
32
+ Should Be Equal ${result}[status] succeeded
33
+
34
+ *** Keywords ***
35
+ End Recorded Task
36
+ Run Keyword And Continue On Failure Workflow.Release Recorded Inputs
37
+ Finish RPA Task
@@ -1,32 +1,32 @@
1
- """Generated adapter: keep detailed input and coordinates in Python/local data."""
2
- from pathlib import Path
3
- from robot.api.deco import keyword,library
4
- from recording_runtime import RecordedWorkflow
5
-
6
-
7
- @library(scope='SUITE',auto_keywords=False)
8
- class Workflow(RecordedWorkflow):
9
- def __init__(self):
10
- super().__init__(Path(__file__).resolve().parent)
11
-
12
- @keyword
13
- def verify_naver_login_reached(self,languages='ko,en',device='auto'):
14
- from robot.libraries.BuiltIn import BuiltIn
15
- from login_flow import detect_login_form
16
- from verification import detect_verification
17
- self.release_recorded_inputs()
18
- self.spice._pump(2)
19
- directory=Path(BuiltIn().get_variable_value('${OUTPUT DIR}'))/'destination'
20
- analysis=self.spice.analyze_guest_ui(str(directory/'ui.json'),languages,device)
21
- challenge=detect_verification([r for element in analysis['elements'] for r in element.get('readings',[])])
22
- if challenge['status']!='no_challenge_text':return challenge
23
- state=detect_login_form(analysis)
24
- roles=[role for role,element in state.get('form',{}).items() if element['kind']=='ui_region']
25
- # All semantic fields + browser origin are needed; YOLO must support at least one target region.
26
- verified=state['status']=='needs_credentials' and bool(roles)
27
- return {'status':'succeeded' if verified else 'verification_failed',
28
- 'goal':'naver_login_screen_reached','verification':'yolo_ocr',
29
- 'origin_verified':state.get('origin_verified',False),'form_verified':verified,
30
- 'yolo_roles':roles,'login_submitted':False,
31
- 'actions_replayed':self.completed,'details_path':str((directory/'ui.json').resolve()),
32
- **({} if verified else {'error_summary':state['status']})}
1
+ """Generated adapter: keep detailed input and coordinates in Python/local data."""
2
+ from pathlib import Path
3
+ from robot.api.deco import keyword,library
4
+ from recording_runtime import RecordedWorkflow
5
+
6
+
7
+ @library(scope='SUITE',auto_keywords=False)
8
+ class Workflow(RecordedWorkflow):
9
+ def __init__(self):
10
+ super().__init__(Path(__file__).resolve().parent)
11
+
12
+ @keyword
13
+ def verify_naver_login_reached(self,languages='ko,en',device='auto'):
14
+ from robot.libraries.BuiltIn import BuiltIn
15
+ from login_flow import detect_login_form
16
+ from verification import detect_verification
17
+ self.release_recorded_inputs()
18
+ self.spice._pump(2)
19
+ directory=Path(BuiltIn().get_variable_value('${OUTPUT DIR}'))/'destination'
20
+ analysis=self.spice.analyze_guest_ui(str(directory/'ui.json'),languages,device)
21
+ challenge=detect_verification([r for element in analysis['elements'] for r in element.get('readings',[])])
22
+ if challenge['status']!='no_challenge_text':return challenge
23
+ state=detect_login_form(analysis)
24
+ roles=[role for role,element in state.get('form',{}).items() if element['kind']=='ui_region']
25
+ # All semantic fields + browser origin are needed; YOLO must support at least one target region.
26
+ verified=state['status']=='needs_credentials' and bool(roles)
27
+ return {'status':'succeeded' if verified else 'verification_failed',
28
+ 'goal':'naver_login_screen_reached','verification':'yolo_ocr',
29
+ 'origin_verified':state.get('origin_verified',False),'form_verified':verified,
30
+ 'yolo_roles':roles,'login_submitted':False,
31
+ 'actions_replayed':self.completed,'details_path':str((directory/'ui.json').resolve()),
32
+ **({} if verified else {'error_summary':state['status']})}
@@ -1,39 +1,39 @@
1
- #!/usr/bin/env python3
2
- """Build offline guest installer media; never executes the guest recorder."""
3
- from pathlib import Path
4
- import argparse
5
- import io
6
- import json
7
- import zipfile
8
-
9
- ROOT = Path(__file__).resolve().parents[1]
10
-
11
- def build(output=None):
12
- import pycdlib
13
- destination = Path(output or ROOT/'artifacts/recorder-setup.iso').resolve()
14
- destination.parent.mkdir(parents=True,exist_ok=True)
15
- payload = io.BytesIO()
16
- with zipfile.ZipFile(payload,'w',zipfile.ZIP_DEFLATED) as archive:
17
- for path in sorted((ROOT/'third_party/pyautogui-recorder').rglob('*')):
18
- if path.is_file():
19
- archive.write(path,str(path.relative_to(ROOT/'third_party/pyautogui-recorder')))
20
- files = {'recorder.zip':payload.getvalue()}
21
- files.update({p.name:p.read_bytes() for p in (ROOT/'guest_setup/recorder').iterdir() if p.is_file()})
22
- iso = pycdlib.PyCdlib()
23
- iso.new(interchange_level=3,joliet=3,vol_ident='RPA_RECORDER')
24
- buffers=[]
25
- try:
26
- for index,(name,content) in enumerate(sorted(files.items())):
27
- stream=io.BytesIO(content);buffers.append(stream)
28
- iso.add_fp(stream,len(content),iso_path=f'/FILE{index:03d}.DAT;1',joliet_path='/'+name)
29
- iso.write(str(destination))
30
- finally: iso.close()
31
- return {'status':'media_built','iso':str(destination),'guest_setup_completed':False,
32
- 'guest_installers':{'windows11':'setup-win.cmd','debian':'setup.sh'},
33
- 'recorder_license':'GPL-3.0','recording_started':False}
34
-
35
- if __name__=='__main__':
36
- parser=argparse.ArgumentParser(description=__doc__)
37
- parser.add_argument('--output')
38
- args=parser.parse_args()
39
- print(json.dumps(build(args.output)))
1
+ #!/usr/bin/env python3
2
+ """Build offline guest installer media; never executes the guest recorder."""
3
+ from pathlib import Path
4
+ import argparse
5
+ import io
6
+ import json
7
+ import zipfile
8
+
9
+ ROOT = Path(__file__).resolve().parents[1]
10
+
11
+ def build(output=None):
12
+ import pycdlib
13
+ destination = Path(output or ROOT/'artifacts/recorder-setup.iso').resolve()
14
+ destination.parent.mkdir(parents=True,exist_ok=True)
15
+ payload = io.BytesIO()
16
+ with zipfile.ZipFile(payload,'w',zipfile.ZIP_DEFLATED) as archive:
17
+ for path in sorted((ROOT/'third_party/pyautogui-recorder').rglob('*')):
18
+ if path.is_file():
19
+ archive.write(path,str(path.relative_to(ROOT/'third_party/pyautogui-recorder')))
20
+ files = {'recorder.zip':payload.getvalue()}
21
+ files.update({p.name:p.read_bytes() for p in (ROOT/'guest_setup/recorder').iterdir() if p.is_file()})
22
+ iso = pycdlib.PyCdlib()
23
+ iso.new(interchange_level=3,joliet=3,vol_ident='RPA_RECORDER')
24
+ buffers=[]
25
+ try:
26
+ for index,(name,content) in enumerate(sorted(files.items())):
27
+ stream=io.BytesIO(content);buffers.append(stream)
28
+ iso.add_fp(stream,len(content),iso_path=f'/FILE{index:03d}.DAT;1',joliet_path='/'+name)
29
+ iso.write(str(destination))
30
+ finally: iso.close()
31
+ return {'status':'media_built','iso':str(destination),'guest_setup_completed':False,
32
+ 'guest_installers':{'windows11':'setup-win.cmd','debian':'setup.sh'},
33
+ 'recorder_license':'GPL-3.0','recording_started':False}
34
+
35
+ if __name__=='__main__':
36
+ parser=argparse.ArgumentParser(description=__doc__)
37
+ parser.add_argument('--output')
38
+ args=parser.parse_args()
39
+ print(json.dumps(build(args.output)))
File without changes