android-midscene-automation 1.1.11 → 2.0.0
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.
- package/README.md +11 -1776
- package/bin/android-midscene-automation.js +2 -104
- package/package.json +6 -76
- package/AI/350/257/206/345/210/253/346/223/215/344/275/234/350/257/264/346/230/216.md +0 -442
- package/CHANGELOG.md +0 -286
- package/FAQ.md +0 -105
- package/USAGE.md +0 -1085
- package/artemis-main/.dockerignore +0 -15
- package/artemis-main/.env.example +0 -34
- package/artemis-main/CONTRIBUTING.md +0 -35
- package/artemis-main/Dockerfile +0 -68
- package/artemis-main/LICENSE +0 -202
- package/artemis-main/Makefile +0 -115
- package/artemis-main/README.md +0 -322
- package/artemis-main/README_CN.md +0 -320
- package/artemis-main/apps/__init__.py +0 -15
- package/artemis-main/apps/admin_console/__init__.py +0 -19
- package/artemis-main/apps/admin_console/core/__init__.py +0 -13
- package/artemis-main/apps/admin_console/core/config.py +0 -43
- package/artemis-main/apps/admin_console/core/security.py +0 -178
- package/artemis-main/apps/admin_console/core/state.py +0 -243
- package/artemis-main/apps/admin_console/database/__init__.py +0 -13
- package/artemis-main/apps/admin_console/database/connection.py +0 -60
- package/artemis-main/apps/admin_console/database/repositories/__init__.py +0 -13
- package/artemis-main/apps/admin_console/database/repositories/session_repository.py +0 -564
- package/artemis-main/apps/admin_console/database/repositories/step_repository.py +0 -512
- package/artemis-main/apps/admin_console/database/repositories/trace_repository.py +0 -133
- package/artemis-main/apps/admin_console/index.html +0 -3787
- package/artemis-main/apps/admin_console/replay_manager.py +0 -2585
- package/artemis-main/apps/admin_console/routers/__init__.py +0 -13
- package/artemis-main/apps/admin_console/routers/media.py +0 -198
- package/artemis-main/apps/admin_console/routers/replay.py +0 -91
- package/artemis-main/apps/admin_console/routers/sessions.py +0 -239
- package/artemis-main/apps/admin_console/routers/steps.py +0 -109
- package/artemis-main/apps/admin_console/routers/stream.py +0 -56
- package/artemis-main/apps/admin_console/routers/system.py +0 -761
- package/artemis-main/apps/admin_console/routers/tasks.py +0 -517
- package/artemis-main/apps/admin_console/schemas/__init__.py +0 -13
- package/artemis-main/apps/admin_console/schemas/task_schema.py +0 -47
- package/artemis-main/apps/admin_console/server.py +0 -541
- package/artemis-main/apps/admin_console/services/__init__.py +0 -13
- package/artemis-main/apps/admin_console/services/device_stream_service.py +0 -137
- package/artemis-main/apps/admin_console/services/ipc_service.py +0 -262
- package/artemis-main/apps/admin_console/services/media_service.py +0 -623
- package/artemis-main/apps/admin_console/services/model_service.py +0 -148
- package/artemis-main/apps/admin_console/services/task_preset_catalog.py +0 -514
- package/artemis-main/apps/admin_console/services/task_queue_service.py +0 -1719
- package/artemis-main/apps/admin_console/services/worker_process_io.py +0 -144
- package/artemis-main/apps/showcase_ui/README.md +0 -31
- package/artemis-main/apps/showcase_ui/angular.json +0 -132
- package/artemis-main/apps/showcase_ui/package-lock.json +0 -9472
- package/artemis-main/apps/showcase_ui/package.json +0 -39
- package/artemis-main/apps/showcase_ui/proxy.conf.json +0 -23
- package/artemis-main/apps/showcase_ui/public/favicon.ico +0 -0
- package/artemis-main/apps/showcase_ui/public/logo.png +0 -0
- package/artemis-main/apps/showcase_ui/public/logo.svg +0 -56
- package/artemis-main/apps/showcase_ui/src/app/app.component.html +0 -24
- package/artemis-main/apps/showcase_ui/src/app/app.component.scss +0 -49
- package/artemis-main/apps/showcase_ui/src/app/app.component.spec.ts +0 -42
- package/artemis-main/apps/showcase_ui/src/app/app.component.ts +0 -32
- package/artemis-main/apps/showcase_ui/src/app/app.config.ts +0 -29
- package/artemis-main/apps/showcase_ui/src/app/app.routes.ts +0 -27
- package/artemis-main/apps/showcase_ui/src/app/components/agent-stream/agent-stream-startup.spec.ts +0 -108
- package/artemis-main/apps/showcase_ui/src/app/components/agent-stream/agent-stream.component.html +0 -1436
- package/artemis-main/apps/showcase_ui/src/app/components/agent-stream/agent-stream.component.scss +0 -3973
- package/artemis-main/apps/showcase_ui/src/app/components/agent-stream/agent-stream.component.ts +0 -2235
- package/artemis-main/apps/showcase_ui/src/app/components/chat-interface/chat-interface.component.html +0 -380
- package/artemis-main/apps/showcase_ui/src/app/components/chat-interface/chat-interface.component.scss +0 -1171
- package/artemis-main/apps/showcase_ui/src/app/components/chat-interface/chat-interface.component.ts +0 -270
- package/artemis-main/apps/showcase_ui/src/app/components/floating-video-player/floating-video-player.component.html +0 -433
- package/artemis-main/apps/showcase_ui/src/app/components/floating-video-player/floating-video-player.component.scss +0 -987
- package/artemis-main/apps/showcase_ui/src/app/components/floating-video-player/floating-video-player.component.ts +0 -632
- package/artemis-main/apps/showcase_ui/src/app/components/legacy-agent-stream/legacy-agent-stream.component.html +0 -130
- package/artemis-main/apps/showcase_ui/src/app/components/legacy-agent-stream/legacy-agent-stream.component.scss +0 -406
- package/artemis-main/apps/showcase_ui/src/app/components/legacy-agent-stream/legacy-agent-stream.component.ts +0 -74
- package/artemis-main/apps/showcase_ui/src/app/components/nav-switcher/nav-switcher.component.scss +0 -115
- package/artemis-main/apps/showcase_ui/src/app/components/nav-switcher/nav-switcher.component.ts +0 -52
- package/artemis-main/apps/showcase_ui/src/app/core/data/smart-tasks.data.ts +0 -334
- package/artemis-main/apps/showcase_ui/src/app/core/i18n/language.service.spec.ts +0 -55
- package/artemis-main/apps/showcase_ui/src/app/core/i18n/language.service.ts +0 -61
- package/artemis-main/apps/showcase_ui/src/app/core/i18n/translate.pipe.ts +0 -11
- package/artemis-main/apps/showcase_ui/src/app/core/i18n/zh-cn.ts +0 -651
- package/artemis-main/apps/showcase_ui/src/app/core/models/markdown.model.ts +0 -43
- package/artemis-main/apps/showcase_ui/src/app/core/models/pro-tuning.model.spec.ts +0 -47
- package/artemis-main/apps/showcase_ui/src/app/core/models/pro-tuning.model.ts +0 -165
- package/artemis-main/apps/showcase_ui/src/app/core/models/session.model.ts +0 -85
- package/artemis-main/apps/showcase_ui/src/app/core/models/stream.model.ts +0 -246
- package/artemis-main/apps/showcase_ui/src/app/core/models/system.model.ts +0 -118
- package/artemis-main/apps/showcase_ui/src/app/core/services/task-recommendation.service.ts +0 -111
- package/artemis-main/apps/showcase_ui/src/app/pages/home/home.component.html +0 -2130
- package/artemis-main/apps/showcase_ui/src/app/pages/home/home.component.scss +0 -5204
- package/artemis-main/apps/showcase_ui/src/app/pages/home/home.component.ts +0 -1189
- package/artemis-main/apps/showcase_ui/src/app/pages/legacy-workspace/legacy-workspace.component.html +0 -39
- package/artemis-main/apps/showcase_ui/src/app/pages/legacy-workspace/legacy-workspace.component.scss +0 -151
- package/artemis-main/apps/showcase_ui/src/app/pages/legacy-workspace/legacy-workspace.component.ts +0 -58
- package/artemis-main/apps/showcase_ui/src/app/pages/workspace/workspace.component.html +0 -201
- package/artemis-main/apps/showcase_ui/src/app/pages/workspace/workspace.component.scss +0 -886
- package/artemis-main/apps/showcase_ui/src/app/pages/workspace/workspace.component.ts +0 -324
- package/artemis-main/apps/showcase_ui/src/app/services/agent.service.spec.ts +0 -418
- package/artemis-main/apps/showcase_ui/src/app/services/agent.service.ts +0 -2012
- package/artemis-main/apps/showcase_ui/src/app/services/system.service.spec.ts +0 -173
- package/artemis-main/apps/showcase_ui/src/app/services/system.service.ts +0 -620
- package/artemis-main/apps/showcase_ui/src/app/utils/action-formatter.util.spec.ts +0 -513
- package/artemis-main/apps/showcase_ui/src/app/utils/action-formatter.util.ts +0 -1015
- package/artemis-main/apps/showcase_ui/src/app/utils/image-overlay.util.spec.ts +0 -85
- package/artemis-main/apps/showcase_ui/src/app/utils/image-overlay.util.ts +0 -662
- package/artemis-main/apps/showcase_ui/src/app/utils/markdown-parser.util.spec.ts +0 -70
- package/artemis-main/apps/showcase_ui/src/app/utils/markdown-parser.util.ts +0 -383
- package/artemis-main/apps/showcase_ui/src/app/utils/recording-timeline.util.spec.ts +0 -107
- package/artemis-main/apps/showcase_ui/src/app/utils/recording-timeline.util.ts +0 -123
- package/artemis-main/apps/showcase_ui/src/app/utils/run-info.util.spec.ts +0 -92
- package/artemis-main/apps/showcase_ui/src/app/utils/run-info.util.ts +0 -116
- package/artemis-main/apps/showcase_ui/src/app/utils/stream-aggregator.util.spec.ts +0 -640
- package/artemis-main/apps/showcase_ui/src/app/utils/stream-aggregator.util.ts +0 -1021
- package/artemis-main/apps/showcase_ui/src/app/utils/tool-formatter.util.spec.ts +0 -375
- package/artemis-main/apps/showcase_ui/src/app/utils/tool-formatter.util.ts +0 -1419
- package/artemis-main/apps/showcase_ui/src/index.html +0 -37
- package/artemis-main/apps/showcase_ui/src/main.ts +0 -22
- package/artemis-main/apps/showcase_ui/src/styles.scss +0 -60
- package/artemis-main/apps/showcase_ui/tsconfig.app.json +0 -23
- package/artemis-main/apps/showcase_ui/tsconfig.json +0 -27
- package/artemis-main/apps/showcase_ui/tsconfig.spec.json +0 -23
- package/artemis-main/artemis/__init__.py +0 -44
- package/artemis-main/artemis/__main__.py +0 -18
- package/artemis-main/artemis/_legacy_imports.py +0 -94
- package/artemis-main/artemis/_version.py +0 -30
- package/artemis-main/artemis/agents/__init__.py +0 -17
- package/artemis-main/artemis/agents/checker/checker.json +0 -9
- package/artemis-main/artemis/agents/checker/checker.py +0 -859
- package/artemis-main/artemis/agents/diagnoser/diagnoser.json +0 -23
- package/artemis-main/artemis/agents/diagnoser/diagnoser.py +0 -608
- package/artemis-main/artemis/agents/explorer/constants.py +0 -52
- package/artemis-main/artemis/agents/explorer/explorer.json +0 -57
- package/artemis-main/artemis/agents/explorer/explorer.py +0 -473
- package/artemis-main/artemis/agents/explorer/geometry.py +0 -73
- package/artemis-main/artemis/agents/explorer/native_runner.py +0 -878
- package/artemis-main/artemis/agents/explorer/perception_tools.py +0 -632
- package/artemis-main/artemis/agents/explorer/run_setup.py +0 -403
- package/artemis-main/artemis/agents/explorer/screen_index.py +0 -266
- package/artemis-main/artemis/agents/explorer/tiers.py +0 -110
- package/artemis-main/artemis/agents/explorer/tool_declarations.py +0 -394
- package/artemis-main/artemis/agents/explorer/universal_runner.py +0 -317
- package/artemis-main/artemis/agents/flash/context_compressor.py +0 -452
- package/artemis-main/artemis/agents/flash/flash_runner.md +0 -51
- package/artemis-main/artemis/agents/flash/flash_summarizer.md +0 -53
- package/artemis-main/artemis/agents/flash/flash_summarizer_single.md +0 -54
- package/artemis-main/artemis/agents/flash/runner.py +0 -1167
- package/artemis-main/artemis/agents/flash/summarizer.py +0 -511
- package/artemis-main/artemis/agents/history_analyzer/history_analyzer.md +0 -8
- package/artemis-main/artemis/agents/history_analyzer/history_analyzer.py +0 -182
- package/artemis-main/artemis/agents/image_processor/image_processor.md +0 -74
- package/artemis-main/artemis/agents/image_processor/image_processor.py +0 -322
- package/artemis-main/artemis/agents/log_analyzer/log_analyzer.md +0 -15
- package/artemis-main/artemis/agents/log_analyzer/log_analyzer.py +0 -403
- package/artemis-main/artemis/agents/log_analyzer/log_reader_sub_agent.md +0 -8
- package/artemis-main/artemis/agents/log_analyzer/output_analyzer.md +0 -11
- package/artemis-main/artemis/agents/log_analyzer/output_analyzer.py +0 -163
- package/artemis-main/artemis/agents/object_detector/object_detector.json +0 -9
- package/artemis-main/artemis/agents/object_detector/object_detector.py +0 -211
- package/artemis-main/artemis/agents/operator/operator.json +0 -3
- package/artemis-main/artemis/agents/operator/operator.py +0 -1394
- package/artemis-main/artemis/agents/operator/prompts.py +0 -1064
- package/artemis-main/artemis/agents/outputter/outputter.md +0 -36
- package/artemis-main/artemis/agents/outputter/outputter.py +0 -552
- package/artemis-main/artemis/agents/planner/planner.json +0 -32
- package/artemis-main/artemis/agents/planner/planner.py +0 -436
- package/artemis-main/artemis/agents/prompt_assembly.py +0 -79
- package/artemis-main/artemis/agents/summarizer/summarizer.py +0 -190
- package/artemis-main/artemis/agents/validator/action_execution.py +0 -98
- package/artemis-main/artemis/agents/validator/categories.py +0 -33
- package/artemis-main/artemis/agents/validator/execution_loop.py +0 -488
- package/artemis-main/artemis/agents/validator/incidents.py +0 -120
- package/artemis-main/artemis/agents/validator/pixel_safety_net.md +0 -15
- package/artemis-main/artemis/agents/validator/precondition_pixel.py +0 -320
- package/artemis-main/artemis/agents/validator/precondition_xml.py +0 -672
- package/artemis-main/artemis/agents/validator/tool_declarations.py +0 -332
- package/artemis-main/artemis/agents/validator/validator.py +0 -188
- package/artemis-main/artemis/agents/video_analyzer/__init__.py +0 -15
- package/artemis-main/artemis/agents/video_analyzer/audio_native.py +0 -543
- package/artemis-main/artemis/agents/video_analyzer/blackboard.py +0 -821
- package/artemis-main/artemis/agents/video_analyzer/chunk_agentic.py +0 -455
- package/artemis-main/artemis/agents/video_analyzer/chunk_conversation.py +0 -491
- package/artemis-main/artemis/agents/video_analyzer/chunk_native.py +0 -437
- package/artemis-main/artemis/agents/video_analyzer/conflict_resolution.py +0 -137
- package/artemis-main/artemis/agents/video_analyzer/gemini_files.py +0 -162
- package/artemis-main/artemis/agents/video_analyzer/native_coordinator.py +0 -541
- package/artemis-main/artemis/agents/video_analyzer/reliability.py +0 -128
- package/artemis-main/artemis/agents/video_analyzer/universal_engine.py +0 -487
- package/artemis-main/artemis/agents/video_analyzer/universal_tools.py +0 -323
- package/artemis-main/artemis/agents/video_analyzer/video_analyzer.md +0 -51
- package/artemis-main/artemis/agents/video_analyzer/video_analyzer.py +0 -875
- package/artemis-main/artemis/agents/video_analyzer/video_sub_agent.md +0 -15
- package/artemis-main/artemis/agents/video_analyzer/video_sub_agent_audio.md +0 -12
- package/artemis-main/artemis/clients/accessibility_client.py +0 -438
- package/artemis-main/artemis/clients/screen_client_factory.py +0 -403
- package/artemis-main/artemis/config/__init__.py +0 -309
- package/artemis-main/artemis/config/agent.py +0 -1098
- package/artemis-main/artemis/config/constants.py +0 -151
- package/artemis-main/artemis/config/core/__init__.py +0 -24
- package/artemis-main/artemis/config/core/engine.py +0 -118
- package/artemis-main/artemis/config/core/interpolator.py +0 -78
- package/artemis-main/artemis/config/llm.py +0 -267
- package/artemis-main/artemis/config/paths.py +0 -244
- package/artemis-main/artemis/config/runtime.py +0 -197
- package/artemis-main/artemis/config/settings.py +0 -315
- package/artemis-main/artemis/constants.py +0 -47
- package/artemis-main/artemis/context.py +0 -289
- package/artemis-main/artemis/controllers/__init__.py +0 -41
- package/artemis-main/artemis/controllers/controller_factory.py +0 -41
- package/artemis-main/artemis/controllers/device_controller.py +0 -29
- package/artemis-main/artemis/controllers/types.py +0 -37
- package/artemis-main/artemis/controllers/unified_controller.py +0 -649
- package/artemis-main/artemis/core/__init__.py +0 -21
- package/artemis-main/artemis/core/diagnostics/__init__.py +0 -90
- package/artemis-main/artemis/core/diagnostics/adb_keys.py +0 -270
- package/artemis-main/artemis/core/diagnostics/adb_server_connection.py +0 -330
- package/artemis-main/artemis/core/diagnostics/device_smoke.py +0 -364
- package/artemis-main/artemis/core/diagnostics/emulator_manager.py +0 -501
- package/artemis-main/artemis/core/diagnostics/engine.py +0 -438
- package/artemis-main/artemis/core/diagnostics/hierarchy_parity.py +0 -216
- package/artemis-main/artemis/core/diagnostics/probes/adb_probe.py +0 -887
- package/artemis-main/artemis/core/diagnostics/probes/base.py +0 -45
- package/artemis-main/artemis/core/diagnostics/probes/credentials_probe.py +0 -296
- package/artemis-main/artemis/core/diagnostics/probes/host_probe.py +0 -427
- package/artemis-main/artemis/core/diagnostics/probes/runtime_probe.py +0 -169
- package/artemis-main/artemis/core/diagnostics/probes/toolchain_probe.py +0 -139
- package/artemis-main/artemis/core/diagnostics/readiness.py +0 -83
- package/artemis-main/artemis/core/diagnostics/schema.py +0 -118
- package/artemis-main/artemis/core/tool_declaration.py +0 -43
- package/artemis-main/artemis/core/tool_failure.py +0 -56
- package/artemis-main/artemis/data_engine/context_vars.py +0 -24
- package/artemis-main/artemis/data_engine/engine.py +0 -1615
- package/artemis-main/artemis/data_engine/history_reader.py +0 -142
- package/artemis-main/artemis/data_engine/models.py +0 -131
- package/artemis-main/artemis/data_engine/storage.py +0 -1245
- package/artemis-main/artemis/data_engine/trace.py +0 -727
- package/artemis-main/artemis/drivers/__init__.py +0 -48
- package/artemis-main/artemis/drivers/android/adb_driver.py +0 -507
- package/artemis-main/artemis/drivers/android/hierarchy.py +0 -64
- package/artemis-main/artemis/drivers/android/input_ime.py +0 -120
- package/artemis-main/artemis/drivers/android/recorder.py +0 -57
- package/artemis-main/artemis/drivers/base.py +0 -290
- package/artemis-main/artemis/drivers/cloud/cloud_driver.py +0 -117
- package/artemis-main/artemis/drivers/factory.py +0 -80
- package/artemis-main/artemis/drivers/mock/mock_driver.py +0 -198
- package/artemis-main/artemis/drivers/types.py +0 -67
- package/artemis-main/artemis/graph/checkpoints.py +0 -1243
- package/artemis-main/artemis/graph/graph.py +0 -1055
- package/artemis-main/artemis/graph/perception.py +0 -234
- package/artemis-main/artemis/graph/state.py +0 -151
- package/artemis-main/artemis/graph/visibility.py +0 -238
- package/artemis-main/artemis/interfaces/cli/__init__.py +0 -19
- package/artemis-main/artemis/interfaces/cli/commands/__init__.py +0 -15
- package/artemis-main/artemis/interfaces/cli/commands/batch.py +0 -278
- package/artemis-main/artemis/interfaces/cli/commands/doctor.py +0 -468
- package/artemis-main/artemis/interfaces/cli/commands/helper.py +0 -226
- package/artemis-main/artemis/interfaces/cli/commands/init.py +0 -193
- package/artemis-main/artemis/interfaces/cli/commands/mcp.py +0 -862
- package/artemis-main/artemis/interfaces/cli/commands/run.py +0 -463
- package/artemis-main/artemis/interfaces/cli/commands/server.py +0 -151
- package/artemis-main/artemis/interfaces/cli/commands/server_lifecycle.py +0 -328
- package/artemis-main/artemis/interfaces/cli/commands/trace.py +0 -111
- package/artemis-main/artemis/interfaces/cli/commands/ui.py +0 -404
- package/artemis-main/artemis/interfaces/cli/main.py +0 -109
- package/artemis-main/artemis/interfaces/sdk/__init__.py +0 -31
- package/artemis-main/artemis/interfaces/sdk/client.py +0 -19
- package/artemis-main/artemis/interfaces/sdk/task.py +0 -72
- package/artemis-main/artemis/llm/__init__.py +0 -25
- package/artemis-main/artemis/llm/fake_model.py +0 -179
- package/artemis-main/artemis/llm/google/__init__.py +0 -57
- package/artemis-main/artemis/llm/google/provider.py +0 -185
- package/artemis-main/artemis/llm/google/usage.py +0 -148
- package/artemis-main/artemis/llm/parser.py +0 -32
- package/artemis-main/artemis/llm/reliability.py +0 -267
- package/artemis-main/artemis/llm/router.py +0 -389
- package/artemis-main/artemis/llm/schemas.py +0 -36
- package/artemis-main/artemis/llm/structured.py +0 -196
- package/artemis-main/artemis/main.py +0 -58
- package/artemis-main/artemis/mcp/__init__.py +0 -20
- package/artemis-main/artemis/mcp/action_executor.py +0 -760
- package/artemis-main/artemis/mcp/action_manifest.py +0 -320
- package/artemis-main/artemis/mcp/action_names.py +0 -172
- package/artemis-main/artemis/mcp/action_server.py +0 -202
- package/artemis-main/artemis/mcp/action_session.py +0 -245
- package/artemis-main/artemis/mcp/action_specs.py +0 -868
- package/artemis-main/artemis/mcp/action_types.py +0 -86
- package/artemis-main/artemis/mcp/actuators/__init__.py +0 -21
- package/artemis-main/artemis/mcp/actuators/adb.py +0 -414
- package/artemis-main/artemis/mcp/actuators/base.py +0 -113
- package/artemis-main/artemis/mcp/actuators/mock.py +0 -70
- package/artemis-main/artemis/mcp/adb_server.py +0 -490
- package/artemis-main/artemis/mcp/observation.py +0 -133
- package/artemis-main/artemis/mcp/xml_search_server.py +0 -297
- package/artemis-main/artemis/memory/__init__.py +0 -90
- package/artemis-main/artemis/memory/chunking.py +0 -1843
- package/artemis-main/artemis/memory/context_policy.py +0 -226
- package/artemis-main/artemis/memory/step_capsule.md +0 -73
- package/artemis-main/artemis/memory/step_memory.py +0 -281
- package/artemis-main/artemis/memory/transcript.py +0 -798
- package/artemis-main/artemis/platform/__init__.py +0 -61
- package/artemis-main/artemis/platform/base.py +0 -104
- package/artemis-main/artemis/platform/darwin.py +0 -184
- package/artemis-main/artemis/platform/linux.py +0 -207
- package/artemis-main/artemis/platform/windows.py +0 -193
- package/artemis-main/artemis/resources/__init__.py +0 -46
- package/artemis-main/artemis/runtime/__init__.py +0 -108
- package/artemis-main/artemis/runtime/adb_endpoint.py +0 -173
- package/artemis-main/artemis/runtime/awake_lease.py +0 -283
- package/artemis-main/artemis/runtime/awake_service.py +0 -343
- package/artemis-main/artemis/runtime/cancel_requests.py +0 -254
- package/artemis-main/artemis/runtime/daemon_client.py +0 -422
- package/artemis-main/artemis/runtime/device_lock.py +0 -1013
- package/artemis-main/artemis/runtime/device_pool.py +0 -478
- package/artemis-main/artemis/runtime/helper_manager.py +0 -1030
- package/artemis-main/artemis/runtime/process_probe.py +0 -98
- package/artemis-main/artemis/runtime/server_lifecycle.py +0 -435
- package/artemis-main/artemis/runtime/supervisor.py +0 -121
- package/artemis-main/artemis/runtime/trace_store.py +0 -375
- package/artemis-main/artemis/sdk/__init__.py +0 -26
- package/artemis-main/artemis/sdk/agent.py +0 -485
- package/artemis-main/artemis/sdk/builders/__init__.py +0 -29
- package/artemis-main/artemis/sdk/builders/agent_config_builder.py +0 -474
- package/artemis-main/artemis/sdk/constants.py +0 -15
- package/artemis-main/artemis/sdk/run_outcome.py +0 -58
- package/artemis-main/artemis/sdk/types/__init__.py +0 -61
- package/artemis-main/artemis/sdk/types/agent.py +0 -89
- package/artemis-main/artemis/sdk/utils.py +0 -28
- package/artemis-main/artemis/services/llm.py +0 -1040
- package/artemis-main/artemis/services/token_meter.py +0 -267
- package/artemis-main/artemis/telemetry/__init__.py +0 -35
- package/artemis-main/artemis/telemetry/models.py +0 -64
- package/artemis-main/artemis/telemetry/replay.py +0 -34
- package/artemis-main/artemis/telemetry/storage/json_storage.py +0 -47
- package/artemis-main/artemis/telemetry/tracer.py +0 -85
- package/artemis-main/artemis/toolchain/__init__.py +0 -52
- package/artemis-main/artemis/toolchain/descriptors.py +0 -92
- package/artemis-main/artemis/toolchain/resolver.py +0 -185
- package/artemis-main/artemis/tools/base.py +0 -232
- package/artemis-main/artemis/tools/command_tool.py +0 -1240
- package/artemis-main/artemis/tools/committee_prompts.json +0 -5
- package/artemis-main/artemis/tools/committee_tool.py +0 -422
- package/artemis-main/artemis/tools/diagnoser_submit_answer_tool.py +0 -87
- package/artemis-main/artemis/tools/diagnostic_tool.py +0 -120
- package/artemis-main/artemis/tools/explorer_tool.py +0 -581
- package/artemis-main/artemis/tools/history/__init__.py +0 -398
- package/artemis-main/artemis/tools/history/replay.py +0 -120
- package/artemis-main/artemis/tools/history/screenshot.py +0 -139
- package/artemis-main/artemis/tools/history/search.py +0 -563
- package/artemis-main/artemis/tools/image_processor_tool.py +0 -124
- package/artemis-main/artemis/tools/index.py +0 -47
- package/artemis-main/artemis/tools/log_tool.py +0 -108
- package/artemis-main/artemis/tools/mobile/launch_app.py +0 -132
- package/artemis-main/artemis/tools/mobile/log_utils.py +0 -138
- package/artemis-main/artemis/tools/mobile/ocr.py +0 -202
- package/artemis-main/artemis/tools/mobile/read_hierarchy.py +0 -108
- package/artemis-main/artemis/tools/mobile/read_logs.py +0 -116
- package/artemis-main/artemis/tools/mobile/search_logs.py +0 -260
- package/artemis-main/artemis/tools/object_detection_tool.py +0 -244
- package/artemis-main/artemis/tools/scratchpad.py +0 -819
- package/artemis-main/artemis/tools/system/adb_shell.py +0 -31
- package/artemis-main/artemis/tools/tool_wrapper.py +0 -270
- package/artemis-main/artemis/tools/video_tool.py +0 -261
- package/artemis-main/artemis/tools/wait_tool.py +0 -97
- package/artemis-main/artemis/utils/app_launch_utils.py +0 -207
- package/artemis-main/artemis/utils/coordinates.py +0 -606
- package/artemis-main/artemis/utils/credentials_validator.py +0 -201
- package/artemis-main/artemis/utils/cv_canvas.py +0 -189
- package/artemis-main/artemis/utils/cython_compat.py +0 -45
- package/artemis-main/artemis/utils/element_hit_test.py +0 -80
- package/artemis-main/artemis/utils/image_diff.py +0 -335
- package/artemis-main/artemis/utils/image_hash.py +0 -80
- package/artemis-main/artemis/utils/notes.py +0 -470
- package/artemis-main/artemis/utils/ocr_api.py +0 -105
- package/artemis-main/artemis/utils/ocr_xml_fusion.py +0 -318
- package/artemis-main/artemis/utils/plan_grammar.py +0 -513
- package/artemis-main/artemis/utils/python_executor.py +0 -213
- package/artemis-main/artemis/utils/startup_progress.py +0 -60
- package/artemis-main/artemis/utils/task_tree.py +0 -1174
- package/artemis-main/artemis/utils/text.py +0 -37
- package/artemis-main/artemis/utils/ui_filter.py +0 -651
- package/artemis-main/artemis/utils/video.py +0 -685
- package/artemis-main/artemis/utils/visualization.py +0 -802
- package/artemis-main/config/artemis.example.jsonc +0 -12
- package/artemis-main/mcp_server/README.md +0 -111
- package/artemis-main/mcp_server/__init__.py +0 -21
- package/artemis-main/mcp_server/__main__.py +0 -20
- package/artemis-main/mcp_server/background/__init__.py +0 -15
- package/artemis-main/mcp_server/background/task_runner.py +0 -453
- package/artemis-main/mcp_server/base.py +0 -49
- package/artemis-main/mcp_server/notifiers/__init__.py +0 -74
- package/artemis-main/mcp_server/notifiers/agentapi.py +0 -289
- package/artemis-main/mcp_server/notifiers/base.py +0 -45
- package/artemis-main/mcp_server/notifiers/composite.py +0 -87
- package/artemis-main/mcp_server/notifiers/desktop.py +0 -108
- package/artemis-main/mcp_server/notifiers/file.py +0 -69
- package/artemis-main/mcp_server/notifiers/script.py +0 -90
- package/artemis-main/mcp_server/notifiers/webhook.py +0 -87
- package/artemis-main/mcp_server/rules.md +0 -68
- package/artemis-main/mcp_server/server.py +0 -106
- package/artemis-main/mcp_server/tools/__init__.py +0 -29
- package/artemis-main/mcp_server/tools/device_state.py +0 -107
- package/artemis-main/mcp_server/tools/diagnose.py +0 -1249
- package/artemis-main/mcp_server/tools/inspect_trace.py +0 -394
- package/artemis-main/mcp_server/tools/task_manager.py +0 -627
- package/artemis-main/mcp_server/tools/task_runner.py +0 -548
- package/artemis-main/mcp_server/utils/__init__.py +0 -15
- package/artemis-main/mcp_server/utils/device_utils.py +0 -180
- package/artemis-main/mcp_server/utils/env_utils.py +0 -65
- package/artemis-main/packages/artemis-accessibility-helper/ArtemisAccessibilityHelper.apk +0 -0
- package/artemis-main/packages/artemis-accessibility-helper/app/build.gradle.kts +0 -35
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/AndroidManifest.xml +0 -49
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/A11yNode.java +0 -274
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/ArtemisAccessibilityService.java +0 -227
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/CommandServer.java +0 -463
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/DisplayUtils.java +0 -111
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/GestureController.java +0 -232
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/HierarchyDumper.java +0 -832
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/TokenReceiver.java +0 -36
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/TokenStore.java +0 -38
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/XmlUtils.java +0 -102
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/res/values/strings.xml +0 -4
- package/artemis-main/packages/artemis-accessibility-helper/app/src/main/res/xml/accessibility_service_config.xml +0 -10
- package/artemis-main/packages/artemis-accessibility-helper/build.gradle.kts +0 -3
- package/artemis-main/packages/artemis-accessibility-helper/build_apk.sh +0 -215
- package/artemis-main/packages/artemis-accessibility-helper/debug.keystore +0 -0
- package/artemis-main/packages/artemis-accessibility-helper/gradle.properties +0 -2
- package/artemis-main/packages/artemis-accessibility-helper/helper_manifest.json +0 -7
- package/artemis-main/packages/artemis-accessibility-helper/settings.gradle.kts +0 -17
- package/artemis-main/packages/artemis-client/DESIGN.md +0 -89
- package/artemis-main/packages/artemis-client/README.md +0 -112
- package/artemis-main/packages/artemis-client/examples/basic.py +0 -30
- package/artemis-main/packages/artemis-client/pyproject.toml +0 -36
- package/artemis-main/packages/artemis-client/src/artemis_client/__init__.py +0 -45
- package/artemis-main/packages/artemis-client/src/artemis_client/client.py +0 -401
- package/artemis-main/packages/artemis-client/src/artemis_client/errors.py +0 -66
- package/artemis-main/packages/artemis-client/src/artemis_client/models.py +0 -212
- package/artemis-main/packages/artemis-client/src/artemis_client/py.typed +0 -1
- package/artemis-main/packages/artemis-client/src/artemis_client/transport.py +0 -134
- package/artemis-main/packages/artemis-client/tests/test_client.py +0 -289
- package/artemis-main/packages/artemis-client/tests/test_transport.py +0 -85
- package/artemis-main/pyproject.toml +0 -259
- package/artemis-main/pyright-core.json +0 -17
- package/artemis-main/scripts/check_dependency_sources.py +0 -68
- package/artemis-main/scripts/install_deps.ps1 +0 -520
- package/artemis-main/scripts/install_deps.sh +0 -533
- package/artemis-main/scripts/quality_ratchet.py +0 -97
- package/artemis-main/scripts/real_device_video_acceptance.py +0 -483
- package/artemis-main/scripts/run_edge_case_part.py +0 -327
- package/artemis-main/scripts/run_ui.py +0 -242
- package/artemis-main/scripts/start.ps1 +0 -500
- package/artemis-main/scripts/test_all_edge_cases.py +0 -269
- package/artemis-main/scripts/verify_concurrency_and_devices.py +0 -385
- package/artemis-main/setup.py +0 -164
- package/artemis-main/start.bat +0 -35
- package/artemis-main/start.sh +0 -423
- package/artemis-main/third_party/mobile_use/LICENSE +0 -190
- package/artemis-main/third_party/mobile_use/METADATA +0 -27
- package/artemis-main/third_party/mobile_use/NOTICE +0 -12
- package/artemis-main/third_party/mobile_use/__init__.py +0 -19
- package/artemis-main/third_party/mobile_use/agents/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/agents/hopper/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/agents/hopper/hopper.md +0 -22
- package/artemis-main/third_party/mobile_use/agents/hopper/hopper.py +0 -80
- package/artemis-main/third_party/mobile_use/clients/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/clients/ui_automator_client.py +0 -482
- package/artemis-main/third_party/mobile_use/config/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/config/llm.py +0 -183
- package/artemis-main/third_party/mobile_use/config/output.py +0 -184
- package/artemis-main/third_party/mobile_use/context.py +0 -119
- package/artemis-main/third_party/mobile_use/controllers/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/controllers/platform_specific_commands_controller.py +0 -151
- package/artemis-main/third_party/mobile_use/controllers/types.py +0 -92
- package/artemis-main/third_party/mobile_use/controllers/unified_controller.py +0 -183
- package/artemis-main/third_party/mobile_use/graph.py +0 -54
- package/artemis-main/third_party/mobile_use/llm_service.py +0 -193
- package/artemis-main/third_party/mobile_use/main.py +0 -130
- package/artemis-main/third_party/mobile_use/sdk/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/sdk/agent.py +0 -1060
- package/artemis-main/third_party/mobile_use/sdk/builders/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/sdk/builders/agent_config_builder.py +0 -225
- package/artemis-main/third_party/mobile_use/sdk/builders/index.py +0 -33
- package/artemis-main/third_party/mobile_use/sdk/builders/task_request_builder.py +0 -243
- package/artemis-main/third_party/mobile_use/sdk/types/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/sdk/types/agent.py +0 -98
- package/artemis-main/third_party/mobile_use/sdk/types/exceptions.py +0 -109
- package/artemis-main/third_party/mobile_use/sdk/types/task.py +0 -234
- package/artemis-main/third_party/mobile_use/testing.py +0 -59
- package/artemis-main/third_party/mobile_use/tools/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/tools/index.py +0 -44
- package/artemis-main/third_party/mobile_use/tools/mobile/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/tools/mobile/launch_app.py +0 -89
- package/artemis-main/third_party/mobile_use/tools/tool_wrapper.py +0 -52
- package/artemis-main/third_party/mobile_use/utils/__init__.py +0 -13
- package/artemis-main/third_party/mobile_use/utils/app_launch_utils.py +0 -217
- package/artemis-main/third_party/mobile_use/utils/cli_helpers.py +0 -60
- package/artemis-main/third_party/mobile_use/utils/decorators.py +0 -158
- package/artemis-main/third_party/mobile_use/utils/file.py +0 -31
- package/artemis-main/third_party/mobile_use/utils/logger.py +0 -216
- package/artemis-main/third_party/mobile_use/utils/media.py +0 -213
- package/artemis-main/third_party/mobile_use/utils/shell_utils.py +0 -39
- package/artemis-main/third_party/mobile_use/utils/video.py +0 -398
- package/artemis-main/uv.lock +0 -4908
- package/bin/artemis-config.mjs +0 -15
- package/bin/artemis-embedded.py +0 -56
- package/bin/start-artemis.mjs +0 -30
- package/bin/start-dev.mjs +0 -112
- package/bin/sync-readme-docs.mjs +0 -49
- package/bin/test_artemis_embedded.py +0 -44
- package/index.html +0 -12
- package/remote-agent/index.ts +0 -232
- package/server/analytics.test.ts +0 -46
- package/server/analytics.ts +0 -24
- package/server/android-device-info.ts +0 -28
- package/server/android-sdk.ts +0 -104
- package/server/api-safety-analytics.test.ts +0 -57
- package/server/appium-auto-save.test.ts +0 -79
- package/server/appium-config.test.ts +0 -182
- package/server/appium-recorder/ai-deduplication.test.ts +0 -80
- package/server/appium-recorder/ai-deduplication.ts +0 -74
- package/server/appium-recorder/ai-observation.test.ts +0 -125
- package/server/appium-recorder/ai-observation.ts +0 -125
- package/server/appium-recorder/ai-recognition.test.ts +0 -27
- package/server/appium-recorder/ai-recognition.ts +0 -186
- package/server/appium-recorder/appium-runner.ts +0 -1993
- package/server/appium-recorder/appium-version.test.ts +0 -55
- package/server/appium-recorder/bounded-loop.test.ts +0 -55
- package/server/appium-recorder/bounded-loop.ts +0 -129
- package/server/appium-recorder/condition-timeout.ts +0 -4
- package/server/appium-recorder/element-tap.test.ts +0 -312
- package/server/appium-recorder/flow-layout.test.ts +0 -52
- package/server/appium-recorder/history-capture.ts +0 -35
- package/server/appium-recorder/image-check.ts +0 -174
- package/server/appium-recorder/managed-appium.ts +0 -198
- package/server/appium-recorder/managed-cleanup.test.ts +0 -113
- package/server/appium-recorder/open-gallery.ts +0 -61
- package/server/appium-recorder/prompt-optimizer.ts +0 -57
- package/server/appium-recorder/random-value-replay.test.ts +0 -101
- package/server/appium-recorder/random-value.test.ts +0 -114
- package/server/appium-recorder/random-value.ts +0 -34
- package/server/appium-recorder/replay-lifecycle.test.ts +0 -123
- package/server/appium-recorder/replay-log.ts +0 -13
- package/server/appium-recorder/replay-mp4.ts +0 -72
- package/server/appium-recorder/replay-video-segments.ts +0 -77
- package/server/appium-recorder/replay-video.ts +0 -125
- package/server/appium-recorder/report-summary.test.ts +0 -78
- package/server/appium-recorder/report-summary.ts +0 -60
- package/server/appium-recorder/report.ts +0 -935
- package/server/appium-recorder/repository.ts +0 -567
- package/server/appium-recorder/request-timeout.test.ts +0 -34
- package/server/appium-recorder/request-timeout.ts +0 -34
- package/server/appium-recorder/routes.ts +0 -524
- package/server/appium-recorder/run-history.ts +0 -53
- package/server/appium-recorder/scrcpy-recording-source.ts +0 -85
- package/server/appium-recorder/screenshot.ts +0 -22
- package/server/appium-recorder/script-export.ts +0 -80
- package/server/appium-recorder/script-import.test.ts +0 -45
- package/server/appium-recorder/stop-app.ts +0 -18
- package/server/appium-recorder/stopwatch.test.ts +0 -74
- package/server/appium-recorder/stopwatch.ts +0 -24
- package/server/appium-recorder/tree-dump.ts +0 -66
- package/server/appium-recorder/variable-store.ts +0 -22
- package/server/appium-recorder/variables.ts +0 -89
- package/server/appium-recorder/video-response.ts +0 -36
- package/server/appium-recorder/visual-change.ts +0 -184
- package/server/artemis.ts +0 -34
- package/server/config-access.test.ts +0 -27
- package/server/config-access.ts +0 -27
- package/server/config-store.ts +0 -137
- package/server/config.ts +0 -272
- package/server/device-locks/repository.ts +0 -147
- package/server/device-locks/service.ts +0 -72
- package/server/device-locks/types.ts +0 -22
- package/server/device-sessions/repository.ts +0 -169
- package/server/device-sessions/service.ts +0 -59
- package/server/device-sessions/types.ts +0 -24
- package/server/http-api.ts +0 -1505
- package/server/model-tester.ts +0 -121
- package/server/operations/repository.ts +0 -226
- package/server/operations/service.ts +0 -84
- package/server/operations/types.ts +0 -27
- package/server/paths.ts +0 -36
- package/server/remote-agents/protocol.ts +0 -40
- package/server/remote-agents/registry.test.ts +0 -65
- package/server/remote-agents/registry.ts +0 -191
- package/server/remote-agents/replay-integration.test.ts +0 -79
- package/server/remote-agents/routes.ts +0 -86
- package/server/request-body.test.ts +0 -40
- package/server/request-body.ts +0 -48
- package/server/script-agent.ts +0 -289
- package/server/script-db.ts +0 -255
- package/server/script-runner.ts +0 -554
- package/server/storage/sqlite.ts +0 -112
- package/server/test-case-import/formatter.ts +0 -28
- package/server/test-case-import/parsers/excel.ts +0 -69
- package/server/test-case-import/parsers/txt.ts +0 -11
- package/server/test-case-import/parsers/word.ts +0 -9
- package/server/test-case-import/service.ts +0 -58
- package/server/test-case-import/text-normalizer.ts +0 -98
- package/server/test-case-import/types.ts +0 -24
- package/server/test-case-import/validator.ts +0 -34
- package/src/App.vue +0 -1035
- package/src/analytics/summary.ts +0 -75
- package/src/api.ts +0 -320
- package/src/appium-recorder/AppiumPage.vue +0 -2861
- package/src/appium-recorder/RunHistoryDialog.vue +0 -203
- package/src/appium-recorder/action-descriptions.ts +0 -50
- package/src/appium-recorder/ai-deduplication.ts +0 -34
- package/src/appium-recorder/ai-prompt-presets.ts +0 -34
- package/src/appium-recorder/ai-recognition.ts +0 -48
- package/src/appium-recorder/api.ts +0 -209
- package/src/appium-recorder/bounded-loop.ts +0 -74
- package/src/appium-recorder/components/AiRecognitionPromptInput.vue +0 -41
- package/src/appium-recorder/components/AiRecognitionSettings.vue +0 -251
- package/src/appium-recorder/components/AiRecognitionTestDialog.vue +0 -86
- package/src/appium-recorder/components/BranchTimeoutSettings.vue +0 -23
- package/src/appium-recorder/components/BreakLoopSettings.vue +0 -45
- package/src/appium-recorder/components/ComponentInspector.vue +0 -33
- package/src/appium-recorder/components/ComponentTree.vue +0 -139
- package/src/appium-recorder/components/CoordinatePointPicker.vue +0 -23
- package/src/appium-recorder/components/FlowActionMenu.vue +0 -257
- package/src/appium-recorder/components/FlowCanvas.vue +0 -391
- package/src/appium-recorder/components/FlowNodeCard.vue +0 -318
- package/src/appium-recorder/components/FlowNodeSearch.vue +0 -62
- package/src/appium-recorder/components/FlowRoundedEdge.vue +0 -58
- package/src/appium-recorder/components/FlowStepEditor.vue +0 -543
- package/src/appium-recorder/components/ImageCheckDialog.vue +0 -172
- package/src/appium-recorder/components/LongPressSettings.vue +0 -58
- package/src/appium-recorder/components/LoopSettings.vue +0 -39
- package/src/appium-recorder/components/MergeBranchesDialog.vue +0 -102
- package/src/appium-recorder/components/NestedConditionBranches.vue +0 -403
- package/src/appium-recorder/components/NewScriptDialog.vue +0 -27
- package/src/appium-recorder/components/NodeDetail.vue +0 -179
- package/src/appium-recorder/components/PresetVariables.vue +0 -110
- package/src/appium-recorder/components/RandomValueSettings.vue +0 -139
- package/src/appium-recorder/components/RecordedSteps.vue +0 -469
- package/src/appium-recorder/components/RecorderWorkspace.vue +0 -132
- package/src/appium-recorder/components/ScriptParameterSettings.vue +0 -65
- package/src/appium-recorder/components/StageLogSettings.vue +0 -17
- package/src/appium-recorder/components/StopwatchSettings.vue +0 -40
- package/src/appium-recorder/components/TextClickSettings.vue +0 -19
- package/src/appium-recorder/components/VariableExtractionSettings.vue +0 -19
- package/src/appium-recorder/components/VariableTable.vue +0 -82
- package/src/appium-recorder/components/VisualChangeDialog.vue +0 -151
- package/src/appium-recorder/components/VisualChangeEndPicker.vue +0 -21
- package/src/appium-recorder/coordinate-preview.ts +0 -37
- package/src/appium-recorder/flow-appearance.ts +0 -70
- package/src/appium-recorder/flow-copy.ts +0 -279
- package/src/appium-recorder/flow-graph.ts +0 -869
- package/src/appium-recorder/flow-insert.ts +0 -27
- package/src/appium-recorder/flow-labels.ts +0 -141
- package/src/appium-recorder/flow-layout.ts +0 -88
- package/src/appium-recorder/flow-merge.ts +0 -123
- package/src/appium-recorder/flow-normalize.ts +0 -77
- package/src/appium-recorder/flow-remove.ts +0 -75
- package/src/appium-recorder/flow-search.ts +0 -29
- package/src/appium-recorder/flow-unmerge.ts +0 -145
- package/src/appium-recorder/image-check.ts +0 -121
- package/src/appium-recorder/long-press.ts +0 -27
- package/src/appium-recorder/native-control-state.ts +0 -33
- package/src/appium-recorder/node-locators.ts +0 -25
- package/src/appium-recorder/node-timeout.ts +0 -1
- package/src/appium-recorder/random-value.ts +0 -60
- package/src/appium-recorder/report-summary.ts +0 -60
- package/src/appium-recorder/run-history.ts +0 -53
- package/src/appium-recorder/stage-log.ts +0 -21
- package/src/appium-recorder/stopwatch.ts +0 -27
- package/src/appium-recorder/text-click.ts +0 -9
- package/src/appium-recorder/tree.ts +0 -176
- package/src/appium-recorder/types.ts +0 -201
- package/src/appium-recorder/variable-presets.ts +0 -24
- package/src/appium-recorder/variables.ts +0 -34
- package/src/appium-recorder/visual-change-pairs.ts +0 -155
- package/src/appium-recorder/visual-change.ts +0 -87
- package/src/assets/appium-actions/add.svg +0 -7
- package/src/assets/appium-actions/android.svg +0 -6
- package/src/assets/appium-actions/back.svg +0 -6
- package/src/assets/appium-actions/bidirection.svg +0 -6
- package/src/assets/appium-actions/browser.svg +0 -6
- package/src/assets/appium-actions/clear.svg +0 -3
- package/src/assets/appium-actions/crosshair.svg +0 -6
- package/src/assets/appium-actions/eye.svg +0 -3
- package/src/assets/appium-actions/pause.svg +0 -7
- package/src/assets/appium-actions/phone.svg +0 -9
- package/src/assets/appium-actions/pin.svg +0 -6
- package/src/assets/appium-actions/power.svg +0 -6
- package/src/assets/appium-actions/select.svg +0 -3
- package/src/assets/appium-actions/sidebar.svg +0 -6
- package/src/assets/appium-actions/text.svg +0 -6
- package/src/assets/appium-actions/zoom.svg +0 -6
- package/src/assets/device-actions/back.svg +0 -5
- package/src/assets/device-actions/home.svg +0 -3
- package/src/assets/device-actions/power.svg +0 -5
- package/src/assets/device-actions/tasks.svg +0 -3
- package/src/assets/device-actions/volume-down.svg +0 -3
- package/src/assets/device-actions/volume-up.svg +0 -3
- package/src/components/AppSidebar.vue +0 -62
- package/src/components/MidsceneMaintenanceNotice.vue +0 -17
- package/src/components/analytics/AnalysisCharts.vue +0 -189
- package/src/components/analytics/ReportAnalysis.vue +0 -78
- package/src/components/config/AiDeduplicationSettings.vue +0 -70
- package/src/components/config/AiPromptPresetsSettings.vue +0 -113
- package/src/components/config/AppiumConfigPanel.vue +0 -118
- package/src/components/config/AppiumModelSettings.vue +0 -45
- package/src/components/config/BaseConfigPanel.vue +0 -127
- package/src/components/config/FlowAppearanceSettings.vue +0 -150
- package/src/components/config/MidsceneConfigPanel.vue +0 -220
- package/src/components/config/ReplayReportSummarySettings.vue +0 -118
- package/src/components/device/DeviceInfoTooltip.vue +0 -55
- package/src/components/device/DevicePreviewPanel.vue +0 -482
- package/src/components/generator/GeneratedCodePanel.vue +0 -70
- package/src/components/generator/TestCaseFileUpload.vue +0 -97
- package/src/components/help/HelpCenter.vue +0 -204
- package/src/components/help/MarkdownDocument.vue +0 -139
- package/src/composables/use-device-preview.ts +0 -279
- package/src/composables/use-initial-resource.ts +0 -17
- package/src/composables/use-script-execution.ts +0 -277
- package/src/config/credentials.ts +0 -2
- package/src/config/midscene-model-presets.ts +0 -103
- package/src/config/prompt-example.ts +0 -10
- package/src/config/prompt-presets.ts +0 -172
- package/src/config/use-appium-auto-save.ts +0 -75
- package/src/config/use-model-config.ts +0 -161
- package/src/main.ts +0 -10
- package/src/pages/AiGeneratorPage.vue +0 -273
- package/src/pages/AnalysisPage.vue +0 -60
- package/src/pages/ArtemisPage.vue +0 -72
- package/src/pages/AutomationPage.vue +0 -161
- package/src/pages/ConfigPage.vue +0 -146
- package/src/pages/GeneratorPage.vue +0 -104
- package/src/pages/ManualStepsPage.vue +0 -179
- package/src/script-generator/codegen.ts +0 -126
- package/src/script-generator/index.ts +0 -4
- package/src/script-generator/presets.ts +0 -37
- package/src/script-generator/step-options.ts +0 -52
- package/src/script-generator/types.ts +0 -27
- package/src/style.css +0 -4188
- package/src/types.ts +0 -167
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.app.json +0 -8
- package/tsconfig.json +0 -11
- package/tsconfig.node.json +0 -16
- package/vite.config.ts +0 -28
- package//346/265/201/347/250/213/350/212/202/347/202/271/346/223/215/344/275/234/350/257/264/346/230/216.md +0 -418
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg t="1729828722083" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="5135" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M805.664 239.21c15.194 8.676 20.578 27.92 12.181 43.195l-0.258 0.462-70.477 123.435c121.382 72.426 206.947 199.48 221.734 348.54C970.712 773.67 955.922 790 937 790H88c-18.922 0-33.712-16.33-31.844-35.16 14.14-142.538 93.003-264.954 206.014-338.722L186.09 282.867c-8.763-15.348-3.425-34.893 11.923-43.656 15.194-8.676 34.502-3.53 43.39 11.465l0.266 0.457 76.406 133.822c59.16-27.753 125.102-43.216 194.427-43.216 62.75 0 122.73 12.67 177.416 35.655l72.09-126.26c8.764-15.348 28.31-20.686 43.657-11.923zM512.5 405.74c-191.04 0-352.265 136.52-387.48 319.779l-0.089 0.481h775.135l-0.088-0.481c-34.84-181.31-193.023-316.87-381.391-319.734zM320.53 565.87c23.56 0 42.66 19.115 42.66 42.695 0 23.58-19.1 42.696-42.66 42.696-23.561 0-42.66-19.116-42.66-42.696s19.099-42.695 42.66-42.695z m383.946 0c23.56 0 42.66 19.115 42.66 42.695 0 23.58-19.1 42.696-42.66 42.696-23.56 0-42.66-19.116-42.66-42.696s19.1-42.695 42.66-42.695z"
|
|
5
|
-
p-id="5136"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg t="1737900068491" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="14282" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M853.333333 128v768a42.666667 42.666667 0 0 1-65.706666 35.882667l-597.333334-384a42.666667 42.666667 0 0 1 0-71.765334l597.333334-384A42.666667 42.666667 0 0 1 853.333333 128z m-85.333333 78.165333L292.266667 512 768 817.792V206.165333z"
|
|
5
|
-
fill="#000000" p-id="14283"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg t="1741849583487" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="12513" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M92.602048 429.795766l67.217914 42.401716L331.862293 209.574133V957.234387h76.57912V63.815421H331.862293L92.602048 429.795766z m768.669754 119.051444L689.230494 811.474652V63.815421h-76.57912V957.234387h76.57912L928.490739 591.254042l-67.218937-42.406832z"
|
|
5
|
-
p-id="12514"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg t="1733285953822" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="4407" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M981.758943 311.37161c-25.674753-60.712757-62.431911-115.234511-109.24817-162.05077-46.816259-46.806026-101.338013-83.563184-162.05077-109.24817-62.196551-26.298969-128.210034-39.775912-196.23943-40.062438-0.73678 0-1.473561-0.010233-2.220574-0.010233s-1.483794 0.010233-2.220574 0.010233c-68.029396 0.286526-134.042879 13.763468-196.23943 40.062438-60.712757 25.684986-115.234511 62.442144-162.05077 109.24817-46.816259 46.816259-83.573417 101.338013-109.24817 162.05077-26.585495 62.871933-40.072671 129.642662-40.072671 198.460004 0 68.827575 13.487176 135.598304 40.072671 198.460004 25.674753 60.712757 62.431911 115.234511 109.24817 162.05077s101.338013 83.573417 162.05077 109.24817c62.196551 26.309202 128.210034 39.775912 196.23943 40.062438 0.73678 0 1.473561 0.010233 2.220574 0.010233s1.483794-0.010233 2.220574-0.010233c68.029396-0.286526 134.042879-13.753235 196.23943-40.062438 60.712757-25.674753 115.234511-62.431911 162.05077-109.24817s83.573417-101.338013 109.24817-162.05077c26.585495-62.8617 40.072671-129.632429 40.072671-198.460004C1021.831614 441.014272 1008.344438 374.243543 981.758943 311.37161zM180.438559 178.270173c43.060725-43.070958 93.212962-76.880995 149.044548-100.498902 19.156292-8.094352 38.70144-14.878872 58.594513-20.302395-24.825408 24.866341-47.553039 57.468876-67.405179 97.173157-12.719696 25.439392-23.914666 53.089126-33.482579 82.509179-44.135196-11.768021-84.576257-27.03575-119.665427-45.445028C171.730223 187.152471 176.038342 182.670389 180.438559 178.270173zM79.939657 327.314721c15.748682-37.227879 36.020378-71.91796 60.559261-103.671151 39.294958 21.561062 85.057211 39.294958 135.158283 52.710502-17.263176 65.348334-27.086915 137.75748-28.591175 213.011418L43.550888 489.36549C45.924959 433.278077 58.133002 378.858654 79.939657 327.314721zM140.488685 796.019659c-24.52865-31.753191-44.800345-66.453505-60.549028-103.671151-21.806655-51.543933-34.014698-105.963357-36.388768-162.05077l203.515137 0c1.50426 75.243705 11.317767 147.642618 28.591175 212.990952C225.566362 756.704235 179.814342 774.448364 140.488685 796.019659zM329.483106 941.891957c-55.831586-23.617907-105.983823-57.427944-149.044548-100.488669-4.400217-4.400217-8.708336-8.882298-12.914124-13.43601 35.099403-18.439978 75.519997-33.717939 119.655194-45.465494 9.578146 29.420053 20.773116 57.069787 33.492812 82.519412 19.85214 39.70428 42.579771 72.306816 67.405179 97.173157C368.184547 956.770829 348.639398 949.986309 329.483106 941.891957zM491.533876 976.704834c-20.998243-4.154623-41.628096-14.725376-61.562101-31.589462-27.005051-22.840194-51.462069-55.954383-72.685439-98.401124-11.379165-22.748097-21.458731-47.430242-30.156834-73.688279 51.503001-10.765181 107.037828-17.017582 164.404374-18.21485L491.533876 976.704834zM491.533876 713.87887c-61.336974 1.238201-120.862695 8.05342-176.110997 19.85214-16.505929-62.135152-25.930579-131.300418-27.424606-203.433272l203.535603 0L491.533876 713.87887zM491.533876 489.36549l-203.535603 0c1.494027-72.15332 10.92891-141.328819 27.434839-203.463971 55.299467 11.82942 114.845655 18.654872 176.100764 19.903306L491.533876 489.36549zM491.533876 264.862343c-57.294914-1.207501-112.850208-7.459902-164.394141-18.24555 8.698103-26.247804 18.777669-50.919716 30.146601-73.667813 21.223371-42.446741 45.680389-75.550697 72.685439-98.401124 19.934005-16.853853 40.563858-27.434839 61.562101-31.589462L491.533876 264.862343zM694.516894 77.771271c55.831586 23.617907 105.983823 57.427944 149.044548 100.498902 4.389984 4.389984 8.68787 8.861832 12.893658 13.405311-34.669614 18.122753-75.438133 33.615609-119.685893 45.424562-9.55768-29.399587-20.75265-57.028854-33.462113-82.458013-19.862373-39.714514-42.590004-72.317049-67.415412-97.18339C655.794987 62.892399 675.350368 69.666686 694.516894 77.771271zM532.466124 42.958394c20.98801 4.164856 41.60763 14.735609 61.531402 31.589462 27.015284 22.850427 51.472302 55.954383 72.695672 98.401124 11.358699 22.727631 21.438265 47.38931 30.136368 73.616648-51.891857 10.857279-107.784842 17.07898-164.363442 18.286482L532.466124 42.958394zM532.466124 305.804824c61.244876-1.207501 120.258944-7.858992 176.100764-19.841907 16.505929 62.124919 25.940812 131.290185 27.434839 203.402573l-203.535603 0L532.466124 305.804824 532.466124 305.804824zM532.466124 530.297738l203.535603 0c-1.50426 72.143087-10.92891 141.328819-27.455305 203.474204-55.289234-11.82942-114.835422-18.654872-176.080298-19.903306L532.466124 530.297738 532.466124 530.297738zM593.997526 945.115372c-19.923772 16.853853-40.543392 27.434839-61.531402 31.589462L532.466124 754.811118c57.284681 1.207501 112.839974 7.459902 164.373675 18.24555-8.698103 26.237571-18.777669 50.909483-30.146601 73.65758C645.469827 889.160989 621.012809 922.275177 593.997526 945.115372zM843.561441 841.403289c-43.060725 43.060725-93.212962 76.870762-149.044548 100.488669-19.166525 8.104585-38.721907 14.878872-58.625212 20.312628 24.825408-24.866341 47.553039-57.468876 67.415412-97.18339 12.719696-25.429159 23.904433-53.078893 33.482579-82.488713 44.145429 11.747555 84.596723 27.025517 119.685893 45.434795C852.269777 832.520991 847.961658 837.003072 843.561441 841.403289zM944.060343 692.348508c-15.748682 37.227879-36.020378 71.91796-60.559261 103.681384-39.305191-21.561062-85.067444-39.294958-135.178749-52.710502 17.283642-65.358567 27.107381-137.767713 28.611641-213.021651l203.515137 0C978.075041 586.385151 965.866998 640.804574 944.060343 692.348508zM776.933975 489.36549c-1.50426-75.233472-11.328-147.632385-28.601408-212.980719 50.848085-13.630439 96.18055-31.323403 135.168516-52.741201 24.538883 31.753191 44.810578 66.443271 60.559261 103.671151 21.806655 51.543933 34.014698 105.963357 36.388768 162.05077L776.933975 489.36549z"
|
|
5
|
-
p-id="4408"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg class="icon" style="width: 1em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="811">
|
|
2
|
-
<path d="M539.550501 93.622859a419.352391 419.352391 0 0 0-62.659049 0.487619 419.352391 419.352391 0 1 0 71.192383 835.535258A419.352391 419.352391 0 0 0 539.550501 93.622859z m-26.087619 124.34286A290.864769 290.864769 0 0 1 766.293364 641.219063L334.019068 276.723816a285.25715 285.25715 0 0 1 179.687623-58.514287z m-263.314292 157.744766l432.761915 364.495247a290.864769 290.864769 0 0 1-432.518106-364.495247z" p-id="812"></path>
|
|
3
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg t="1708050910185" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="8403" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M448 448h128v128H448V448z m0-448h128v320H448V0z m0 704h128v320H448v-320z m256-256h320v128h-320V448zM0 448h320v128H0V448z"
|
|
5
|
-
p-id="8404"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path xmlns="http://www.w3.org/2000/svg" d="M14.866177558898926,4.999999999999998 c-6.302177700519562,0 -11.68572113776207,3.9223949769735333 -13.866177558898926,9.454999822974205 c2.180456421136856,5.534338118195534 7.563999858379364,9.454999822974205 13.866177558898926,9.454999822974205 s11.68572113776207,-3.9206617047786714 13.866177558898926,-9.454999822974205 c-2.180456421136856,-5.532604846000671 -7.563999858379364,-9.453266550779341 -13.866177558898926,-9.453266550779341 zm0,15.75891079568863 a6.305644244909287,6.305644244909287 0 0 1 -6.302177700519562,-6.303910972714424 A6.305644244909287,6.305644244909287 0 0 1 14.866177558898926,8.154555394649503 a6.305644244909287,6.305644244909287 0 0 1 6.302177700519562,6.302177700519562 A6.305644244909287,6.305644244909287 0 0 1 14.866177558898926,20.758910795688628 zm0,-10.084177629709243 a3.7768001126050947,3.7768001126050947 0 0 0 -3.781999929189682,3.7802666569948196 c0,2.0937928113937376 1.6899403899908068,3.781999929189682 3.781999929189682,3.781999929189682 a3.7768001126050947,3.7768001126050947 0 0 0 3.781999929189682,-3.781999929189682 A3.7768001126050947,3.7768001126050947 0 0 0 14.866177558898926,10.674733165979383 z"/>
|
|
3
|
-
</svg>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<svg t="1685359440842" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="5681" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
3
|
-
width="200" height="200">
|
|
4
|
-
<path
|
|
5
|
-
d="M768 832h-128c-35.392 0-64-28.608-64-64V256c0-35.392 28.608-64 64-64h128c35.392 0 64 28.608 64 64v512c0 35.392-28.608 64-64 64z m-384 0h-128c-35.392 0-64-28.608-64-64V256c0-35.392 28.608-64 64-64h128c35.392 0 64 28.608 64 64v512c0 35.392-28.608 64-64 64z"
|
|
6
|
-
fill="" p-id="5682"></path>
|
|
7
|
-
</svg>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<svg t="1729829178935" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="11424" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M800 960H224c-52.8 0-96-43.2-96-96V160c0-52.8 43.2-96 96-96h576c52.8 0 96 43.2 96 96v704c0 52.8-43.2 96-96 96zM224 128c-17.6 0-32 14.4-32 32v704c0 17.6 14.4 32 32 32h576c17.6 0 32-14.4 32-32V160c0-17.6-14.4-32-32-32H224z"
|
|
5
|
-
fill="#333333" p-id="11425"></path>
|
|
6
|
-
<path
|
|
7
|
-
d="M608 832H416c-17.6 0-32-14.4-32-32s14.4-32 32-32h192c17.6 0 32 14.4 32 32s-14.4 32-32 32z"
|
|
8
|
-
fill="#333333" p-id="11426"></path>
|
|
9
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg t="1740041833209" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="4237" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M911.15102 323.918367L689.632653 102.4c-18.808163-18.808163-50.155102-20.897959-71.053061-2.089796l-267.493878 229.877551-96.130612 14.628572c-6.269388 0-12.538776 4.179592-16.718367 8.359183l-58.514286 58.514286c-20.897959 20.897959-20.897959 54.334694 0 73.142857l152.555102 152.555102L125.387755 844.277551c-12.538776 12.538776-12.538776 31.346939 0 43.885714 6.269388 6.269388 14.628571 10.44898 20.897959 10.44898s16.718367-2.089796 22.987755-8.359184l204.8-204.8 152.555102 152.555102c10.44898 10.44898 22.987755 14.628571 37.616327 14.628572s27.167347-6.269388 37.616326-14.628572l58.514286-58.514285c4.179592-4.179592 8.359184-10.44898 8.359184-16.718368l14.628571-96.130612 227.787755-267.493878c18.808163-25.077551 18.808163-56.42449 0-75.232653zM631.118367 629.028571c-4.179592 4.179592-6.269388 10.44898-6.269387 14.628572l-14.628572 94.040816-45.97551 45.97551-334.367347-334.367347 43.885714-43.885714 94.040817-14.628571c6.269388 0 10.44898-4.179592 14.628571-6.269388l269.583674-229.877551 206.889795 206.889796-227.787755 267.493877z"
|
|
5
|
-
fill="#666666" p-id="4238"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg t="1737786833367" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="4173" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M813.653333 253.013333q59.008 59.008 91.349333 135.68 33.664 79.317333 33.664 166.016t-33.664 166.016q-32.341333 76.672-91.349333 135.68t-135.68 91.349333q-79.317333 33.664-166.016 33.664t-166.016-33.664q-76.672-32.341333-135.68-91.349333t-91.349333-135.68q-33.664-79.317333-33.664-166.016t33.664-166.016q32.341333-76.672 91.349333-135.68 12.330667-12.330667 29.994667-12.330667t30.336 12.330667 12.672 29.994667-12.672 30.336q-47.018667 47.018667-73.344 108.330667-26.666667 64-26.666667 132.992t26.666667 132.992q26.325333 61.312 73.344 108.330667t108.330667 73.344q64 26.666667 132.992 26.666667t132.992-26.666667q61.312-26.325333 108.330667-73.344t73.344-108.330667q26.666667-64 26.666667-132.992t-26.666667-132.992q-26.325333-61.312-73.344-108.330667-12.672-12.672-12.672-30.336t12.672-29.994667 30.336-12.330667 29.994667 12.330667zM512 42.666667q17.664 0 30.165333 12.501333t12.501333 30.165333l0 426.666667q0 17.664-12.501333 30.165333t-30.165333 12.501333-30.165333-12.501333-12.501333-30.165333l0-426.666667q0-17.664 12.501333-30.165333t30.165333-12.501333z"
|
|
5
|
-
fill="#444444" p-id="4174"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg class="icon" style="width: 1em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="987">
|
|
2
|
-
<path d="M383.756212 899.657164H222.354303c-64.365716 0-96.792383-32.182858-96.792383-96.548573V222.354291c0-64.365716 32.426667-96.792383 96.792383-96.792383h580.7543c96.548574 0 96.548574 94.841907 96.548573 96.792383v161.401909h-64.365715V190.171433H190.171445v645.120015h193.584767z m580.51049-322.316198l-193.584767 128.975241 193.584767 193.340957-64.609526 64.609526-193.340957-193.584767-129.21905 193.584767-128.975241-516.144775z" fill="#000000" p-id="988"></path>
|
|
3
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg t="1694145667072" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="18515" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M128 128h768a42.666667 42.666667 0 0 1 42.666667 42.666667v682.666666a42.666667 42.666667 0 0 1-42.666667 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667V170.666667a42.666667 42.666667 0 0 1 42.666667-42.666667z m213.333333 85.333333H170.666667v597.333334h170.666666V213.333333z m85.333334 0v597.333334h426.666666V213.333333H426.666667z"
|
|
5
|
-
p-id="18516"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg t="1744872313513" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="5139" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M853.333333 138.666667H170.666667c-17.066667 0-32 14.933333-32 32v128c0 17.066667 14.933333 32 32 32s32-14.933333 32-32V202.666667h277.333333v618.666666H384c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h256c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32h-96v-618.666666h277.333333V298.666667c0 17.066667 14.933333 32 32 32s32-14.933333 32-32V170.666667c0-17.066667-14.933333-32-32-32z"
|
|
5
|
-
fill="#666666" p-id="5140"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg t="1706094658263" class="icon" viewBox="0 0 1030 1024" version="1.1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg" p-id="6080" width="200" height="200">
|
|
3
|
-
<path
|
|
4
|
-
d="M738.618409 646.405992c96.606263 96.606263 192.944918 192.944918 290.889218 290.621611-31.310063 29.169204-62.352519 57.803193-93.662582 86.972397-93.662582-93.662582-190.001237-190.001237-286.875107-286.875107-104.099269 71.451169-215.691545 95.535833-336.917687 66.901844-96.87387-22.746627-175.015224-75.732887-233.621239-156.282708-120.690927-165.648966-98.747122-390.439162 42.81718-530.130212 149.860131-147.719272 377.861615-153.339027 534.947145-33.450922C814.08369 205.389036 876.436208 448.644141 738.618409 646.405992zM728.984544 407.700212C728.984544 230.008915 585.814598 86.036146 408.658514 86.036146 231.502431 86.036146 86.994448 230.276522 86.994448 407.164998c0 178.226513 143.972768 322.466888 321.664066 321.664066C587.152634 728.293849 728.984544 585.926725 728.984544 407.700212z"
|
|
5
|
-
p-id="6081"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg t="1737900068491" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path
|
|
3
|
-
d="M853.333333 128v768a42.666667 42.666667 0 0 1-65.706666 35.882667l-597.333334-384a42.666667 42.666667 0 0 1 0-71.765334l597.333334-384A42.666667 42.666667 0 0 1 853.333333 128z m-85.333333 78.165333L292.266667 512 768 817.792V206.165333z"
|
|
4
|
-
fill="currentColor"></path>
|
|
5
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="m512 85.333333a426.666667 426.666667 0 1 0 426.666667 426.666667 426.666667 426.666667 0 0 0 -426.666667-426.666667zm0 768a341.333333 341.333333 0 1 1 341.333333-341.333333 341.333333 341.333333 0 0 1 -341.333333 341.333333z" fill="currentColor"/>
|
|
3
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg t="1737786833367" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path
|
|
3
|
-
d="M813.653333 253.013333q59.008 59.008 91.349333 135.68 33.664 79.317333 33.664 166.016t-33.664 166.016q-32.341333 76.672-91.349333 135.68t-135.68 91.349333q-79.317333 33.664-166.016 33.664t-166.016-33.664q-76.672-32.341333-135.68-91.349333t-91.349333-135.68q-33.664-79.317333-33.664-166.016t33.664-166.016q32.341333-76.672 91.349333-135.68 12.330667-12.330667 29.994667-12.330667t30.336 12.330667 12.672 29.994667-12.672 30.336q-47.018667 47.018667-73.344 108.330667-26.666667 64-26.666667 132.992t26.666667 132.992q26.325333 61.312 73.344 108.330667t108.330667 73.344q64 26.666667 132.992 26.666667t132.992-26.666667q61.312-26.325333 108.330667-73.344t73.344-108.330667q26.666667-64 26.666667-132.992t-26.666667-132.992q-26.325333-61.312-73.344-108.330667-12.672-12.672-12.672-30.336t12.672-29.994667 30.336-12.330667 29.994667 12.330667zM512 42.666667q17.664 0 30.165333 12.501333t12.501333 30.165333l0 426.666667q0 17.664-12.501333 30.165333t-30.165333 12.501333-30.165333-12.501333-12.501333-30.165333l0-426.666667q0-17.664 12.501333-30.165333t30.165333-12.501333z"
|
|
4
|
-
fill="currentColor"></path>
|
|
5
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg t="1626961815522" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M942.6 82.2v859.6H82.2V82.2h860.4M947.5 2h-871C35.2 2 2 35.2 2 76.5v870.9c0 41.3 33.2 74.5 74.5 74.5h870.9c41.3 0 74.5-33.2 74.5-74.5v-870c0.9-42.2-32.3-75.4-74.4-75.4 0.8 0 0 0 0 0z" fill="currentColor"/>
|
|
3
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg t="1608646631805" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M558.05 144.08L380.11 322H175.99c-26.52 0-48 21.48-48 48v288c0 26.5 21.48 48 48 48h204.12l177.94 177.9c30.06 30.06 81.94 8.94 81.94-33.94V178.04c0-42.94-51.92-63.96-81.94-33.96z m246.4 216.16c-23.16-12.66-52.38-4.32-65.22 18.9-12.78 23.22-4.32 52.4 18.9 65.22C783.95 458.56 799.99 485.24 799.99 514c0 28.76-16.04 55.44-41.84 69.62-23.22 12.82-31.68 42-18.9 65.22 12.86 23.32 42.1 31.6 65.22 18.9 56.46-31.1 91.54-90 91.54-153.76s-35.08-122.64-91.56-153.74z" fill="currentColor"></path>
|
|
3
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg t="1608646511970" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M462.06 142.1L284.12 320H80c-26.52 0-48 21.48-48 48v288c0 26.5 21.48 48 48 48h204.12l177.94 177.9c30.06 30.06 81.94 8.94 81.94-33.94V176.04c0-42.92-51.92-63.96-81.94-33.94zM992 512c0-127.06-64.12-243.88-171.54-312.48-22.38-14.28-52.06-7.64-66.24 14.92s-7.56 52.42 14.82 66.72C848.54 331.94 896 418.22 896 512s-47.46 180.06-126.96 230.84c-22.38 14.28-29 44.14-14.82 66.72 13.02 20.72 42.24 30.28 66.24 14.92C927.88 755.88 992 639.06 992 512z m-283.54-153.74c-23.16-12.66-52.38-4.32-65.22 18.9-12.78 23.22-4.32 52.4 18.9 65.22C687.96 456.56 704 483.26 704 512c0 28.76-16.04 55.44-41.84 69.62-23.22 12.82-31.68 42-18.9 65.22 12.86 23.32 42.1 31.6 65.22 18.9 56.46-31.1 91.54-90 91.54-153.76s-35.08-122.64-91.56-153.72z" fill="currentColor"></path>
|
|
3
|
-
</svg>
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { DataAnalysis, Grid, Monitor, Operation, InfoFilled, Setting, VideoPlay } from '@element-plus/icons-vue';
|
|
3
|
-
import type { MenuKey } from '../types';
|
|
4
|
-
|
|
5
|
-
defineProps<{ activeMenu: MenuKey; collapsed: boolean }>();
|
|
6
|
-
defineEmits<{ select: [key: string] }>();
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<template>
|
|
10
|
-
<aside class="layout-sidebar" aria-label="主导航">
|
|
11
|
-
<div class="layout-sidebar__top">
|
|
12
|
-
<div class="layout-sidebar__logo" aria-hidden="true">A</div>
|
|
13
|
-
<span v-if="!collapsed" class="layout-sidebar__brand" title="移动自动化控制台">移动自动化<span>控制台</span></span>
|
|
14
|
-
</div>
|
|
15
|
-
<el-menu :default-active="activeMenu" :default-openeds="['overview', 'laboratory', 'midscene']" :collapse="collapsed"
|
|
16
|
-
:collapse-transition="false" class="layout-menu" @select="$emit('select', $event)">
|
|
17
|
-
<el-menu-item index="appium" aria-label="Appium"><el-icon><Monitor /></el-icon><template #title>Appium</template></el-menu-item>
|
|
18
|
-
<el-sub-menu index="laboratory" aria-label="实验室">
|
|
19
|
-
<template #title>
|
|
20
|
-
<el-icon>
|
|
21
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
22
|
-
<path d="M9 3h6M10 3v7L4.6 18.8A1.5 1.5 0 0 0 5.9 21h12.2a1.5 1.5 0 0 0 1.3-2.2L14 10V3M7 15h10" />
|
|
23
|
-
</svg>
|
|
24
|
-
</el-icon>
|
|
25
|
-
<span>实验室</span>
|
|
26
|
-
</template>
|
|
27
|
-
<el-menu-item index="artemis" aria-label="Artemis"><el-icon><Monitor /></el-icon><template #title>Artemis<span class="layout-menu__new">New</span></template></el-menu-item>
|
|
28
|
-
<el-sub-menu index="midscene" aria-label="Midscene">
|
|
29
|
-
<template #title><el-icon><Monitor /></el-icon><span>Midscene</span></template>
|
|
30
|
-
<el-menu-item index="generator" aria-label="测试脚本生成"><el-icon><Operation /></el-icon><template #title>测试脚本生成</template></el-menu-item>
|
|
31
|
-
<el-menu-item index="automation" aria-label="自动化测试"><el-icon><VideoPlay /></el-icon><template #title>自动化测试</template></el-menu-item>
|
|
32
|
-
<el-menu-item index="midscene-config" aria-label="Midscene参数配置"><el-icon><Setting /></el-icon><template #title><span class="layout-menu__label" title="参数配置">参数配置</span></template></el-menu-item>
|
|
33
|
-
</el-sub-menu>
|
|
34
|
-
</el-sub-menu>
|
|
35
|
-
<el-sub-menu index="overview" aria-label="概览">
|
|
36
|
-
<template #title><el-icon><Grid /></el-icon><span>概览</span></template>
|
|
37
|
-
<el-menu-item index="analysis" aria-label="分析页"><el-icon><DataAnalysis /></el-icon><template #title>分析页</template></el-menu-item>
|
|
38
|
-
</el-sub-menu>
|
|
39
|
-
<el-menu-item index="config" aria-label="参数配置"><el-icon><Setting /></el-icon><template #title>参数配置</template></el-menu-item>
|
|
40
|
-
<el-menu-item index="about" aria-label="关于"><el-icon><InfoFilled /></el-icon><template #title>关于</template></el-menu-item>
|
|
41
|
-
</el-menu>
|
|
42
|
-
</aside>
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<style scoped>
|
|
46
|
-
.layout-menu__new {
|
|
47
|
-
margin-left: 6px;
|
|
48
|
-
color: var(--el-color-danger);
|
|
49
|
-
font-size: 11px;
|
|
50
|
-
font-weight: 600;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.layout-menu__label {
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
text-overflow: ellipsis;
|
|
56
|
-
white-space: nowrap;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.layout-menu :deep(.el-sub-menu .el-sub-menu .el-menu-item) {
|
|
60
|
-
padding-left: 68px !important;
|
|
61
|
-
}
|
|
62
|
-
</style>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="midscene-maintenance">
|
|
3
|
-
<el-alert title="Midscene 维护说明" type="warning" :closable="false" show-icon>
|
|
4
|
-
本项目中的 Midscene 集成已停止日常维护,现有功能仍保留。后续可能根据情况升级依赖版本,但不再进行深入测试,建议使用 Midscene 官方版本。
|
|
5
|
-
<a href="https://midscenejs.com/zh/" target="_blank" rel="noopener noreferrer">查看官方文档 ↗</a>
|
|
6
|
-
</el-alert>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<style scoped>
|
|
11
|
-
.midscene-maintenance { flex: none; padding: 8px 20px 0; }
|
|
12
|
-
.midscene-maintenance :deep(.el-alert) { padding: 6px 12px; }
|
|
13
|
-
.midscene-maintenance :deep(.el-alert__title) { font-size: 13px; line-height: 19px; }
|
|
14
|
-
.midscene-maintenance :deep(.el-alert__description) { margin-top: 2px; font-size: 12px; line-height: 18px; }
|
|
15
|
-
.midscene-maintenance :deep(.el-alert__icon) { font-size: 16px; width: 16px; }
|
|
16
|
-
.midscene-maintenance a { margin-left: 8px; color: var(--ui-primary); text-decoration: underline; white-space: nowrap; }
|
|
17
|
-
</style>
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed, ref, watch } from 'vue';
|
|
3
|
-
import { Collection, VideoPlay, CircleCheck, Warning } from '@element-plus/icons-vue';
|
|
4
|
-
import type { AnalysisResponse } from '../../analytics/summary';
|
|
5
|
-
|
|
6
|
-
const props = defineProps<{ data: AnalysisResponse }>();
|
|
7
|
-
const mode = ref<'daily' | 'monthly'>('daily');
|
|
8
|
-
const shown = ref({ midscene: true, appium: true });
|
|
9
|
-
const selectedPoint = ref<number | null>(null);
|
|
10
|
-
const engineColors = { midscene: '#4ea9ee', appium: '#13b8a6' };
|
|
11
|
-
const total = computed(() => {
|
|
12
|
-
const { midscene: m, appium: a } = props.data;
|
|
13
|
-
return { scripts: m.scripts + a.scripts, runs: m.runs + a.runs, passed: m.passed + a.passed, failed: m.failed + a.failed, stopped: m.stopped + a.stopped, running: m.running + a.running };
|
|
14
|
-
});
|
|
15
|
-
const passRate = computed(() => total.value.passed + total.value.failed ? `${(100 * total.value.passed / (total.value.passed + total.value.failed)).toFixed(1)}%` : '—');
|
|
16
|
-
const cards = computed(() => [
|
|
17
|
-
{ name: '测试脚本', value: total.value.scripts, note: `Midscene ${props.data.midscene.scripts} · Appium ${props.data.appium.scripts}`, icon: Collection, color: '#006be6' },
|
|
18
|
-
{ name: '执行次数', value: total.value.runs, note: `Midscene ${props.data.midscene.runs} · Appium ${props.data.appium.runs}`, icon: VideoPlay, color: '#13b8a6' },
|
|
19
|
-
{ name: '测试通过率', value: passRate.value, note: `通过 ${total.value.passed} 次 / 完成 ${total.value.passed + total.value.failed} 次`, icon: CircleCheck, color: '#67b92e' },
|
|
20
|
-
{ name: '失败次数', value: total.value.failed, note: `已停止 ${total.value.stopped} 次 · 运行中 ${total.value.running} 次`, icon: Warning, color: '#ed6a5e' },
|
|
21
|
-
]);
|
|
22
|
-
const points = computed(() => {
|
|
23
|
-
const appium = new Map(props.data.appium[mode.value].map(point => [point.date, point.runs]));
|
|
24
|
-
return props.data.midscene[mode.value].map(point => ({ date: point.date, midscene: point.runs, appium: appium.get(point.date) || 0 }));
|
|
25
|
-
});
|
|
26
|
-
const chartDescription = computed(() => props.data.days ? `所选最近 ${props.data.days} 天,按${mode.value === 'daily' ? '日' : '月'}汇总` : mode.value === 'daily' ? '最近 30 天,按日汇总' : '最近 12 个月,按月汇总');
|
|
27
|
-
const maxY = computed(() => Math.max(4, Math.ceil(Math.max(0, ...points.value.flatMap(point => [shown.value.midscene ? point.midscene : 0, shown.value.appium ? point.appium : 0])) / 4) * 4));
|
|
28
|
-
const x = (index: number) => 52 + index * 920 / Math.max(1, points.value.length - 1);
|
|
29
|
-
const y = (value: number) => 242 - value / maxY.value * 210;
|
|
30
|
-
function line(engine: 'midscene' | 'appium') {
|
|
31
|
-
return points.value.map((point, index) => index === 0 ? `M ${x(index)} ${y(point[engine])}` : `C ${(x(index - 1) + x(index)) / 2} ${y(points.value[index - 1][engine])}, ${(x(index - 1) + x(index)) / 2} ${y(point[engine])}, ${x(index)} ${y(point[engine])}`).join(' ');
|
|
32
|
-
}
|
|
33
|
-
const labelIndices = computed(() => points.value.map((_, i) => i).filter(i => i % Math.max(1, Math.ceil((points.value.length - 1) / 10)) === 0 || i === points.value.length - 1));
|
|
34
|
-
const selected = computed(() => selectedPoint.value === null ? null : points.value[selectedPoint.value]);
|
|
35
|
-
watch(points, () => { selectedPoint.value = null; });
|
|
36
|
-
function navigatePoint(event: KeyboardEvent) {
|
|
37
|
-
if (!['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key)) return;
|
|
38
|
-
event.preventDefault();
|
|
39
|
-
selectedPoint.value = event.key === 'Home' ? 0 : event.key === 'End' ? points.value.length - 1 : Math.max(0, Math.min(points.value.length - 1, (selectedPoint.value ?? -1) + (event.key === 'ArrowRight' ? 1 : -1)));
|
|
40
|
-
}
|
|
41
|
-
const distributions = computed(() => [
|
|
42
|
-
{ title: '引擎执行占比', center: '总执行次数', entries: [
|
|
43
|
-
{ name: 'Midscene', value: props.data.midscene.runs, color: engineColors.midscene },
|
|
44
|
-
{ name: 'Appium', value: props.data.appium.runs, color: engineColors.appium },
|
|
45
|
-
] },
|
|
46
|
-
{ title: '测试结果分布', center: '总执行次数', entries: [
|
|
47
|
-
{ name: '通过', value: total.value.passed, color: '#13b8a6' },
|
|
48
|
-
{ name: '失败', value: total.value.failed, color: '#ed6a5e' },
|
|
49
|
-
{ name: '已停止', value: total.value.stopped, color: '#a3a8b3' },
|
|
50
|
-
{ name: '运行中', value: total.value.running, color: '#f0b44b' },
|
|
51
|
-
] },
|
|
52
|
-
]);
|
|
53
|
-
const failures = computed(() => [
|
|
54
|
-
...props.data.midscene.rows.map(row => ({ ...row, engine: 'Midscene' })),
|
|
55
|
-
...props.data.appium.rows.map(row => ({ ...row, engine: 'Appium' })),
|
|
56
|
-
].filter(row => row.failed > 0).sort((a, b) => b.failed - a.failed).slice(0, 5));
|
|
57
|
-
function ringStyle(entries: { value: number; color: string }[]) {
|
|
58
|
-
if (!total.value.runs) return { background: 'var(--ui-bg)' };
|
|
59
|
-
let angle = 0;
|
|
60
|
-
return { background: `conic-gradient(${entries.map(entry => {
|
|
61
|
-
const start = angle;
|
|
62
|
-
angle += entry.value / total.value.runs * 360;
|
|
63
|
-
return `${entry.color} ${start}deg ${angle}deg`;
|
|
64
|
-
}).join(', ')})` };
|
|
65
|
-
}
|
|
66
|
-
</script>
|
|
67
|
-
|
|
68
|
-
<template>
|
|
69
|
-
<section class="analysis-charts" aria-label="测试数据图表">
|
|
70
|
-
<div class="analysis-metrics">
|
|
71
|
-
<article v-for="card in cards" :key="card.name" class="analysis-chart-card metric-card">
|
|
72
|
-
<h2>{{ card.name }}</h2>
|
|
73
|
-
<div class="metric-card__value"><strong>{{ card.value }}</strong><el-icon :style="{ color: card.color, backgroundColor: `${card.color}16` }"><component :is="card.icon" /></el-icon></div>
|
|
74
|
-
<p>{{ card.note }}</p>
|
|
75
|
-
</article>
|
|
76
|
-
</div>
|
|
77
|
-
|
|
78
|
-
<section class="analysis-chart-card trend-card" aria-label="测试执行趋势">
|
|
79
|
-
<div class="chart-heading">
|
|
80
|
-
<div class="trend-tabs" role="group" aria-label="趋势图时间粒度">
|
|
81
|
-
<button :class="{ active: mode === 'daily' }" :aria-pressed="mode === 'daily'" @click="mode = 'daily'">执行趋势</button>
|
|
82
|
-
<button :class="{ active: mode === 'monthly' }" :aria-pressed="mode === 'monthly'" @click="mode = 'monthly'">月执行量</button>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="trend-legend">
|
|
85
|
-
<button v-for="engine in (['midscene', 'appium'] as const)" :key="engine" :aria-pressed="shown[engine]" :class="{ muted: !shown[engine] }" @click="shown[engine] = !shown[engine]">
|
|
86
|
-
<i :style="{ background: engineColors[engine] }" />{{ engine === 'midscene' ? 'Midscene' : 'Appium' }}
|
|
87
|
-
</button>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
<div class="chart-caption"><span>{{ chartDescription }} · 执行次数</span><span role="status">{{ selected ? `${selected.date} · Midscene ${selected.midscene} 次 · Appium ${selected.appium} 次` : '悬停查看数据,聚焦图表后可用左右方向键切换' }}</span></div>
|
|
91
|
-
<div class="trend-chart-scroll">
|
|
92
|
-
<svg class="trend-chart" viewBox="0 0 1000 284" role="img" aria-label="Midscene 与 Appium 执行趋势,左右方向键查看日期数据" tabindex="0" @keydown="navigatePoint">
|
|
93
|
-
<defs>
|
|
94
|
-
<linearGradient id="midscene-trend-fill" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#4ea9ee" stop-opacity=".45" /><stop offset="100%" stop-color="#4ea9ee" stop-opacity=".05" /></linearGradient>
|
|
95
|
-
<linearGradient id="appium-trend-fill" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#13b8a6" stop-opacity=".4" /><stop offset="100%" stop-color="#13b8a6" stop-opacity=".05" /></linearGradient>
|
|
96
|
-
</defs>
|
|
97
|
-
<g v-for="tick in [0, 1, 2, 3, 4]" :key="tick">
|
|
98
|
-
<rect v-if="tick < 4 && tick % 2 === 0" x="52" :y="y((tick + 1) * maxY / 4)" width="920" height="52.5" fill="var(--ui-bg-soft)" />
|
|
99
|
-
<line x1="52" x2="972" :y1="y(tick * maxY / 4)" :y2="y(tick * maxY / 4)" stroke="var(--ui-border)" />
|
|
100
|
-
<text x="42" :y="y(tick * maxY / 4) + 4" text-anchor="end">{{ tick * maxY / 4 }}</text>
|
|
101
|
-
</g>
|
|
102
|
-
<g v-for="index in labelIndices" :key="index">
|
|
103
|
-
<line :x1="x(index)" :x2="x(index)" y1="32" y2="242" stroke="var(--ui-border)" stroke-dasharray="3 4" />
|
|
104
|
-
<text :x="x(index)" y="267" text-anchor="middle">{{ points[index].date.slice(mode === 'daily' ? 5 : 2) }}</text>
|
|
105
|
-
</g>
|
|
106
|
-
<template v-for="engine in (['midscene', 'appium'] as const)" :key="engine">
|
|
107
|
-
<g v-if="shown[engine] && points.length">
|
|
108
|
-
<path :d="`${line(engine)} L ${x(points.length - 1)} 242 L 52 242 Z`" :fill="`url(#${engine}-trend-fill)`" />
|
|
109
|
-
<path :d="line(engine)" fill="none" :stroke="engineColors[engine]" stroke-width="2.5" />
|
|
110
|
-
<circle v-for="(point, index) in points" :key="point.date" :cx="x(index)" :cy="y(point[engine])" :r="selectedPoint === index ? 4 : 2.5" fill="white" :stroke="engineColors[engine]" stroke-width="1.5" />
|
|
111
|
-
</g>
|
|
112
|
-
</template>
|
|
113
|
-
<line v-if="selectedPoint !== null" :x1="x(selectedPoint)" :x2="x(selectedPoint)" y1="32" y2="242" stroke="var(--ui-text-muted)" stroke-dasharray="4 4" />
|
|
114
|
-
<rect v-for="(point, index) in points" :key="point.date" :x="Math.max(40, x(index) - 460 / Math.max(1, points.length - 1))" y="24" :width="920 / Math.max(1, points.length - 1)" height="224" fill="transparent" @mouseenter="selectedPoint = index">
|
|
115
|
-
<title>{{ point.date }}:Midscene {{ point.midscene }} 次,Appium {{ point.appium }} 次</title>
|
|
116
|
-
</rect>
|
|
117
|
-
<text v-if="!points.some(point => point.midscene || point.appium)" x="512" y="126" text-anchor="middle">此时间范围暂无执行记录</text>
|
|
118
|
-
</svg>
|
|
119
|
-
</div>
|
|
120
|
-
</section>
|
|
121
|
-
|
|
122
|
-
<div class="analysis-distributions">
|
|
123
|
-
<section v-for="chart in distributions" :key="chart.title" class="analysis-chart-card distribution-card" :aria-label="chart.title">
|
|
124
|
-
<h2>{{ chart.title }}</h2>
|
|
125
|
-
<div class="distribution-card__body">
|
|
126
|
-
<div class="donut" :style="ringStyle(chart.entries)" role="img" :aria-label="chart.entries.map(entry => `${entry.name} ${entry.value} 次`).join(',')">
|
|
127
|
-
<div class="donut__center"><strong>{{ total.runs }}</strong><span>{{ total.runs ? chart.center : '暂无记录' }}</span></div>
|
|
128
|
-
</div>
|
|
129
|
-
<ul class="distribution-legend"><li v-for="entry in chart.entries" :key="entry.name"><span><i :style="{ background: entry.color }" />{{ entry.name }}</span><strong>{{ entry.value }}</strong><small>{{ total.runs ? `${(entry.value / total.runs * 100).toFixed(1)}%` : '—' }}</small></li></ul>
|
|
130
|
-
</div>
|
|
131
|
-
</section>
|
|
132
|
-
<section class="analysis-chart-card failures-card" aria-label="失败次数排行">
|
|
133
|
-
<h2>失败次数排行 <small>TOP 5</small></h2>
|
|
134
|
-
<div v-if="!failures.length" class="chart-empty">所选范围暂无失败记录</div>
|
|
135
|
-
<ol v-else class="failure-bars"><li v-for="(row, index) in failures" :key="`${row.engine}-${row.id}`">
|
|
136
|
-
<div><span :title="row.name">{{ index + 1 }}. {{ row.name }}</span><strong>{{ row.failed }} 次</strong></div>
|
|
137
|
-
<div class="failure-bars__track"><span :style="{ width: `${row.failed / failures[0].failed * 100}%` }" /></div>
|
|
138
|
-
<small>{{ row.engine }}</small>
|
|
139
|
-
</li></ol>
|
|
140
|
-
</section>
|
|
141
|
-
</div>
|
|
142
|
-
</section>
|
|
143
|
-
</template>
|
|
144
|
-
|
|
145
|
-
<style scoped>
|
|
146
|
-
.analysis-charts { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
|
|
147
|
-
.analysis-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
|
|
148
|
-
.analysis-chart-card { padding: 22px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); box-shadow: var(--ui-shadow-card); min-width: 0; }
|
|
149
|
-
h2 { margin: 0; font-size: 16px; font-weight: 600; }
|
|
150
|
-
.metric-card__value { display: flex; justify-content: space-between; align-items: center; margin: 24px 0; }
|
|
151
|
-
.metric-card__value > strong { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
152
|
-
.metric-card__value .el-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 24px; }
|
|
153
|
-
.metric-card p { margin: 0; color: var(--ui-text-secondary); font-size: 12px; }
|
|
154
|
-
.chart-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
|
|
155
|
-
.trend-tabs { display: flex; padding: 4px; border-radius: var(--ui-radius-pill); background: var(--ui-bg-soft); }
|
|
156
|
-
.trend-tabs button, .trend-legend button { cursor: pointer; border: 0; background: transparent; color: var(--ui-text-secondary); font-size: 13px; padding: 6px 12px; }
|
|
157
|
-
.trend-tabs button.active { background: var(--ui-surface); color: var(--ui-text); border-radius: var(--ui-radius-pill); box-shadow: 0 1px 3px #00000012; }
|
|
158
|
-
.trend-legend { display: flex; gap: 8px; }
|
|
159
|
-
.trend-legend button { display: flex; align-items: center; gap: 8px; }
|
|
160
|
-
.trend-legend .muted { opacity: .4; }
|
|
161
|
-
i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
|
|
162
|
-
.chart-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--ui-text-secondary); font-size: 12px; margin-top: 18px; min-height: 18px; }
|
|
163
|
-
.trend-chart-scroll { overflow-x: auto; }
|
|
164
|
-
.trend-chart { display: block; width: 100%; min-width: 600px; margin-top: 8px; }
|
|
165
|
-
.trend-chart text { fill: var(--ui-text-secondary); font-size: 12px; }
|
|
166
|
-
.trend-chart:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2px; border-radius: var(--ui-radius-control); }
|
|
167
|
-
.analysis-distributions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
|
|
168
|
-
.distribution-card__body { display: flex; align-items: center; flex-direction: column; gap: 22px; padding-top: 24px; }
|
|
169
|
-
.donut { display: grid; place-items: center; width: 176px; aspect-ratio: 1; border-radius: 50%; }
|
|
170
|
-
.donut__center { width: 124px; height: 124px; background: var(--ui-surface); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
|
|
171
|
-
.donut__center strong { font-size: 27px; font-weight: 600; }
|
|
172
|
-
.donut__center span { font-size: 12px; color: var(--ui-text-secondary); }
|
|
173
|
-
.distribution-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; width: 100%; max-width: 260px; }
|
|
174
|
-
.distribution-legend li { display: grid; grid-template-columns: 1fr 36px 54px; gap: 8px; align-items: center; font-size: 13px; }
|
|
175
|
-
.distribution-legend li > span { display: flex; align-items: center; gap: 8px; }
|
|
176
|
-
.distribution-legend strong, .distribution-legend small { text-align: right; font-variant-numeric: tabular-nums; }
|
|
177
|
-
.distribution-legend small, .failure-bars small { color: var(--ui-text-secondary); }
|
|
178
|
-
.failures-card h2 small { margin-left: 6px; font-size: 11px; font-weight: 400; color: var(--ui-text-muted); }
|
|
179
|
-
.failure-bars { padding: 0; margin: 26px 0 0; list-style: none; display: grid; gap: 16px; }
|
|
180
|
-
.failure-bars li > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
|
|
181
|
-
.failure-bars li > div:first-child > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
182
|
-
.failure-bars strong { font-size: 12px; white-space: nowrap; font-weight: 500; }
|
|
183
|
-
.failure-bars__track { height: 6px; border-radius: 3px; background: var(--ui-bg); margin: 7px 0 3px; overflow: hidden; }
|
|
184
|
-
.failure-bars__track > span { display: block; height: 100%; background: #4ea9ee; border-radius: inherit; }
|
|
185
|
-
.failure-bars small { font-size: 11px; }
|
|
186
|
-
.chart-empty { display: grid; place-items: center; min-height: 240px; color: var(--ui-text-muted); font-size: 13px; }
|
|
187
|
-
@media (max-width: 1200px) { .analysis-metrics { gap: 12px; } .analysis-chart-card { padding: 18px; } .analysis-distributions { gap: 12px; } }
|
|
188
|
-
@media (max-width: 1000px) { .analysis-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .analysis-distributions { grid-template-columns: 1fr; } .distribution-card__body { flex-direction: row; justify-content: space-evenly; flex-wrap: wrap; } }
|
|
189
|
-
</style>
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed, ref, watch } from 'vue';
|
|
3
|
-
import type { AnalysisSummary, AnalysisRow } from '../../analytics/summary';
|
|
4
|
-
const props = defineProps<{ title: string; summary: AnalysisSummary }>();
|
|
5
|
-
const search = ref('');
|
|
6
|
-
const page = ref(1);
|
|
7
|
-
const sort = ref<{ prop: keyof AnalysisRow; order: string | null }>({ prop: 'lastRunAt', order: 'descending' });
|
|
8
|
-
const filteredRows = computed(() => {
|
|
9
|
-
const rows = props.summary.rows.filter(row => row.name.toLowerCase().includes(search.value.trim().toLowerCase()));
|
|
10
|
-
const { prop, order } = sort.value;
|
|
11
|
-
if (order) rows.sort((a, b) => {
|
|
12
|
-
const left = a[prop], right = b[prop];
|
|
13
|
-
if (left == null) return right == null ? 0 : 1;
|
|
14
|
-
if (right == null) return -1;
|
|
15
|
-
const value = typeof left === 'number' && typeof right === 'number' ? left - right : String(left).localeCompare(String(right));
|
|
16
|
-
return order === 'ascending' ? value : -value;
|
|
17
|
-
});
|
|
18
|
-
return rows;
|
|
19
|
-
});
|
|
20
|
-
const rows = computed(() => filteredRows.value.slice((page.value - 1) * 10, page.value * 10));
|
|
21
|
-
watch([search, () => props.summary, sort], () => { page.value = 1; });
|
|
22
|
-
const rate = (value: number | null) => value === null ? '—' : `${(value * 100).toFixed(1)}%`;
|
|
23
|
-
const duration = (value: number | null) => value === null ? '—' : value < 1000 ? `${Math.round(value)} 毫秒` : `${(value / 1000).toFixed(1)} 秒`;
|
|
24
|
-
const statusText = { passed: '通过', failed: '失败', stopped: '已停止', running: '运行中' };
|
|
25
|
-
const statusType = { passed: 'success', failed: 'danger', stopped: 'info', running: 'warning' } as const;
|
|
26
|
-
const date = (value: string) => value && Number.isFinite(Date.parse(value)) ? new Date(value).toLocaleString('zh-CN', { hour12: false }) : '—';
|
|
27
|
-
</script>
|
|
28
|
-
|
|
29
|
-
<template>
|
|
30
|
-
<section class="report-analysis" :aria-label="`${title} 测试报告分析`">
|
|
31
|
-
<div class="report-analysis__heading">
|
|
32
|
-
<div><h2>{{ title }} 测试报告</h2><p>现有脚本 {{ summary.scripts }} 个 · 其中 {{ summary.testedScripts }} 个在所选范围内有执行记录</p></div>
|
|
33
|
-
<el-input v-model="search" clearable placeholder="搜索脚本名称" :aria-label="`搜索 ${title} 脚本`" class="report-analysis__search" />
|
|
34
|
-
</div>
|
|
35
|
-
<div class="report-analysis__metrics">
|
|
36
|
-
<div><span>执行次数</span><strong>{{ summary.runs }}</strong></div>
|
|
37
|
-
<div><span>通过率</span><strong class="metric-primary">{{ rate(summary.passRate) }}</strong></div>
|
|
38
|
-
<div><span>通过 / 失败</span><strong><span class="metric-success">{{ summary.passed }}</span> / <span :class="{ 'metric-danger': summary.failed > 0 }">{{ summary.failed }}</span></strong></div>
|
|
39
|
-
<div><span>停止 / 运行中</span><strong>{{ summary.stopped }} / {{ summary.running }}</strong></div>
|
|
40
|
-
</div>
|
|
41
|
-
<el-table :data="rows" row-key="id" stripe :default-sort="{ prop: 'lastRunAt', order: 'descending' }"
|
|
42
|
-
:empty-text="search ? '没有匹配的脚本' : '暂无脚本或测试记录'" @sort-change="sort = $event">
|
|
43
|
-
<el-table-column prop="name" label="脚本名称" min-width="200" sortable="custom">
|
|
44
|
-
<template #default="{ row }"><span>{{ row.name }}</span><el-tag v-if="row.archived" size="small" type="info" class="report-analysis__historical">历史脚本</el-tag></template>
|
|
45
|
-
</el-table-column>
|
|
46
|
-
<el-table-column prop="runs" label="执行次数" width="110" sortable="custom" />
|
|
47
|
-
<el-table-column prop="passed" label="通过" width="85" sortable="custom" />
|
|
48
|
-
<el-table-column prop="failed" label="失败" width="85" sortable="custom" />
|
|
49
|
-
<el-table-column label="停止 / 运行中" width="120"><template #default="{ row }">{{ row.stopped }} / {{ row.running }}</template></el-table-column>
|
|
50
|
-
<el-table-column prop="passRate" label="通过率" width="105" sortable="custom"><template #default="{ row }">{{ rate(row.passRate) }}</template></el-table-column>
|
|
51
|
-
<el-table-column prop="averageDurationMs" label="平均耗时" width="125" sortable="custom"><template #default="{ row }">{{ duration(row.averageDurationMs) }}</template></el-table-column>
|
|
52
|
-
<el-table-column label="最近状态" width="105"><template #default="{ row }"><el-tag v-if="row.lastStatus" :type="statusType[row.lastStatus as keyof typeof statusType]" effect="light">{{ statusText[row.lastStatus as keyof typeof statusText] }}</el-tag><span v-else class="report-analysis__muted">未执行</span></template></el-table-column>
|
|
53
|
-
<el-table-column prop="lastRunAt" label="最近执行" min-width="180" sortable="custom"><template #default="{ row }">{{ date(row.lastRunAt) }}</template></el-table-column>
|
|
54
|
-
</el-table>
|
|
55
|
-
<el-pagination v-if="filteredRows.length > 10" v-model:current-page="page" :total="filteredRows.length" :page-size="10" layout="total, prev, pager, next" class="report-analysis__pagination" />
|
|
56
|
-
</section>
|
|
57
|
-
</template>
|
|
58
|
-
|
|
59
|
-
<style scoped>
|
|
60
|
-
.report-analysis { padding: 20px; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-card); min-width: 0; }
|
|
61
|
-
.report-analysis__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
|
|
62
|
-
h2 { margin: 0; font-size: 17px; font-weight: 600; }
|
|
63
|
-
p { margin: 8px 0 0; color: var(--ui-text-secondary); font-size: 12px; }
|
|
64
|
-
.report-analysis__search { width: 220px; }
|
|
65
|
-
.report-analysis__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 24px 0; }
|
|
66
|
-
.report-analysis__metrics > div { border-right: 1px solid var(--ui-border); padding-left: 16px; }
|
|
67
|
-
.report-analysis__metrics > div:first-child { padding-left: 0; }
|
|
68
|
-
.report-analysis__metrics > div:last-child { border-right: 0; }
|
|
69
|
-
.report-analysis__metrics > div > span { display: block; color: var(--ui-text-secondary); font-size: 13px; margin-bottom: 8px; }
|
|
70
|
-
.report-analysis__metrics strong { font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
71
|
-
.metric-primary { color: var(--ui-primary); }
|
|
72
|
-
.metric-success { color: var(--ui-success); }
|
|
73
|
-
.metric-danger { color: var(--ui-danger); }
|
|
74
|
-
.report-analysis__historical { margin-left: 8px; }
|
|
75
|
-
.report-analysis__muted { color: var(--ui-text-muted); }
|
|
76
|
-
.report-analysis__pagination { margin-top: 16px; justify-content: flex-end; }
|
|
77
|
-
@media (max-width: 800px) { .report-analysis__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-analysis__metrics > div { border-right: 0; padding-left: 0; } }
|
|
78
|
-
</style>
|