prompttest 1.3.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.
Files changed (45) hide show
  1. package/CONTRIBUTING.md +80 -0
  2. package/LICENSE +36 -0
  3. package/LICENSES.md +81 -0
  4. package/README.md +402 -0
  5. package/SECURITY.md +56 -0
  6. package/dist/bin/prompttest.d.ts +2 -0
  7. package/dist/bin/prompttest.js +1020 -0
  8. package/dist/constants/commands.d.ts +125 -0
  9. package/dist/index.d.ts +140 -0
  10. package/dist/index.js +862 -0
  11. package/dist/lib/adb.d.ts +394 -0
  12. package/dist/lib/ai/heuristic-resolver.d.ts +19 -0
  13. package/dist/lib/ai/index.d.ts +16 -0
  14. package/dist/lib/ai/llm-provider.d.ts +40 -0
  15. package/dist/lib/ai/types.d.ts +64 -0
  16. package/dist/lib/baseline.d.ts +111 -0
  17. package/dist/lib/benchmark.d.ts +100 -0
  18. package/dist/lib/checkpoint.d.ts +61 -0
  19. package/dist/lib/config-loader.d.ts +87 -0
  20. package/dist/lib/config.d.ts +136 -0
  21. package/dist/lib/crawler.d.ts +335 -0
  22. package/dist/lib/data-loader.d.ts +53 -0
  23. package/dist/lib/dfs-engine.d.ts +106 -0
  24. package/dist/lib/dictionary.d.ts +41 -0
  25. package/dist/lib/doctor.d.ts +45 -0
  26. package/dist/lib/driver-interface.d.ts +50 -0
  27. package/dist/lib/enterprise.d.ts +71 -0
  28. package/dist/lib/errors.d.ts +68 -0
  29. package/dist/lib/explorer.d.ts +121 -0
  30. package/dist/lib/form-filler.d.ts +101 -0
  31. package/dist/lib/ios-driver.d.ts +38 -0
  32. package/dist/lib/live-server.d.ts +47 -0
  33. package/dist/lib/lock.d.ts +30 -0
  34. package/dist/lib/logger.d.ts +68 -0
  35. package/dist/lib/memory.d.ts +259 -0
  36. package/dist/lib/patterns.d.ts +202 -0
  37. package/dist/lib/prompt-runner.d.ts +100 -0
  38. package/dist/lib/recorder.d.ts +115 -0
  39. package/dist/lib/repl.d.ts +29 -0
  40. package/dist/lib/reporter.d.ts +253 -0
  41. package/dist/lib/runner-utils.d.ts +290 -0
  42. package/dist/lib/step-handlers.d.ts +388 -0
  43. package/docs/ARCHITECTURE.md +154 -0
  44. package/docs/USER_MANUAL.md +765 -0
  45. package/package.json +90 -0
package/package.json ADDED
@@ -0,0 +1,90 @@
1
+ {
2
+ "name": "prompttest",
3
+ "version": "1.3.0",
4
+ "description": "Ultra-fast, zero-code autonomous mobile testing & visual QA brain for Android",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "bin": {
10
+ "prompttest": "dist/bin/prompttest.js"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "README.md",
15
+ "LICENSE",
16
+ "CONTRIBUTING.md",
17
+ "SECURITY.md",
18
+ "LICENSES.md",
19
+ "docs/USER_MANUAL.md",
20
+ "docs/ARCHITECTURE.md"
21
+ ],
22
+ "engines": {
23
+ "node": ">=18.0.0"
24
+ },
25
+ "scripts": {
26
+ "typecheck": "tsc --noEmit",
27
+ "lint": "eslint .",
28
+ "format": "prettier --write .",
29
+ "format:check": "prettier --check .",
30
+ "test": "vitest run",
31
+ "test:watch": "vitest",
32
+ "test:coverage": "vitest run --coverage",
33
+ "test:live": "npm run build && tsx bin/prompttest.ts run specs/coachconnect_flow.txt",
34
+ "explore": "tsx bin/prompttest.ts explore",
35
+ "explore:safe": "tsx bin/prompttest.ts explore --safety-mode=strict",
36
+ "explore:dev": "tsx bin/prompttest.ts explore --safety-mode=moderate",
37
+ "explore:yollow": "tsx bin/prompttest.ts explore --safety-mode=disabled",
38
+ "run": "tsx bin/prompttest.ts run",
39
+ "watch": "tsx bin/prompttest.ts watch",
40
+ "record": "tsx bin/prompttest.ts record",
41
+ "init-ci": "tsx bin/prompttest.ts init-ci",
42
+ "devices": "tsx bin/prompttest.ts devices",
43
+ "status": "tsx bin/prompttest.ts status",
44
+ "test:teacher": "tsx bin/prompttest.ts run specs/coachconnect_teacher_suite.txt host.exp.exponent",
45
+ "test:student": "tsx bin/prompttest.ts run specs/coachconnect_student.txt host.exp.exponent",
46
+ "audit": "npm audit --audit-level=high",
47
+ "build": "node scripts/build.mjs",
48
+ "prepare": "node -e \"if (fs.existsSync('scripts/build.mjs')) import('./scripts/build.mjs')\"",
49
+ "prepublishOnly": "npm run typecheck && npm run build",
50
+ "pack:check": "npm pack --dry-run",
51
+ "preversion": "npm run typecheck && npm test",
52
+ "postversion": "git push && git push --tags",
53
+ "version:patch": "npm version patch",
54
+ "version:minor": "npm version minor",
55
+ "version:major": "npm version major"
56
+ },
57
+ "keywords": [
58
+ "android",
59
+ "testing",
60
+ "automation",
61
+ "autonomous",
62
+ "qa",
63
+ "adb",
64
+ "crawler",
65
+ "crawler-v3",
66
+ "safety-engine",
67
+ "state-graph",
68
+ "fast",
69
+ "lightweight",
70
+ "plain-english"
71
+ ],
72
+ "dependencies": {
73
+ "chalk": "^5.3.0",
74
+ "pixelmatch": "^7.2.0",
75
+ "pngjs": "^7.0.0"
76
+ },
77
+ "devDependencies": {
78
+ "@types/node": "^22.10.2",
79
+ "@types/pixelmatch": "^5.2.6",
80
+ "@types/pngjs": "^6.0.5",
81
+ "@vitest/coverage-v8": "^5.0.0",
82
+ "esbuild": "^0.28.2",
83
+ "eslint": "^10.10.0",
84
+ "prettier": "^3.9.6",
85
+ "tsx": "^4.19.2",
86
+ "typescript": "^5.7.2",
87
+ "typescript-eslint": "^8.70.0",
88
+ "vitest": "^5.0.0"
89
+ }
90
+ }