digital-ai-testing-mcp 1.2.2
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/LICENSE +197 -0
- package/README.md +984 -0
- package/dist/api/agents.d.ts +5 -0
- package/dist/api/agents.d.ts.map +1 -0
- package/dist/api/agents.js +33 -0
- package/dist/api/agents.js.map +1 -0
- package/dist/api/applications.d.ts +35 -0
- package/dist/api/applications.d.ts.map +1 -0
- package/dist/api/applications.js +162 -0
- package/dist/api/applications.js.map +1 -0
- package/dist/api/backup.d.ts +4 -0
- package/dist/api/backup.d.ts.map +1 -0
- package/dist/api/backup.js +13 -0
- package/dist/api/backup.js.map +1 -0
- package/dist/api/browser-inspection.d.ts +33 -0
- package/dist/api/browser-inspection.d.ts.map +1 -0
- package/dist/api/browser-inspection.js +273 -0
- package/dist/api/browser-inspection.js.map +1 -0
- package/dist/api/browsers.d.ts +20 -0
- package/dist/api/browsers.d.ts.map +1 -0
- package/dist/api/browsers.js +31 -0
- package/dist/api/browsers.js.map +1 -0
- package/dist/api/client.d.ts +33 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +200 -0
- package/dist/api/client.js.map +1 -0
- package/dist/api/device-groups.d.ts +15 -0
- package/dist/api/device-groups.d.ts.map +1 -0
- package/dist/api/device-groups.js +106 -0
- package/dist/api/device-groups.js.map +1 -0
- package/dist/api/devices.d.ts +32 -0
- package/dist/api/devices.d.ts.map +1 -0
- package/dist/api/devices.js +192 -0
- package/dist/api/devices.js.map +1 -0
- package/dist/api/license.d.ts +3 -0
- package/dist/api/license.d.ts.map +1 -0
- package/dist/api/license.js +11 -0
- package/dist/api/license.js.map +1 -0
- package/dist/api/nv-servers.d.ts +4 -0
- package/dist/api/nv-servers.d.ts.map +1 -0
- package/dist/api/nv-servers.js +20 -0
- package/dist/api/nv-servers.js.map +1 -0
- package/dist/api/projects.d.ts +36 -0
- package/dist/api/projects.d.ts.map +1 -0
- package/dist/api/projects.js +246 -0
- package/dist/api/projects.js.map +1 -0
- package/dist/api/provisioning-profiles.d.ts +7 -0
- package/dist/api/provisioning-profiles.d.ts.map +1 -0
- package/dist/api/provisioning-profiles.js +54 -0
- package/dist/api/provisioning-profiles.js.map +1 -0
- package/dist/api/regions.d.ts +4 -0
- package/dist/api/regions.d.ts.map +1 -0
- package/dist/api/regions.js +20 -0
- package/dist/api/regions.js.map +1 -0
- package/dist/api/reporter-projects.d.ts +3 -0
- package/dist/api/reporter-projects.d.ts.map +1 -0
- package/dist/api/reporter-projects.js +13 -0
- package/dist/api/reporter-projects.js.map +1 -0
- package/dist/api/reporting.d.ts +28 -0
- package/dist/api/reporting.d.ts.map +1 -0
- package/dist/api/reporting.js +340 -0
- package/dist/api/reporting.js.map +1 -0
- package/dist/api/repository.d.ts +17 -0
- package/dist/api/repository.d.ts.map +1 -0
- package/dist/api/repository.js +81 -0
- package/dist/api/repository.js.map +1 -0
- package/dist/api/reservations.d.ts +9 -0
- package/dist/api/reservations.d.ts.map +1 -0
- package/dist/api/reservations.js +72 -0
- package/dist/api/reservations.js.map +1 -0
- package/dist/api/sessions.d.ts +3 -0
- package/dist/api/sessions.d.ts.map +1 -0
- package/dist/api/sessions.js +12 -0
- package/dist/api/sessions.js.map +1 -0
- package/dist/api/test-views.d.ts +9 -0
- package/dist/api/test-views.d.ts.map +1 -0
- package/dist/api/test-views.js +77 -0
- package/dist/api/test-views.js.map +1 -0
- package/dist/api/transactions.d.ts +4 -0
- package/dist/api/transactions.d.ts.map +1 -0
- package/dist/api/transactions.js +28 -0
- package/dist/api/transactions.js.map +1 -0
- package/dist/api/usage-reports.d.ts +24 -0
- package/dist/api/usage-reports.d.ts.map +1 -0
- package/dist/api/usage-reports.js +47 -0
- package/dist/api/usage-reports.js.map +1 -0
- package/dist/api/users.d.ts +14 -0
- package/dist/api/users.d.ts.map +1 -0
- package/dist/api/users.js +77 -0
- package/dist/api/users.js.map +1 -0
- package/dist/api/webdriver.d.ts +97 -0
- package/dist/api/webdriver.d.ts.map +1 -0
- package/dist/api/webdriver.js +1183 -0
- package/dist/api/webdriver.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +130 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/agent-tools.d.ts +3 -0
- package/dist/tools/agent-tools.d.ts.map +1 -0
- package/dist/tools/agent-tools.js +74 -0
- package/dist/tools/agent-tools.js.map +1 -0
- package/dist/tools/application-tools.d.ts +3 -0
- package/dist/tools/application-tools.d.ts.map +1 -0
- package/dist/tools/application-tools.js +816 -0
- package/dist/tools/application-tools.js.map +1 -0
- package/dist/tools/backup-tools.d.ts +3 -0
- package/dist/tools/backup-tools.d.ts.map +1 -0
- package/dist/tools/backup-tools.js +33 -0
- package/dist/tools/backup-tools.js.map +1 -0
- package/dist/tools/boilerplate-tools.d.ts +9 -0
- package/dist/tools/boilerplate-tools.d.ts.map +1 -0
- package/dist/tools/boilerplate-tools.js +1365 -0
- package/dist/tools/boilerplate-tools.js.map +1 -0
- package/dist/tools/browser-tools.d.ts +3 -0
- package/dist/tools/browser-tools.d.ts.map +1 -0
- package/dist/tools/browser-tools.js +108 -0
- package/dist/tools/browser-tools.js.map +1 -0
- package/dist/tools/coverage-tools.d.ts +3 -0
- package/dist/tools/coverage-tools.d.ts.map +1 -0
- package/dist/tools/coverage-tools.js +148 -0
- package/dist/tools/coverage-tools.js.map +1 -0
- package/dist/tools/debug-tools.d.ts +3 -0
- package/dist/tools/debug-tools.d.ts.map +1 -0
- package/dist/tools/debug-tools.js +315 -0
- package/dist/tools/debug-tools.js.map +1 -0
- package/dist/tools/device-group-tools.d.ts +3 -0
- package/dist/tools/device-group-tools.d.ts.map +1 -0
- package/dist/tools/device-group-tools.js +284 -0
- package/dist/tools/device-group-tools.js.map +1 -0
- package/dist/tools/device-tools.d.ts +3 -0
- package/dist/tools/device-tools.d.ts.map +1 -0
- package/dist/tools/device-tools.js +757 -0
- package/dist/tools/device-tools.js.map +1 -0
- package/dist/tools/health-tools.d.ts +3 -0
- package/dist/tools/health-tools.d.ts.map +1 -0
- package/dist/tools/health-tools.js +368 -0
- package/dist/tools/health-tools.js.map +1 -0
- package/dist/tools/inspection-tools.d.ts +3 -0
- package/dist/tools/inspection-tools.d.ts.map +1 -0
- package/dist/tools/inspection-tools.js +1170 -0
- package/dist/tools/inspection-tools.js.map +1 -0
- package/dist/tools/meta-tools.d.ts +4 -0
- package/dist/tools/meta-tools.d.ts.map +1 -0
- package/dist/tools/meta-tools.js +412 -0
- package/dist/tools/meta-tools.js.map +1 -0
- package/dist/tools/nv-server-tools.d.ts +3 -0
- package/dist/tools/nv-server-tools.d.ts.map +1 -0
- package/dist/tools/nv-server-tools.js +67 -0
- package/dist/tools/nv-server-tools.js.map +1 -0
- package/dist/tools/performance-tools.d.ts +3 -0
- package/dist/tools/performance-tools.d.ts.map +1 -0
- package/dist/tools/performance-tools.js +295 -0
- package/dist/tools/performance-tools.js.map +1 -0
- package/dist/tools/project-tools.d.ts +3 -0
- package/dist/tools/project-tools.d.ts.map +1 -0
- package/dist/tools/project-tools.js +577 -0
- package/dist/tools/project-tools.js.map +1 -0
- package/dist/tools/prompt-tools.d.ts +3 -0
- package/dist/tools/prompt-tools.d.ts.map +1 -0
- package/dist/tools/prompt-tools.js +570 -0
- package/dist/tools/prompt-tools.js.map +1 -0
- package/dist/tools/provisioning-profile-tools.d.ts +3 -0
- package/dist/tools/provisioning-profile-tools.d.ts.map +1 -0
- package/dist/tools/provisioning-profile-tools.js +169 -0
- package/dist/tools/provisioning-profile-tools.js.map +1 -0
- package/dist/tools/region-tools.d.ts +3 -0
- package/dist/tools/region-tools.d.ts.map +1 -0
- package/dist/tools/region-tools.js +46 -0
- package/dist/tools/region-tools.js.map +1 -0
- package/dist/tools/reporting-tools.d.ts +3 -0
- package/dist/tools/reporting-tools.d.ts.map +1 -0
- package/dist/tools/reporting-tools.js +1105 -0
- package/dist/tools/reporting-tools.js.map +1 -0
- package/dist/tools/repository-tools.d.ts +3 -0
- package/dist/tools/repository-tools.d.ts.map +1 -0
- package/dist/tools/repository-tools.js +208 -0
- package/dist/tools/repository-tools.js.map +1 -0
- package/dist/tools/reservation-tools.d.ts +3 -0
- package/dist/tools/reservation-tools.d.ts.map +1 -0
- package/dist/tools/reservation-tools.js +199 -0
- package/dist/tools/reservation-tools.js.map +1 -0
- package/dist/tools/resources.d.ts +3 -0
- package/dist/tools/resources.d.ts.map +1 -0
- package/dist/tools/resources.js +91 -0
- package/dist/tools/resources.js.map +1 -0
- package/dist/tools/test-view-tools.d.ts +3 -0
- package/dist/tools/test-view-tools.d.ts.map +1 -0
- package/dist/tools/test-view-tools.js +242 -0
- package/dist/tools/test-view-tools.js.map +1 -0
- package/dist/tools/transaction-tools.d.ts +3 -0
- package/dist/tools/transaction-tools.d.ts.map +1 -0
- package/dist/tools/transaction-tools.js +391 -0
- package/dist/tools/transaction-tools.js.map +1 -0
- package/dist/tools/usage-report-tools.d.ts +3 -0
- package/dist/tools/usage-report-tools.d.ts.map +1 -0
- package/dist/tools/usage-report-tools.js +160 -0
- package/dist/tools/usage-report-tools.js.map +1 -0
- package/dist/tools/user-tools.d.ts +3 -0
- package/dist/tools/user-tools.d.ts.map +1 -0
- package/dist/tools/user-tools.js +279 -0
- package/dist/tools/user-tools.js.map +1 -0
- package/dist/tools/web-inspection-tools.d.ts +3 -0
- package/dist/tools/web-inspection-tools.d.ts.map +1 -0
- package/dist/tools/web-inspection-tools.js +416 -0
- package/dist/tools/web-inspection-tools.js.map +1 -0
- package/dist/tools/workflow-tools.d.ts +3 -0
- package/dist/tools/workflow-tools.d.ts.map +1 -0
- package/dist/tools/workflow-tools.js +1136 -0
- package/dist/tools/workflow-tools.js.map +1 -0
- package/dist/types/digital-ai.d.ts +691 -0
- package/dist/types/digital-ai.d.ts.map +1 -0
- package/dist/types/digital-ai.js +3 -0
- package/dist/types/digital-ai.js.map +1 -0
- package/dist/utils/csv.d.ts +6 -0
- package/dist/utils/csv.d.ts.map +1 -0
- package/dist/utils/csv.js +77 -0
- package/dist/utils/csv.js.map +1 -0
- package/dist/utils/destructive-guard.d.ts +2 -0
- package/dist/utils/destructive-guard.d.ts.map +1 -0
- package/dist/utils/destructive-guard.js +13 -0
- package/dist/utils/destructive-guard.js.map +1 -0
- package/dist/utils/device-resolver.d.ts +22 -0
- package/dist/utils/device-resolver.d.ts.map +1 -0
- package/dist/utils/device-resolver.js +69 -0
- package/dist/utils/device-resolver.js.map +1 -0
- package/dist/utils/download-command.d.ts +18 -0
- package/dist/utils/download-command.d.ts.map +1 -0
- package/dist/utils/download-command.js +54 -0
- package/dist/utils/download-command.js.map +1 -0
- package/dist/utils/locality.d.ts +9 -0
- package/dist/utils/locality.d.ts.map +1 -0
- package/dist/utils/locality.js +22 -0
- package/dist/utils/locality.js.map +1 -0
- package/dist/utils/output-format.d.ts +13 -0
- package/dist/utils/output-format.d.ts.map +1 -0
- package/dist/utils/output-format.js +13 -0
- package/dist/utils/output-format.js.map +1 -0
- package/dist/utils/pagination.d.ts +12 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/pagination.js +24 -0
- package/dist/utils/pagination.js.map +1 -0
- package/dist/utils/path-guard.d.ts +17 -0
- package/dist/utils/path-guard.d.ts.map +1 -0
- package/dist/utils/path-guard.js +41 -0
- package/dist/utils/path-guard.js.map +1 -0
- package/dist/utils/performance-comparison.d.ts +53 -0
- package/dist/utils/performance-comparison.d.ts.map +1 -0
- package/dist/utils/performance-comparison.js +286 -0
- package/dist/utils/performance-comparison.js.map +1 -0
- package/dist/utils/performance-stats.d.ts +72 -0
- package/dist/utils/performance-stats.d.ts.map +1 -0
- package/dist/utils/performance-stats.js +124 -0
- package/dist/utils/performance-stats.js.map +1 -0
- package/dist/utils/profile-loader.d.ts +37 -0
- package/dist/utils/profile-loader.d.ts.map +1 -0
- package/dist/utils/profile-loader.js +80 -0
- package/dist/utils/profile-loader.js.map +1 -0
- package/dist/utils/response-formatter.d.ts +27 -0
- package/dist/utils/response-formatter.d.ts.map +1 -0
- package/dist/utils/response-formatter.js +493 -0
- package/dist/utils/response-formatter.js.map +1 -0
- package/dist/utils/timestamp.d.ts +12 -0
- package/dist/utils/timestamp.d.ts.map +1 -0
- package/dist/utils/timestamp.js +22 -0
- package/dist/utils/timestamp.js.map +1 -0
- package/dist/utils/tool-registry.d.ts +21 -0
- package/dist/utils/tool-registry.d.ts.map +1 -0
- package/dist/utils/tool-registry.js +137 -0
- package/dist/utils/tool-registry.js.map +1 -0
- package/dist/utils/upload-command.d.ts +20 -0
- package/dist/utils/upload-command.d.ts.map +1 -0
- package/dist/utils/upload-command.js +64 -0
- package/dist/utils/upload-command.js.map +1 -0
- package/dist/utils/usage-report-guard.d.ts +48 -0
- package/dist/utils/usage-report-guard.d.ts.map +1 -0
- package/dist/utils/usage-report-guard.js +88 -0
- package/dist/utils/usage-report-guard.js.map +1 -0
- package/dist/utils/usage-report-summary.d.ts +20 -0
- package/dist/utils/usage-report-summary.d.ts.map +1 -0
- package/dist/utils/usage-report-summary.js +48 -0
- package/dist/utils/usage-report-summary.js.map +1 -0
- package/dist/utils/version.d.ts +2 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +24 -0
- package/dist/utils/version.js.map +1 -0
- package/package.json +73 -0
- package/resources/boilerplate/Android-Native/Java JUnit5/AndroidNative-oss.java +58 -0
- package/resources/boilerplate/Android-Native/Java JUnit5/AndroidNative.java +67 -0
- package/resources/boilerplate/Android-Native/Java JUnit5/gradle +10 -0
- package/resources/boilerplate/Android-Native/Java JUnit5/gradle-oss +10 -0
- package/resources/boilerplate/Android-Native/Java JUnit5/maven +42 -0
- package/resources/boilerplate/Android-Native/Java JUnit5/maven-oss +42 -0
- package/resources/boilerplate/Android-Native/NodeJS (WebDriver)/AndroidNative.js +30 -0
- package/resources/boilerplate/Android-Native/NodeJS (WebDriver)/Shell +19 -0
- package/resources/boilerplate/Android-Native/NodeJS (WebDriver)/Shell-oss +19 -0
- package/resources/boilerplate/Android-Native/NodeJS (WebDriver)/package-oss.json +12 -0
- package/resources/boilerplate/Android-Native/NodeJS (WebDriver)/package.json +12 -0
- package/resources/boilerplate/Android-Native/NodeJS (WebDriver)/wdio-oss.conf.js +40 -0
- package/resources/boilerplate/Android-Native/NodeJS (WebDriver)/wdio.conf.js +44 -0
- package/resources/boilerplate/Android-Native/Python/AndroidNative-oss.py +49 -0
- package/resources/boilerplate/Android-Native/Python/AndroidNative.py +69 -0
- package/resources/boilerplate/Android-Native/Python/pip +2 -0
- package/resources/boilerplate/Android-Native/Python/pip-oss +1 -0
- package/resources/boilerplate/Android-Native/java TestNG/AndroidNative-oss.java +58 -0
- package/resources/boilerplate/Android-Native/java TestNG/AndroidNative.java +67 -0
- package/resources/boilerplate/Android-Native/java TestNG/gradle +13 -0
- package/resources/boilerplate/Android-Native/java TestNG/gradle-oss +13 -0
- package/resources/boilerplate/Android-Native/java TestNG/maven +42 -0
- package/resources/boilerplate/Android-Native/java TestNG/maven-oss +42 -0
- package/resources/boilerplate/iOS-Native/NodeJS (WebDriver)/Shell-oss.txt +19 -0
- package/resources/boilerplate/iOS-Native/NodeJS (WebDriver)/Shell.txt +19 -0
- package/resources/boilerplate/iOS-Native/NodeJS (WebDriver)/iOSNative.js +30 -0
- package/resources/boilerplate/iOS-Native/NodeJS (WebDriver)/package-oss.json +12 -0
- package/resources/boilerplate/iOS-Native/NodeJS (WebDriver)/package.json +12 -0
- package/resources/boilerplate/iOS-Native/NodeJS (WebDriver)/wdio-oss.conf.js +35 -0
- package/resources/boilerplate/iOS-Native/NodeJS (WebDriver)/wdio.conf.js +39 -0
- package/resources/boilerplate/iOS-Native/Python/iOSNative-oss.py +44 -0
- package/resources/boilerplate/iOS-Native/Python/iOSNative.py +62 -0
- package/resources/boilerplate/iOS-Native/Python/pip-oss.txt +1 -0
- package/resources/boilerplate/iOS-Native/Python/pip.txt +2 -0
- package/resources/boilerplate/iOS-Native/java-JUnit5/gradle +10 -0
- package/resources/boilerplate/iOS-Native/java-JUnit5/gradle-oss +10 -0
- package/resources/boilerplate/iOS-Native/java-JUnit5/iOSNative-oss.java +52 -0
- package/resources/boilerplate/iOS-Native/java-JUnit5/iOSNative.java +59 -0
- package/resources/boilerplate/iOS-Native/java-JUnit5/maven +42 -0
- package/resources/boilerplate/iOS-Native/java-JUnit5/maven-oss +42 -0
- package/resources/boilerplate/iOS-Native/java-TestNG/gradle +13 -0
- package/resources/boilerplate/iOS-Native/java-TestNG/gradle-oss +13 -0
- package/resources/boilerplate/iOS-Native/java-TestNG/iOSNative-oss.java +52 -0
- package/resources/boilerplate/iOS-Native/java-TestNG/iOSNative.java +59 -0
- package/resources/boilerplate/iOS-Native/java-TestNG/maven +42 -0
- package/resources/boilerplate/iOS-Native/java-TestNG/maven-oss +42 -0
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export function registerPrompts(server) {
|
|
3
|
+
// ─── Create POC Environment ────────────────────────────────────────────────
|
|
4
|
+
server.prompt('create_poc', 'Guided 10-step workflow to set up a complete POC environment: device group, device selection and tagging, project, users, and app assignment. Collects all required parameters upfront and confirms with the operator before executing each major phase.', {
|
|
5
|
+
customerName: z
|
|
6
|
+
.string()
|
|
7
|
+
.describe('Customer name, e.g. "Acme Corp". The POC display name will be "<name> POC" and the tag will be the lowercase alphanumeric form.'),
|
|
8
|
+
region: z
|
|
9
|
+
.string()
|
|
10
|
+
.describe('Region code where the customer will test, e.g. "US2", "EU", "SG". Used to select geographically close devices.'),
|
|
11
|
+
deviceCount: z
|
|
12
|
+
.string()
|
|
13
|
+
.optional()
|
|
14
|
+
.describe('Total number of phones to allocate (default: 6).'),
|
|
15
|
+
iosCount: z
|
|
16
|
+
.string()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('Number of iOS phones in the mix. Defaults to half of deviceCount.'),
|
|
19
|
+
androidCount: z
|
|
20
|
+
.string()
|
|
21
|
+
.optional()
|
|
22
|
+
.describe('Number of Android phones in the mix. Defaults to half of deviceCount.'),
|
|
23
|
+
automationType: z
|
|
24
|
+
.string()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('"appium-server" (default) or "appium-grid". Controls the project automation mode.'),
|
|
27
|
+
salesforceUrl: z
|
|
28
|
+
.string()
|
|
29
|
+
.describe('Salesforce Opportunity URL — recorded in project notes.'),
|
|
30
|
+
endDate: z
|
|
31
|
+
.string()
|
|
32
|
+
.describe('POC end date, e.g. "2026-08-31" — recorded in project notes alongside the Salesforce URL.'),
|
|
33
|
+
users: z
|
|
34
|
+
.string()
|
|
35
|
+
.describe('JSON array of users to create. Each object must have: email (string), firstName (string), lastName (string), role ("User" or "ProjectAdmin"). ' +
|
|
36
|
+
'Example: [{"email":"alice@co.com","firstName":"Alice","lastName":"Smith","role":"User"},{"email":"bob@co.com","firstName":"Bob","lastName":"Jones","role":"ProjectAdmin"}]'),
|
|
37
|
+
appName: z
|
|
38
|
+
.string()
|
|
39
|
+
.optional()
|
|
40
|
+
.describe('Name of the demo app to assign (default: "ExperiBank"). Must exist in the Default project app repository.'),
|
|
41
|
+
appVersion: z
|
|
42
|
+
.string()
|
|
43
|
+
.optional()
|
|
44
|
+
.describe('Version of the demo app to assign (default: "1.0").'),
|
|
45
|
+
}, ({ customerName, region, deviceCount, iosCount, androidCount, automationType, salesforceUrl, endDate, users, appName, appVersion }) => {
|
|
46
|
+
const pocName = `${customerName.trim()} POC`;
|
|
47
|
+
const pocTag = customerName.toLowerCase().replace(/[^a-z0-9]/g, '') + 'poc';
|
|
48
|
+
const appiumOSS = (automationType ?? 'appium-server') !== 'appium-grid';
|
|
49
|
+
const automationLabel = appiumOSS ? 'Appium Server (appiumOSS: true)' : 'Appium Grid (appiumOSS: false)';
|
|
50
|
+
const total = parseInt(deviceCount ?? '6', 10);
|
|
51
|
+
const ios = iosCount ? parseInt(iosCount, 10) : Math.ceil(total / 2);
|
|
52
|
+
const android = androidCount ? parseInt(androidCount, 10) : Math.floor(total / 2);
|
|
53
|
+
const deviceDesc = `${total} phones total — ${ios} iOS + ${android} Android`;
|
|
54
|
+
const targetAppName = appName ?? 'ExperiBank';
|
|
55
|
+
const targetAppVersion = appVersion ?? '1.0';
|
|
56
|
+
const lines = [
|
|
57
|
+
`You are executing a guided POC setup workflow. Work through each step in order.`,
|
|
58
|
+
`Do not skip steps or reorder them — later steps depend on IDs returned by earlier steps.`,
|
|
59
|
+
``,
|
|
60
|
+
`═══════════════════════════════════════════════`,
|
|
61
|
+
`CONFIRMED PARAMETERS`,
|
|
62
|
+
`═══════════════════════════════════════════════`,
|
|
63
|
+
`POC Display Name : ${pocName}`,
|
|
64
|
+
`POC Device Tag : ${pocTag} (lowercase, alphanumeric only — spaces and special chars stripped)`,
|
|
65
|
+
`Target Region : ${region}`,
|
|
66
|
+
`Device Mix : ${deviceDesc}`,
|
|
67
|
+
`Automation Type : ${automationLabel}`,
|
|
68
|
+
`Salesforce URL : ${salesforceUrl}`,
|
|
69
|
+
`POC End Date : ${endDate}`,
|
|
70
|
+
`Users : ${users}`,
|
|
71
|
+
``,
|
|
72
|
+
`─── STEP 0 — Operator confirmation ──────────────────────────────────────`,
|
|
73
|
+
`Before executing anything, present the parameters above to the operator in a`,
|
|
74
|
+
`clean summary and ask for explicit confirmation to proceed.`,
|
|
75
|
+
`If the operator wants to change anything, stop and collect corrections.`,
|
|
76
|
+
`Only proceed past this step when the operator says yes.`,
|
|
77
|
+
``,
|
|
78
|
+
`─── STEP 1 — Create the POC device group ────────────────────────────────`,
|
|
79
|
+
`Call: create_device_group`,
|
|
80
|
+
` name: "${pocName}"`,
|
|
81
|
+
` acceptNewDevices: false`,
|
|
82
|
+
``,
|
|
83
|
+
`SAVE the returned device group ID as <POC_GROUP_ID>.`,
|
|
84
|
+
``,
|
|
85
|
+
`─── STEP 2 — Locate the Default device group ────────────────────────────`,
|
|
86
|
+
`Call: list_device_groups`,
|
|
87
|
+
`Find the entry whose name is exactly "Default" and note its ID as <DEFAULT_GROUP_ID>.`,
|
|
88
|
+
``,
|
|
89
|
+
`─── STEP 3 — Select devices for the POC ─────────────────────────────────`,
|
|
90
|
+
`Call: get_devices_in_group`,
|
|
91
|
+
` groupId: <DEFAULT_GROUP_ID>`,
|
|
92
|
+
``,
|
|
93
|
+
`From the returned list, select devices that satisfy ALL of the following rules:`,
|
|
94
|
+
``,
|
|
95
|
+
` REQUIRED — include only:`,
|
|
96
|
+
` • deviceCategory === "PHONE" (never TABLET, WATCH, or UNKNOWN)`,
|
|
97
|
+
` • displayStatus === "Available" (skip Offline, Cleanup, Initializing, or any error state)`,
|
|
98
|
+
` • region contains "${region}" (case-insensitive partial match)`,
|
|
99
|
+
``,
|
|
100
|
+
` REQUIRED — exclude any device whose tags array contains a value that (case-insensitive):`,
|
|
101
|
+
` • contains "DONOTUSE" or "DO NOT USE"`,
|
|
102
|
+
` • contains "POC"`,
|
|
103
|
+
` • contains "INUSE" or "IN USE"`,
|
|
104
|
+
` • otherwise suggests the device is restricted, reserved by another team, or in conflict`,
|
|
105
|
+
` (Tags used for data centre or support group assignment are fine — exclude only conflict indicators)`,
|
|
106
|
+
``,
|
|
107
|
+
` TARGET MIX: ${deviceDesc}`,
|
|
108
|
+
` • Prefer modern models (last 2–3 device generations)`,
|
|
109
|
+
` • If fewer than ${total} devices pass all filters, select all that do and report the shortfall`,
|
|
110
|
+
` • If the iOS/Android split cannot be met exactly, fill with available devices from the other OS`,
|
|
111
|
+
``,
|
|
112
|
+
`Present the proposed selection to the operator as a table:`,
|
|
113
|
+
` Device Name | OS | Model | Region | Tags`,
|
|
114
|
+
`Ask for confirmation before proceeding to Step 4.`,
|
|
115
|
+
`Save the confirmed device IDs as <SELECTED_DEVICE_IDS>.`,
|
|
116
|
+
``,
|
|
117
|
+
`─── STEP 4 — Add selected devices to the POC group ──────────────────────`,
|
|
118
|
+
`Call: add_devices_to_group`,
|
|
119
|
+
` groupId: <POC_GROUP_ID>`,
|
|
120
|
+
` deviceIds: <SELECTED_DEVICE_IDS>`,
|
|
121
|
+
``,
|
|
122
|
+
`─── STEP 5 — Tag all selected devices with the POC tag ──────────────────`,
|
|
123
|
+
`For each device in <SELECTED_DEVICE_IDS>, call: add_device_tag`,
|
|
124
|
+
` deviceId: <device ID>`,
|
|
125
|
+
` tag: "${pocTag}"`,
|
|
126
|
+
``,
|
|
127
|
+
`Run these calls sequentially. If any individual tag call fails, report the failure`,
|
|
128
|
+
`and continue tagging the remaining devices — do not abort the workflow.`,
|
|
129
|
+
``,
|
|
130
|
+
`─── STEP 6 — Remove selected devices from the Default device group ───────`,
|
|
131
|
+
`Call: remove_devices_from_group`,
|
|
132
|
+
` groupId: <DEFAULT_GROUP_ID>`,
|
|
133
|
+
` deviceIds: <SELECTED_DEVICE_IDS>`,
|
|
134
|
+
` confirmDeletion: true`,
|
|
135
|
+
``,
|
|
136
|
+
`NOTE: confirmDeletion:true is correct here. This removal is an intentional`,
|
|
137
|
+
`step in this scripted workflow, not an ad-hoc destructive action.`,
|
|
138
|
+
``,
|
|
139
|
+
`─── STEP 7 — Create the POC project ─────────────────────────────────────`,
|
|
140
|
+
`Call: create_project`,
|
|
141
|
+
` name: "${pocName}"`,
|
|
142
|
+
` deviceGroupName: "${pocName}"`,
|
|
143
|
+
` appiumOSS: ${appiumOSS}`,
|
|
144
|
+
``,
|
|
145
|
+
`SAVE the returned project ID as <POC_PROJECT_ID>.`,
|
|
146
|
+
``,
|
|
147
|
+
`Immediately after, call: set_project_notes`,
|
|
148
|
+
` projectId: <POC_PROJECT_ID>`,
|
|
149
|
+
` notes: "Salesforce Opportunity: ${salesforceUrl}\\nPOC End Date: ${endDate}"`,
|
|
150
|
+
``,
|
|
151
|
+
`─── STEP 8 — Find the Default project ID ────────────────────────────────`,
|
|
152
|
+
`Call: list_projects`,
|
|
153
|
+
`Find the project named exactly "Default" and note its ID as <DEFAULT_PROJECT_ID>.`,
|
|
154
|
+
`You will need this in Step 9 to remove users from the Default project.`,
|
|
155
|
+
``,
|
|
156
|
+
`─── STEP 9 — Create users and assign them to the POC project ────────────`,
|
|
157
|
+
``,
|
|
158
|
+
`CRITICAL RULES — enforce these without exception:`,
|
|
159
|
+
` • Never grant Cloud Admin access to any user`,
|
|
160
|
+
` • Every user must be removed from the Default project after creation`,
|
|
161
|
+
` • role must be "User" or "ProjectAdmin" only — if any entry specifies "Admin", refuse and flag it`,
|
|
162
|
+
``,
|
|
163
|
+
`Parse the users JSON: ${users}`,
|
|
164
|
+
``,
|
|
165
|
+
`For each user, execute these sub-steps in order:`,
|
|
166
|
+
``,
|
|
167
|
+
` 9a. Call: create_user`,
|
|
168
|
+
` username: <email>`,
|
|
169
|
+
` firstName: <firstName>`,
|
|
170
|
+
` lastName: <lastName>`,
|
|
171
|
+
` email: <email>`,
|
|
172
|
+
` role: <role> ("User" or "ProjectAdmin")`,
|
|
173
|
+
` authenticationType: "BASIC"`,
|
|
174
|
+
` SAVE the returned user ID as <USER_ID>.`,
|
|
175
|
+
``,
|
|
176
|
+
` 9b. Call: assign_user_to_project`,
|
|
177
|
+
` projectId: <POC_PROJECT_ID>`,
|
|
178
|
+
` userId: <USER_ID>`,
|
|
179
|
+
` role: <role>`,
|
|
180
|
+
``,
|
|
181
|
+
` 9c. Call: remove_user_from_project`,
|
|
182
|
+
` projectId: <DEFAULT_PROJECT_ID>`,
|
|
183
|
+
` userId: <USER_ID>`,
|
|
184
|
+
` confirmDeletion: true`,
|
|
185
|
+
` NOTE: confirmDeletion:true is correct — removing POC users from Default`,
|
|
186
|
+
` is an intentional step in this workflow.`,
|
|
187
|
+
``,
|
|
188
|
+
`If step 9a (create_user) fails, report it and continue with the next user.`,
|
|
189
|
+
`If step 9b or 9c fails, report it in the completion summary — the user exists but`,
|
|
190
|
+
`needs manual project assignment or Default project removal. Continue with remaining users.`,
|
|
191
|
+
``,
|
|
192
|
+
`─── STEP 10 — Assign ${targetAppName} ${targetAppVersion} to the POC project ──────────────────`,
|
|
193
|
+
`Call: list_applications`,
|
|
194
|
+
`Search for an application whose name contains "${targetAppName}" and whose version is "${targetAppVersion}".`,
|
|
195
|
+
`If multiple matches are found, prefer the most recently uploaded one.`,
|
|
196
|
+
``,
|
|
197
|
+
`If no matching app is found:`,
|
|
198
|
+
` • Report this clearly in the completion summary`,
|
|
199
|
+
` • Do not abort — mark Step 10 as incomplete and note manual action is required`,
|
|
200
|
+
``,
|
|
201
|
+
`If found, call: assign_app_to_project`,
|
|
202
|
+
` projectId: <POC_PROJECT_ID>`,
|
|
203
|
+
` applicationId: <app ID>`,
|
|
204
|
+
``,
|
|
205
|
+
`NOTE: This grants the POC project access to the same shared app binary — it is not`,
|
|
206
|
+
`an independent copy. If an independent copy is needed (e.g. for separate versioning),`,
|
|
207
|
+
`a manual download and re-upload to the new project will be required.`,
|
|
208
|
+
``,
|
|
209
|
+
`═══════════════════════════════════════════════`,
|
|
210
|
+
`COMPLETION SUMMARY`,
|
|
211
|
+
`═══════════════════════════════════════════════`,
|
|
212
|
+
`After all steps complete, present a final summary:`,
|
|
213
|
+
``,
|
|
214
|
+
` ✅ POC Name : ${pocName}`,
|
|
215
|
+
` ✅ Device Group ID : <POC_GROUP_ID>`,
|
|
216
|
+
` ✅ Devices allocated: <count> (<iOS count> iOS, <Android count> Android)`,
|
|
217
|
+
` ✅ POC Tag applied : ${pocTag}`,
|
|
218
|
+
` ✅ Project ID : <POC_PROJECT_ID>`,
|
|
219
|
+
` ✅ Project Notes : Salesforce URL + End Date recorded`,
|
|
220
|
+
` ✅ Users created : <count> (list names and roles)`,
|
|
221
|
+
` ✅ ${targetAppName} ${targetAppVersion}: assigned to project (or ⚠️ not found — manual action needed)`,
|
|
222
|
+
` ⚠️ Any warnings, shortfalls, or individual step failures`,
|
|
223
|
+
];
|
|
224
|
+
return {
|
|
225
|
+
messages: [{
|
|
226
|
+
role: 'user',
|
|
227
|
+
content: { type: 'text', text: lines.join('\n') },
|
|
228
|
+
}],
|
|
229
|
+
};
|
|
230
|
+
});
|
|
231
|
+
// ─── Investigate Test Failures ─────────────────────────────────────────────
|
|
232
|
+
server.prompt('investigate_test_failures', 'Guide a structured investigation of recent test failures for a project. Produces a triage report with failure counts, top failing tests, and suggested next steps.', {
|
|
233
|
+
projectName: z.string().optional().describe('Project to investigate. Leave blank to investigate all projects.'),
|
|
234
|
+
hoursBack: z.string().optional().describe('How many hours of history to examine (default: 24).'),
|
|
235
|
+
}, ({ projectName, hoursBack }) => {
|
|
236
|
+
const hours = parseInt(hoursBack ?? '24', 10);
|
|
237
|
+
const since = new Date(Date.now() - hours * 3_600_000).toISOString();
|
|
238
|
+
const scope = projectName ? `project "${projectName}"` : 'all projects';
|
|
239
|
+
return {
|
|
240
|
+
messages: [{
|
|
241
|
+
role: 'user',
|
|
242
|
+
content: {
|
|
243
|
+
type: 'text',
|
|
244
|
+
text: [
|
|
245
|
+
`Please investigate test failures in ${scope} over the last ${hours} hours (since ${since}).`,
|
|
246
|
+
'',
|
|
247
|
+
'Use these tools in order:',
|
|
248
|
+
`1. get_project_test_summary with startDate="${since}"${projectName ? ` and projectName="${projectName}"` : ''} — get overall pass/fail counts and top failing tests.`,
|
|
249
|
+
`2. list_test_reports with filter status=Failed, sort start_time descending, limit 10${projectName ? `, projectName="${projectName}"` : ''} — see the most recent failures in detail.`,
|
|
250
|
+
`3. get_distinct_test_key_values with keys=["device.os","status"]${projectName ? `, projectName="${projectName}"` : ''} — check if failures are concentrated on a specific OS or device type.`,
|
|
251
|
+
'',
|
|
252
|
+
'After gathering the data, provide:',
|
|
253
|
+
' • A one-paragraph summary of the failure situation.',
|
|
254
|
+
' • A bullet list of the top failing tests with failure counts.',
|
|
255
|
+
' • Whether failures appear to be device/OS-specific or widespread.',
|
|
256
|
+
' • Recommended next steps (e.g. re-run, investigate a specific device, check a specific test).',
|
|
257
|
+
].join('\n'),
|
|
258
|
+
},
|
|
259
|
+
}],
|
|
260
|
+
};
|
|
261
|
+
});
|
|
262
|
+
// ─── Device Farm Health Check ──────────────────────────────────────────────
|
|
263
|
+
server.prompt('device_farm_health_check', 'Run a full device farm health check: device availability, agent connectivity, and orphaned session detection.', {}, () => ({
|
|
264
|
+
messages: [{
|
|
265
|
+
role: 'user',
|
|
266
|
+
content: {
|
|
267
|
+
type: 'text',
|
|
268
|
+
text: [
|
|
269
|
+
'Please run a complete device farm health check using these tools:',
|
|
270
|
+
'',
|
|
271
|
+
'1. get_environment_summary — overall environment snapshot.',
|
|
272
|
+
'2. get_agent_status — check which agents are connected and report any offline agents.',
|
|
273
|
+
'3. check_ios_readiness — verify iOS devices and provisioning profiles are ready.',
|
|
274
|
+
'4. find_available_device(os=Android) — verify Android devices are ready.',
|
|
275
|
+
'5. release_orphaned_sessions with maxAgeHours=4 (dry run, no confirmDeletion) — identify any stuck sessions.',
|
|
276
|
+
'',
|
|
277
|
+
'After gathering the data, provide:',
|
|
278
|
+
' • Overall farm health: Healthy / Degraded / Critical.',
|
|
279
|
+
' • Count of available vs. in-use vs. offline devices.',
|
|
280
|
+
' • Any agents that are offline or have connectivity issues.',
|
|
281
|
+
' • Any orphaned sessions that should be released.',
|
|
282
|
+
' • Recommended actions to restore full capacity.',
|
|
283
|
+
].join('\n'),
|
|
284
|
+
},
|
|
285
|
+
}],
|
|
286
|
+
}));
|
|
287
|
+
// ─── Prepare for Test Run ──────────────────────────────────────────────────
|
|
288
|
+
server.prompt('prepare_test_run', 'Check device availability and app readiness before starting a test run.', {
|
|
289
|
+
os: z.string().optional().describe('Target OS: "iOS" or "Android".'),
|
|
290
|
+
appName: z.string().optional().describe('App unique name to verify is uploaded and available.'),
|
|
291
|
+
projectName: z.string().optional().describe('Project the test run belongs to.'),
|
|
292
|
+
}, ({ os, appName, projectName }) => {
|
|
293
|
+
const steps = [
|
|
294
|
+
'Please prepare the environment for an upcoming test run:',
|
|
295
|
+
'',
|
|
296
|
+
];
|
|
297
|
+
if (os) {
|
|
298
|
+
steps.push(`1. find_available_device with os="${os}" — confirm at least one target device is free.`);
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
steps.push('1. find_available_device — find any available device to confirm farm capacity.');
|
|
302
|
+
}
|
|
303
|
+
if (appName) {
|
|
304
|
+
steps.push(`2. list_applications with uniqueName filter for "${appName}" — confirm the app is uploaded and note its ID and version.`);
|
|
305
|
+
}
|
|
306
|
+
if (projectName) {
|
|
307
|
+
steps.push(`3. get_automation_properties with projectName="${projectName}" — retrieve Appium/automation connection details.`);
|
|
308
|
+
}
|
|
309
|
+
steps.push(`${appName ? '3' : '2'}. get_agent_status — confirm at least one agent is online and connected.`, '', 'After checking, summarise:', ' • Whether the farm is ready to run tests (yes/no).', ' • Available device count and which device to target.', appName ? ` • App "${appName}" version and ID.` : '', ' • Any blockers that need resolving before starting.');
|
|
310
|
+
return {
|
|
311
|
+
messages: [{
|
|
312
|
+
role: 'user',
|
|
313
|
+
content: { type: 'text', text: steps.filter(Boolean).join('\n') },
|
|
314
|
+
}],
|
|
315
|
+
};
|
|
316
|
+
});
|
|
317
|
+
// ─── Performance Comparison Report ─────────────────────────────────────────
|
|
318
|
+
server.prompt('performance_comparison_report', 'Plan and run a rigorous performance comparison between two sets of conditions (app versions, device models, ' +
|
|
319
|
+
'OS versions, regions, network profiles, or two automation scripts), using Digital.ai performance transactions. ' +
|
|
320
|
+
'Scrubs confounds, negotiates sample size, REQUIRES explicit plan confirmation, runs the series with outlier-driven ' +
|
|
321
|
+
'reruns, then reports the Speed Index delta (trimmed mean + median + raw mean) with root-cause reasoning.', {
|
|
322
|
+
comparisonGoal: z.string().describe('What to compare, in the user\'s words — e.g. "sampleapp v1.0 vs v2.0 on a Galaxy S21" or "Login speed US2 vs SG1".'),
|
|
323
|
+
appName: z.string().optional().describe('App name to scope the analysis (used with list_applications / list_transactions).'),
|
|
324
|
+
mode: z.string().optional().describe('"existing" to analyze transactions already in the reporter, "fresh" to generate a new sample series via inspection sessions, or blank to let the agent recommend.'),
|
|
325
|
+
}, ({ comparisonGoal, appName, mode }) => ({
|
|
326
|
+
messages: [{
|
|
327
|
+
role: 'user',
|
|
328
|
+
content: {
|
|
329
|
+
type: 'text',
|
|
330
|
+
text: [
|
|
331
|
+
`I want a performance comparison report. Goal: ${comparisonGoal}`,
|
|
332
|
+
appName ? `App: ${appName}` : '',
|
|
333
|
+
mode ? `Preferred data source: ${mode}` : '',
|
|
334
|
+
'',
|
|
335
|
+
'Performance transactions work for all access levels — Cloud Admin sees all projects; project-level keys see only their own project\'s transactions.',
|
|
336
|
+
'If you need cross-project transaction data, switch to Cloud Admin with switch_environment("default") before proceeding.',
|
|
337
|
+
'',
|
|
338
|
+
'Follow these phases IN ORDER. Do not skip the confirmation gate in Phase 3.',
|
|
339
|
+
'',
|
|
340
|
+
'═══ PHASE 0 — Define the comparison axis and the two sides ═══',
|
|
341
|
+
'State precisely what is SUPPOSED to differ (the comparison axis: appVersion / deviceModel / deviceOs /',
|
|
342
|
+
'deviceVersion / networkProfile / region / testId) and what should be held constant. Define side A and side B',
|
|
343
|
+
'in one sentence each. If my goal is ambiguous about the axis, ask me before continuing.',
|
|
344
|
+
'',
|
|
345
|
+
'═══ PHASE 1 — Source the data and scrub confounds ═══',
|
|
346
|
+
'Decide existing-data vs fresh-generation:',
|
|
347
|
+
' • EXISTING (prefer when suitable transactions already exist): use list_transactions to gather candidate',
|
|
348
|
+
' transactions for each side. Then call assess_comparison_confounds with the comparisonAxis from Phase 0.',
|
|
349
|
+
' Present the validity verdict (clean / caveated / confounded) and every flag. If CONFOUNDED, work with me',
|
|
350
|
+
' to re-select the sides to hold the confounding factor constant — do NOT proceed to a delta on confounded data.',
|
|
351
|
+
' • FRESH (when no clean historical data exists): minimize extraneous noise before generating:',
|
|
352
|
+
' - Device health: get_device_health_summary and list_devices for each candidate device; exclude any with',
|
|
353
|
+
' Offline status or statusAge > 1440 min. If comparing something OTHER than device, ensure both sides use',
|
|
354
|
+
' similar-capability devices (or the same device) and similar configuration (same networkProfile unless',
|
|
355
|
+
' that IS the axis).',
|
|
356
|
+
' - Pin the hardware: a deviceQuery matching multiple OS versions can also match multiple device MODELS,',
|
|
357
|
+
' which confounds the comparison. Constrain each side to a single model (@model=\'<code>\') or one',
|
|
358
|
+
' physical device (@serialNumber=\'<udid>\') so every sample of that side runs on identical hardware.',
|
|
359
|
+
' - NV server: performance transactions record NOTHING unless an NV server in the device\'s region is ONLINE',
|
|
360
|
+
' and tunnel-connected. Call list_nv_servers(region=<device region>) and confirm one is up BEFORE generating.',
|
|
361
|
+
' If none is available, stop and tell me — fresh generation cannot proceed.',
|
|
362
|
+
' - Network profile: default to "Monitor" (pass-through — measures real performance without throttling).',
|
|
363
|
+
' Only use a throttling profile ("3G-average", "wifi", …) if constrained network IS the comparison axis.',
|
|
364
|
+
' - Recent reliability: get_test_stability_report / recent results for the chosen devices to avoid a flaky one.',
|
|
365
|
+
' - Verify the test flow is fully functional on each target platform FIRST (real selectors from a live',
|
|
366
|
+
' inspection — never fabricated). A broken flow produces garbage samples.',
|
|
367
|
+
' - Note honestly that true host/background interference is not directly observable — approximate via idle,',
|
|
368
|
+
' healthy status, and no concurrent reservation; state this limitation in the final report.',
|
|
369
|
+
'',
|
|
370
|
+
'═══ PHASE 2 — Negotiate sample size and build the plan ═══',
|
|
371
|
+
'Recommend a per-side sample size based on transaction length: SHORT transactions (≲5 s) → at least 10 samples',
|
|
372
|
+
'per side; LONG transactions → as few as 5. HARD FLOOR: never fewer than 4 per side — below 4, outlier',
|
|
373
|
+
'detection is skipped entirely and a single bad run silently dominates the aggregate. Ask me to confirm or adjust.',
|
|
374
|
+
'Then assemble a PLAN NARRATIVE containing: the axis, both sides, the controlled factors, the device(s),',
|
|
375
|
+
'the networkProfile (state "Monitor" unless throttling is the axis), the per-side sample size, the TOTAL',
|
|
376
|
+
'number of discrete transactions to run, and an ESTIMATED wall-clock time (≈ transaction duration × total',
|
|
377
|
+
'runs + overhead + ~1 min reporter-write delay per transaction).',
|
|
378
|
+
'',
|
|
379
|
+
'═══ PHASE 3 — MANDATORY CONFIRMATION GATE ═══',
|
|
380
|
+
'Present the full plan narrative and scope. Then STOP and ask: "Run this plan? It will execute N discrete',
|
|
381
|
+
'transactions across both sides, taking roughly T minutes." DO NOT execute anything until I explicitly confirm.',
|
|
382
|
+
'If I want changes, revise and re-confirm. This gate is required — never run the series without my yes.',
|
|
383
|
+
'',
|
|
384
|
+
'═══ PHASE 4 — Execute the series (only after confirmation) ═══',
|
|
385
|
+
'For FRESH generation, per comparison point repeat N times: performance_transaction_control(action:"start",',
|
|
386
|
+
'networkProfile) → run the SAME verified flow with tap/type/launch → performance_transaction_control(action:"end",',
|
|
387
|
+
'transactionName). Wait ~1 minute, then read each record with list_transactions → get_transaction.',
|
|
388
|
+
'After collecting each side, run detect_performance_outliers on Speed Index. If a sample is flagged as a wild',
|
|
389
|
+
'outlier, treat it as a candidate failure: re-run that one sample (excluding the bad result). If the SAME sample',
|
|
390
|
+
'fails/outlies MORE THAN ONCE, STOP and ask me how to proceed (e.g. try a different device or host) — do not',
|
|
391
|
+
'silently keep a bad data point or loop forever.',
|
|
392
|
+
'For EXISTING data, run detect_performance_outliers and decide exclusions with me.',
|
|
393
|
+
'',
|
|
394
|
+
'═══ PHASE 5 — Compare and report ═══',
|
|
395
|
+
'Call compare_performance_transactions with both sides, metrics including speedIndex (add cpuAvg/memAvg if telemetry',
|
|
396
|
+
'is present), comparisonAxis from Phase 0, and excludeOutliers:true. Report, for Speed Index, the TRIMMED MEAN,',
|
|
397
|
+
'MEDIAN, and RAW MEAN per side, the delta and % change, and the per-side sample counts (with any exclusions).',
|
|
398
|
+
'Re-run assess_comparison_confounds on the final sets and include the validity verdict.',
|
|
399
|
+
'Speed Index is a COMPOSITE visual-progress score (area above the render curve), NOT elapsed time — report its',
|
|
400
|
+
'delta in "SI" units and describe it as "more/less complete rendering earlier in the window", NEVER as',
|
|
401
|
+
'"rendered N ms faster". Reserve wall-clock language for the duration metric.',
|
|
402
|
+
'Write a report that: (1) states the delta and whether it is meaningful given the spread (CV) and sample size;',
|
|
403
|
+
'(2) attributes it to the axis ONLY if the confound assessment is clean/caveated, otherwise says it cannot be',
|
|
404
|
+
'attributed; (3) offers a plausible root cause where reasonable (e.g. larger asset in v2, slower GPU on device B,',
|
|
405
|
+
'higher network latency in region Y); (4) lists the limitations (missing telemetry, small N, unobservable host load).',
|
|
406
|
+
'Be honest when a delta is within noise — a "no significant difference" result is a valid, useful outcome.',
|
|
407
|
+
].filter(Boolean).join('\n'),
|
|
408
|
+
},
|
|
409
|
+
}],
|
|
410
|
+
}));
|
|
411
|
+
// ─── Collaborative Test Creation ───────────────────────────────────────────
|
|
412
|
+
server.prompt('collaborative_test_creation', 'Build a mobile test script together with the user: live inspection session with a shareable device view, ' +
|
|
413
|
+
'element discovery, interactive verification of each step, and final script generation with verified selectors.', {
|
|
414
|
+
appName: z.string().optional().describe('App name to search for (e.g. "Sample App"). Used with list_applications.'),
|
|
415
|
+
language: z.string().optional().describe('Target script language: "java", "python", or "nodejs". Default python.'),
|
|
416
|
+
}, ({ appName, language }) => ({
|
|
417
|
+
messages: [{
|
|
418
|
+
role: 'user',
|
|
419
|
+
content: {
|
|
420
|
+
type: 'text',
|
|
421
|
+
text: [
|
|
422
|
+
'I want to create a mobile test script collaboratively. Follow this procedure exactly:',
|
|
423
|
+
'',
|
|
424
|
+
'MODE CHECK — this prompt drives the INTERACTIVE experience (live device, shared view URL, step-by-step ' +
|
|
425
|
+
'collaboration). If my answers below reveal that my intent is actually fully specified (a standardized flow ' +
|
|
426
|
+
'or complete step-level detail) AND you can derive verified selectors (app source code or a quick silent ' +
|
|
427
|
+
'inspection session), offer the faster autonomous path: "I have everything I need — want me to just build ' +
|
|
428
|
+
'this test for you, or continue interactively?"',
|
|
429
|
+
'',
|
|
430
|
+
'FIRST — before any tool calls — explain the plan to me:',
|
|
431
|
+
' "Here\'s how we\'ll build this together:',
|
|
432
|
+
' 1. Find (or upload) the app and an available device near the cloud server',
|
|
433
|
+
' 2. Install the app, then start a live inspection session — I\'ll share a live view URL so you can follow along',
|
|
434
|
+
' 3. Launch the app and capture element selectors from the real UI',
|
|
435
|
+
' 4. Interact with the UI to observe real behavior (success and failure states)',
|
|
436
|
+
' 5. Generate the test script with verified selectors and assertions"',
|
|
437
|
+
'',
|
|
438
|
+
'Then execute:',
|
|
439
|
+
'',
|
|
440
|
+
`1. list_applications${appName ? ` with nameContains="${appName}"` : ''} — check what is in the repository.`,
|
|
441
|
+
' IF NOT FOUND: ask — "That app isn\'t in the Digital.ai repository yet. Do you have a local',
|
|
442
|
+
' binary (APK / IPA / AAB) to upload? If so, share the full path and your OS (Windows, macOS,',
|
|
443
|
+
' or Linux)." Call get_application_upload_command(localFilePath, localPlatform, uniqueName),',
|
|
444
|
+
' share the command, WAIT for upload confirmation, then re-run list_applications.',
|
|
445
|
+
' IF FOUND: surface the version to me — "I found [App Name] build [buildVersion] / release',
|
|
446
|
+
' [releaseVersion] in the repository. Is this the version you want to test, or do you have',
|
|
447
|
+
' a newer build to upload?" WAIT for my answer. If I want to upload a newer build, ask for',
|
|
448
|
+
' the file path and OS, call get_application_upload_command, share the command, WAIT for',
|
|
449
|
+
' confirmation, then re-run list_applications to get the updated appId.',
|
|
450
|
+
' Do NOT proceed past step 1 until I have confirmed which version to use.',
|
|
451
|
+
'2. get_application_info(appId) — note packageName AND mainActivity (needed to launch the app).',
|
|
452
|
+
'3. find_available_device(os="Android") — region preference is automatic; note the device id and region.',
|
|
453
|
+
'4. install_application(applicationId, deviceId) — install BEFORE starting the session; ' +
|
|
454
|
+
'installation fails while the device is reserved by a session.',
|
|
455
|
+
'5. start_inspection_session(device from step 3, region from step 3) — the response includes a viewUrl (published read-only view) and a cloudViewLink (internal Mobile Studio URL). ' +
|
|
456
|
+
'IMMEDIATELY share the viewUrl with me so I can watch the session live. ' +
|
|
457
|
+
'Do NOT share the cloudViewLink — a second connection to the same device session will conflict and error.',
|
|
458
|
+
'6. launch_app(handle, packageName, mainActivity from step 2) — bring the app to the foreground.',
|
|
459
|
+
'7. take_inspection_screenshot — confirm the expected screen is visible.',
|
|
460
|
+
'8. get_element_tree — capture locators for the screen under test.',
|
|
461
|
+
'9. Walk through the test flow with me step by step: type_into_element / tap_element / swipe_screen, ' +
|
|
462
|
+
'screenshotting after each action and narrating what you observe. Verify both the success path ' +
|
|
463
|
+
'and at least one failure path (e.g. wrong credentials) so the script has real assertions.',
|
|
464
|
+
'',
|
|
465
|
+
' STEP CONFIRMATION GATE — mandatory after EVERY completed scenario:',
|
|
466
|
+
' a. Show me a running numbered list of all steps captured so far.',
|
|
467
|
+
' b. Ask: "I\'ve captured [summary of step just done]. Want to add another step — ',
|
|
468
|
+
' for example a success path, a failure path, a different screen, or a different scenario —',
|
|
469
|
+
' or are you ready for me to generate the script?"',
|
|
470
|
+
' c. WAIT for my explicit answer before calling get_test_boilerplate or stop_inspection_session.',
|
|
471
|
+
' d. If my phrasing included "start with", "first", or "begin by" — treat that as a signal',
|
|
472
|
+
' more steps are planned: do NOT finalize after only the first step.',
|
|
473
|
+
' e. Keep the session alive between steps: call take_inspection_screenshot periodically',
|
|
474
|
+
' if I am thinking (resets the idle timeout without moving on).',
|
|
475
|
+
' f. Only when I say "that\'s it" / "generate it" / "done" / "looks good" proceed to step 10.',
|
|
476
|
+
'',
|
|
477
|
+
`10. ONLY after I confirm all steps are captured: get_test_boilerplate(appId, platform="android", language="${language ?? 'python'}", region from step 3) — use as the scaffold.`,
|
|
478
|
+
'11. stop_inspection_session — always, even on error; but only AFTER step 10 completes (or on my explicit stop request).',
|
|
479
|
+
'12. Present the final test file using the locators and behaviors verified in steps 8-9.',
|
|
480
|
+
'',
|
|
481
|
+
'Throughout: narrate each step before you take it, and pause to ask me before changing direction.',
|
|
482
|
+
].join('\n'),
|
|
483
|
+
},
|
|
484
|
+
}],
|
|
485
|
+
}));
|
|
486
|
+
// ─── Collaborative Web Test Creation ───────────────────────────────────────
|
|
487
|
+
server.prompt('collaborative_web_test_creation', 'Build a Selenium web test script together with the user: live browser inspection session with screenshot relay, ' +
|
|
488
|
+
'element discovery (including Shadow DOM / React / Angular / Vue), interactive step verification, and final ' +
|
|
489
|
+
'browser-neutral script generation with verified CSS selectors.', {
|
|
490
|
+
url: z.string().optional().describe('Starting URL, e.g. "https://our-app.com/login". Used in step 1.'),
|
|
491
|
+
language: z.string().optional().describe('Target script language: "java-junit5", "java-testng", "python", or "nodejs". Default python.'),
|
|
492
|
+
}, ({ url, language }) => ({
|
|
493
|
+
messages: [{
|
|
494
|
+
role: 'user',
|
|
495
|
+
content: {
|
|
496
|
+
type: 'text',
|
|
497
|
+
text: [
|
|
498
|
+
'I want to create a Selenium web test script collaboratively. Follow this procedure exactly:',
|
|
499
|
+
'',
|
|
500
|
+
'FIRST — before any tool calls — explain the plan to me:',
|
|
501
|
+
' "Here\'s how we\'ll build this together:',
|
|
502
|
+
' 1. Open a browser on the Digital.ai Selenium Grid (I choose the browser)',
|
|
503
|
+
' 2. Navigate to the target URL and relay screenshots so you can follow along',
|
|
504
|
+
' 3. Discover element selectors from the live rendered DOM (Shadow DOM included)',
|
|
505
|
+
' 4. Walk through the test flow step by step — screenshot after each action',
|
|
506
|
+
' 5. Generate a browser-neutral Selenium script with verified selectors"',
|
|
507
|
+
'',
|
|
508
|
+
'Then execute:',
|
|
509
|
+
'',
|
|
510
|
+
'1. Ask which browser to use for element discovery: call list_available_browsers, then ask:',
|
|
511
|
+
' "Which browser should I open for this session? (The generated test will run on all browsers —',
|
|
512
|
+
' the choice here is just for discovering selectors.)"',
|
|
513
|
+
' WAIT for the user\'s answer before calling start_browser_inspection_session.',
|
|
514
|
+
'',
|
|
515
|
+
`2. start_browser_inspection_session(inspectionBrowser=<user choice>${url ? `, url="${url}"` : ''}) — open the session.`,
|
|
516
|
+
' The response includes a session handle. There is NO live view URL for browser sessions.',
|
|
517
|
+
' IMMEDIATELY call take_inspection_screenshot and show the screenshot to the user so they can',
|
|
518
|
+
' follow along. Say: "Here is what I see — does this look right?"',
|
|
519
|
+
'',
|
|
520
|
+
`3. ${url ? `navigate_to(handle, "${url}")` : 'navigate_to(handle, <URL from user>)'} if not already navigated.`,
|
|
521
|
+
' After navigating: take_inspection_screenshot → show screenshot → wait for confirmation.',
|
|
522
|
+
'',
|
|
523
|
+
'4. get_page_dom(handle) — inspect the available elements.',
|
|
524
|
+
' If hasShadowDom is true: note this to the user — "This page uses Shadow DOM (React/Angular/Vue',
|
|
525
|
+
' components detected). The shadow walker extracted elements from inside the component trees.',
|
|
526
|
+
' I will use the shadowQuery helper in the generated script."',
|
|
527
|
+
'',
|
|
528
|
+
'5. Walk through the test flow step by step:',
|
|
529
|
+
' For each step:',
|
|
530
|
+
' a. Use find_web_elements(handle, "css selector", <selector>) to locate the element.',
|
|
531
|
+
' CSS selector is the preferred strategy: "#id", "[data-testid=\'x\']", "input[name=\'email\']".',
|
|
532
|
+
' b. Perform the interaction: tap_element / type_into_element / clear_element.',
|
|
533
|
+
' c. ALWAYS call take_inspection_screenshot and show the result before moving to the next step.',
|
|
534
|
+
' d. If no element is found: show the screenshot, share the get_page_dom output, and ask the',
|
|
535
|
+
' user for guidance — do NOT guess a different selector.',
|
|
536
|
+
'',
|
|
537
|
+
' SCREENSHOT CHECKPOINTS — mandatory:',
|
|
538
|
+
' • After every navigate_to',
|
|
539
|
+
' • Before any form submission (show field values before sending)',
|
|
540
|
+
' • After every page transition (confirm expected result)',
|
|
541
|
+
' • When find_web_elements returns nothing (ask for guidance)',
|
|
542
|
+
' • When unexpected UI appears (dialog, error, redirect)',
|
|
543
|
+
'',
|
|
544
|
+
' STEP CONFIRMATION GATE — mandatory after each completed scenario:',
|
|
545
|
+
' a. Show a running numbered list of all steps captured so far.',
|
|
546
|
+
' b. Ask: "I\'ve captured [summary]. Want to add another step — for example an error path,',
|
|
547
|
+
' a different screen, or a different scenario — or are you ready to generate the script?"',
|
|
548
|
+
' c. WAIT for an explicit answer before generating the script.',
|
|
549
|
+
' d. If the user said "start with" or "first" — more steps are planned; do not finalize early.',
|
|
550
|
+
'',
|
|
551
|
+
`6. ONLY after the user confirms all steps are captured:`,
|
|
552
|
+
` get_web_test_boilerplate(language="${language ?? 'python'}", confirmSelectorsVerified=true)`,
|
|
553
|
+
' Include only selectors that were verified via find_web_elements or get_page_dom in this session.',
|
|
554
|
+
' NEVER invent or guess a CSS selector — every selector in the final script must have been',
|
|
555
|
+
' confirmed with find_web_elements returning a non-empty result.',
|
|
556
|
+
'',
|
|
557
|
+
'7. stop_browser_inspection_session(handle) — always, even on error; only AFTER step 6 completes.',
|
|
558
|
+
'',
|
|
559
|
+
'8. Present the final test script to the user.',
|
|
560
|
+
' Note: the generated test is browser-neutral — it runs on Chrome, Firefox, Edge, or Safari',
|
|
561
|
+
' by setting the BROWSER environment variable.',
|
|
562
|
+
'',
|
|
563
|
+
'Throughout: narrate each step before you take it. Relay screenshots at every checkpoint.',
|
|
564
|
+
'Pause and ask the user before changing direction. Never proceed silently past a failure.',
|
|
565
|
+
].join('\n'),
|
|
566
|
+
},
|
|
567
|
+
}],
|
|
568
|
+
}));
|
|
569
|
+
}
|
|
570
|
+
//# sourceMappingURL=prompt-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-tools.js","sourceRoot":"","sources":["../../src/tools/prompt-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,UAAU,eAAe,CAAC,MAAiB;IAC/C,8EAA8E;IAE9E,MAAM,CAAC,MAAM,CACX,YAAY,EACZ,0PAA0P,EAC1P;QACE,YAAY,EAAE,CAAC;aACZ,MAAM,EAAE;aACR,QAAQ,CAAC,iIAAiI,CAAC;QAC9I,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CAAC,gHAAgH,CAAC;QAC7H,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kDAAkD,CAAC;QAC/D,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,mEAAmE,CAAC;QAChF,YAAY,EAAE,CAAC;aACZ,MAAM,EAAE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AC,sCAAsC,4BAA4B;wBAChH,4FAA4F;wBAC5F,EAAE;wBACF,2DAA2D;wBAC3D,mGAAmG;wBACnG,gGAAgG;wBAChG,gEAAgE;wBAChE,EAAE;wBACF,6CAA6C;wBAC7C,mBAAmB;wBACnB,wFAAwF;wBACxF,sGAAsG;wBACtG,iFAAiF;wBACjF,kGAAkG;wBAClG,+FAA+F;wBAC/F,8DAA8D;wBAC9D,EAAE;wBACF,wCAAwC;wBACxC,8BAA8B;wBAC9B,oEAAoE;wBACpE,4DAA4D;wBAC5D,gEAAgE;wBAChE,2DAA2D;wBAC3D,EAAE;wBACF,sEAAsE;wBACtE,kEAAkE;wBAClE,6FAA6F;wBAC7F,+FAA+F;wBAC/F,iEAAiE;wBACjE,iGAAiG;wBACjG,EAAE;wBACF,yDAAyD;wBACzD,yCAAyC,QAAQ,IAAI,QAAQ,mCAAmC;wBAChG,qGAAqG;wBACrG,6FAA6F;wBAC7F,mEAAmE;wBACnE,EAAE;wBACF,kGAAkG;wBAClG,EAAE;wBACF,+CAA+C;wBAC/C,8FAA8F;wBAC9F,iDAAiD;wBACjD,EAAE;wBACF,0FAA0F;wBAC1F,0FAA0F;qBAC3F,CAAC,IAAI,CAAC,IAAI,CAAC;iBACb;aACF,CAAC;KACH,CAAC,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provisioning-profile-tools.d.ts","sourceRoot":"","sources":["../../src/tools/provisioning-profile-tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAsBzE,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAqMxE"}
|