@empiricalrun/test-gen 0.42.19 → 0.42.21

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 (50) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/agent/browsing/index.d.ts +1 -1
  3. package/dist/agent/browsing/index.d.ts.map +1 -1
  4. package/dist/agent/browsing/utils.d.ts +1 -1
  5. package/dist/agent/browsing/utils.d.ts.map +1 -1
  6. package/dist/agent/codegen/create-test-block.d.ts +1 -1
  7. package/dist/agent/codegen/create-test-block.d.ts.map +1 -1
  8. package/dist/agent/codegen/fix-ts-errors.d.ts +1 -1
  9. package/dist/agent/codegen/fix-ts-errors.d.ts.map +1 -1
  10. package/dist/agent/codegen/lexical-scoped-vars.d.ts +1 -1
  11. package/dist/agent/codegen/lexical-scoped-vars.d.ts.map +1 -1
  12. package/dist/agent/codegen/repo-edit.d.ts.map +1 -1
  13. package/dist/agent/codegen/run.d.ts +1 -1
  14. package/dist/agent/codegen/run.d.ts.map +1 -1
  15. package/dist/agent/codegen/skills-retriever.d.ts +1 -1
  16. package/dist/agent/codegen/skills-retriever.d.ts.map +1 -1
  17. package/dist/agent/codegen/types.d.ts +1 -1
  18. package/dist/agent/codegen/types.d.ts.map +1 -1
  19. package/dist/agent/codegen/update-flow.d.ts +1 -1
  20. package/dist/agent/codegen/update-flow.d.ts.map +1 -1
  21. package/dist/agent/codegen/utils.d.ts +1 -1
  22. package/dist/agent/codegen/utils.d.ts.map +1 -1
  23. package/dist/agent/infer-agent/index.d.ts +1 -1
  24. package/dist/agent/infer-agent/index.d.ts.map +1 -1
  25. package/dist/agent/infer-agent/index.js +4 -11
  26. package/dist/agent/master/run.d.ts +4 -2
  27. package/dist/agent/master/run.d.ts.map +1 -1
  28. package/dist/agent/master/run.js +17 -1
  29. package/dist/agent/planner/run-time-planner.d.ts.map +1 -1
  30. package/dist/agent/planner/run-time-planner.js +2 -1
  31. package/dist/agent/planner/run.d.ts +2 -3
  32. package/dist/agent/planner/run.d.ts.map +1 -1
  33. package/dist/agent/planner/run.js +6 -15
  34. package/dist/bin/index.js +2 -1
  35. package/dist/bin/utils/fs/index.d.ts +1 -1
  36. package/dist/bin/utils/fs/index.d.ts.map +1 -1
  37. package/dist/bin/utils/index.d.ts +1 -1
  38. package/dist/bin/utils/index.d.ts.map +1 -1
  39. package/dist/bin/utils/platform/web/index.d.ts +1 -1
  40. package/dist/bin/utils/platform/web/index.d.ts.map +1 -1
  41. package/dist/bin/utils/scenarios/index.d.ts +1 -1
  42. package/dist/bin/utils/scenarios/index.d.ts.map +1 -1
  43. package/dist/browser-injected-scripts/annotate-elements.js +34 -3
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +3 -1
  46. package/dist/test-build/index.d.ts +1 -1
  47. package/dist/test-build/index.d.ts.map +1 -1
  48. package/dist/types/index.d.ts +1 -50
  49. package/dist/types/index.d.ts.map +1 -1
  50. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @empiricalrun/test-gen
2
2
 
3
+ ## 0.42.21
4
+
5
+ ### Patch Changes
6
+
7
+ - 7b19602: feat: use overlay text content to improve overlay dismissal accuracy
8
+ - b6d1326: fix: z-index scaling for better overlay dismissals
9
+ - f462463: chore: adopt shared-types package
10
+
11
+ ## 0.42.20
12
+
13
+ ### Patch Changes
14
+
15
+ - 9488f81: fix: infer-agent prompt template
16
+ - b625749: chore: move infer-agent and planner prompts to handlebars
17
+ - 5fb977c: test: clean up some unreliable tests
18
+ - 8914542: feat: run planner inside master agent flow
19
+
3
20
  ## 0.42.19
4
21
 
5
22
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import { LLM, TraceClient } from "@empiricalrun/llm";
2
+ import type { TestGenConfigOptions } from "@empiricalrun/shared-types";
2
3
  import { Page } from "playwright";
3
4
  import { PlaywrightActions } from "../../actions";
4
- import { TestGenConfigOptions } from "../../types";
5
5
  export type BrowsingAgentOptions = Partial<TestGenConfigOptions> & {
6
6
  htmlSanitize?: {
7
7
  disallowedStrings?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/browsing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAKnD,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,GAAG;IACjE,YAAY,CAAC,EAAE;QACb,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC9B,CAAC;CACH,CAAC;AAEF,wBAAsB,6BAA6B,CAAC,EAClD,MAAM,EACN,IAAI,EACJ,OAAO,EACP,GAAG,EACH,OAAO,EACP,KAAK,GACN,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,iBAAiB,CAAC;IAC3B,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,oBAAoB,CAAC;CAC/B,GAAG,OAAO,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAiEhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/browsing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AASlD,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,GAAG;IACjE,YAAY,CAAC,EAAE;QACb,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC9B,CAAC;CACH,CAAC;AAEF,wBAAsB,6BAA6B,CAAC,EAClD,MAAM,EACN,IAAI,EACJ,OAAO,EACP,GAAG,EACH,OAAO,EACP,KAAK,GACN,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,iBAAiB,CAAC;IAC3B,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,oBAAoB,CAAC;CAC/B,GAAG,OAAO,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAiEhC"}
@@ -1,7 +1,7 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
+ import type { TestGenConfig } from "@empiricalrun/shared-types";
2
3
  import { Page } from "playwright";
3
4
  import { PlaywrightTestConfig } from "playwright/test";
4
- import { TestGenConfig } from "../../types";
5
5
  export declare function isRegExp(obj: any): obj is RegExp;
6
6
  export declare function prepareBrowsingAgentTask(steps: string[]): string;
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/agent/browsing/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAiBvD,OAAO,EAAe,aAAa,EAAE,MAAM,aAAa,CAAC;AAMzD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM,CAKhD;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,UAIvD;AA8FD;;;;GAIG;AACH,wBAAsB,yBAAyB,CAC7C,SAAS,EAAE,aAAa,EACxB,KAAK,CAAC,EAAE,WAA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Q,EAAE,MAAM,QAIjD;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAM1E;AAWD;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,oBAAoB,EACtC,gBAAgB,GAAE,MAAM,EAAU,GACjC,OAAO,CAAC,MAAM,CAAC,CA+CjB;AAED,qBAAa,eAAe;IACd,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,MAAM;IACrC,OAAO,CAAC,aAAa,CAAqB;YAE5B,mBAAmB;YAUnB,gBAAgB;IAsBjB,OAAO;IAuBb,SAAS;CAKjB"}
@@ -1,5 +1,5 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
- import { TestCase, TestGenConfigOptions } from "../../types";
2
+ import type { TestCase, TestGenConfigOptions } from "@empiricalrun/shared-types";
3
3
  export declare function createEmptyTestCaseBlock({ testCase, file, options, trace, }: {
4
4
  testCase: TestCase;
5
5
  file: string;
@@ -1 +1 @@
1
- {"version":3,"file":"create-test-block.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/create-test-block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAcvE,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE7D,wBAAsB,wBAAwB,CAAC,EAC7C,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,+BAqDA"}
1
+ {"version":3,"file":"create-test-block.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/create-test-block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EACV,QAAQ,EACR,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAepC,wBAAsB,wBAAwB,CAAC,EAC7C,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,+BAqDA"}
@@ -1,6 +1,6 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
+ import type { TestCase, TestGenConfigOptions } from "@empiricalrun/shared-types";
2
3
  import { CustomLogger } from "../../bin/logger";
3
- import { TestCase, TestGenConfigOptions } from "../../types";
4
4
  export declare function validateAndFixTypescriptErrors({ trace, logger, file, pomCode, nonSpecFileCode, testCase, options, }: {
5
5
  trace?: TraceClient;
6
6
  logger?: CustomLogger;
@@ -1 +1 @@
1
- {"version":3,"file":"fix-ts-errors.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/fix-ts-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAQhD,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE7D,wBAAsB,8BAA8B,CAAC,EACnD,KAAK,EACL,MAA2B,EAC3B,IAAI,EACJ,OAAO,EACP,eAAe,EACf,QAAQ,EACR,OAAO,GACR,EAAE;IACD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,iBA4EA"}
1
+ {"version":3,"file":"fix-ts-errors.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/fix-ts-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EACV,QAAQ,EACR,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAShD,wBAAsB,8BAA8B,CAAC,EACnD,KAAK,EACL,MAA2B,EAC3B,IAAI,EACJ,OAAO,EACP,eAAe,EACf,QAAQ,EACR,OAAO,GACR,EAAE;IACD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,iBA4EA"}
@@ -1,5 +1,5 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
- import { TestGenConfigOptions } from "../../types";
2
+ import type { TestGenConfigOptions } from "@empiricalrun/shared-types";
3
3
  export declare function getLexicalScopedVars({ trace, file, referencePoint, options, }: {
4
4
  trace?: TraceClient;
5
5
  file: string;
@@ -1 +1 @@
1
- {"version":3,"file":"lexical-scoped-vars.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/lexical-scoped-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,WAAW,EAAE,MAAM,mBAAmB,CAAC;AASrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD,wBAAsB,oBAAoB,CAAC,EACzC,KAAK,EACL,IAAI,EACJ,cAAc,EACd,OAAO,GACR,EAAE;IACD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,qBAoDA"}
1
+ {"version":3,"file":"lexical-scoped-vars.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/lexical-scoped-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAUvE,wBAAsB,oBAAoB,CAAC,EACzC,KAAK,EACL,IAAI,EACJ,cAAc,EACd,OAAO,GACR,EAAE;IACD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,qBAoDA"}
@@ -1 +1 @@
1
- {"version":3,"file":"repo-edit.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/repo-edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAGxE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAWhD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAOrC,wBAAsB,0BAA0B,CAAC,EAC/C,IAAI,EACJ,KAAK,EACL,SAAS,EACT,aAAa,EACb,MAAM,GACP,EAAE;IACD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,GAAG,OAAO,CAAC;IACV,MAAM,EAAE,0BAA0B,EAAE,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B,CAAC,CAwJD;AAED,wBAAsB,aAAa,CAAC,EAClC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zB,GAAG,OAAO,CAAC;IACV,MAAM,EAAE,0BAA0B,EAAE,CAAC;IACrC,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B,CAAC,CA0ED"}
@@ -1,4 +1,4 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
- import { TestCase, TestGenConfigOptions } from "../../types";
2
+ import type { TestCase, TestGenConfigOptions } from "@empiricalrun/shared-types";
3
3
  export declare function generateTest(testCase: TestCase, file: string, options: TestGenConfigOptions, trace?: TraceClient): Promise<TestCase[] | void>;
4
4
  //# sourceMappingURL=run.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhE,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAK7D,wBAAsB,YAAY,CAChC,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,oBAAoB,EAC7B,KAAK,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,CAsC5B"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EACV,QAAQ,EACR,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAUpC,wBAAsB,YAAY,CAChC,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,oBAAoB,EAC7B,KAAK,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,CAsC5B"}
@@ -1,5 +1,5 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
- import { TestCase, TestGenConfigOptions } from "../../types";
2
+ import type { TestCase, TestGenConfigOptions } from "@empiricalrun/shared-types";
3
3
  export declare const fetchPomSkills: ({ testCase, pomFiles, options, trace, }: {
4
4
  testCase: TestCase;
5
5
  pomFiles?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"skills-retriever.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/skills-retriever.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgBhE,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAG7D,eAAO,MAAM,cAAc;cAMf,QAAQ;;;;;;;;;;IAyFnB,CAAC;AAEF,wBAAsB,oBAAoB,CAAC,EACzC,QAAQ,EACR,OAAO,EACP,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;;;;;;KA6BA"}
1
+ {"version":3,"file":"skills-retriever.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/skills-retriever.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EACV,QAAQ,EACR,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAkBpC,eAAO,MAAM,cAAc;cAMf,QAAQ;;;;;;;;;;IAyFnB,CAAC;AAEF,wBAAsB,oBAAoB,CAAC,EACzC,QAAQ,EACR,OAAO,EACP,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;;;;;;KA6BA"}
@@ -1,4 +1,4 @@
1
- import { TestCase } from "../../types";
1
+ import type { TestCase } from "@empiricalrun/shared-types";
2
2
  export type CodeUpdate = {
3
3
  filePath: string | undefined;
4
4
  oldCode: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG;IACvC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,oBAAY,kBAAkB;IAC5B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;CAC5B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG;IACvC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,oBAAY,kBAAkB;IAC5B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;CAC5B"}
@@ -1,6 +1,6 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
+ import type { TestCase, TestGenConfigOptions } from "@empiricalrun/shared-types";
2
3
  import { ChatCompletionMessageParam } from "openai/resources/index.mjs";
3
- import { TestCase, TestGenConfigOptions } from "../../types";
4
4
  import { CodeUpdate, UpdatedTestCase } from "./types";
5
5
  export declare function getUpdateTestCodeCompletion({ testCase, testFileContent, testFiles, pageFiles, testFilePath, options, trace, }: {
6
6
  testCase: TestCase;
@@ -1 +1 @@
1
- {"version":3,"file":"update-flow.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/update-flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAYxE,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAQtD,wBAAsB,2BAA2B,CAAC,EAChD,QAAQ,EACR,eAAe,EACf,SAAS,EACT,SAAS,EACT,YAAY,EACZ,OAAO,EACP,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,GAAG,OAAO,CAAC;IACV,MAAM,EAAE,0BAA0B,EAAE,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B,CAAC,CAmDD;AAED,wBAAsB,UAAU,CAC9B,QAAQ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B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAqD7B"}
@@ -1,6 +1,6 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
+ import type { TestCase, TestGenConfigOptions } from "@empiricalrun/shared-types";
2
3
  import { CustomLogger } from "../../bin/logger";
3
- import { TestCase, TestGenConfigOptions } from "../../types";
4
4
  import { CodeUpdate, FileUpdateResponse } from "./types";
5
5
  /**
6
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhD,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,EAAE,CAiB9D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG;IACvD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,EAAE,CA8BF;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,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ACL,QAAQ,EACR,WAAW,EACX,MAAM,GACP,EAAE;IACD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;QAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;QAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;QAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;KAC5B,EAAE,CAAC;IACJ,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC,CAkIxE"}
@@ -1,5 +1,5 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
- import { Agent, TestGenConfigOptions } from "../../types";
2
+ import { Agent, TestGenConfigOptions } from "@empiricalrun/shared-types";
3
3
  export declare function inferAgentBasedTask({ task, options, trace, }: {
4
4
  task: string;
5
5
  options?: TestGenConfigOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/infer-agent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAS3B,OAAO,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAG1D,wBAAsB,mBAAmB,CAAC,EACxC,IAAI,EACJ,OAAO,EACP,KAAK,GACN,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAA;CAAE,CAAC,CA4E/B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/infer-agent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAazE,wBAAsB,mBAAmB,CAAC,EACxC,IAAI,EACJ,OAAO,EACP,KAAK,GACN,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAA;CAAE,CAAC,CAmE/B"}
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.inferAgentBasedTask = void 0;
4
4
  const llm_1 = require("@empiricalrun/llm");
5
5
  const constants_1 = require("../../constants");
6
+ const promptTemplate_0 = "{{#section \"system\"}}\nYou are a software test engineer specializing in Playwright end-to-end tests. You are given a task which is a part of an\nend-to-end test scenario. The task may involve updating an existing end-to-end test case or writing a new test case from\nscratch. Tests involve user interactions (e.g. click on element) or other actions supported by Playwright (e.g.\nintercept network requests)\n\nYour objective is to identify whether the task requires accessing a web browser or not.\n\nTo fulfill your objective, answer the following questions:\n\n1. Does it require you to interact with a UI element in the browser? Examples of interactions are click, fill, type, key\npress, assert visibility of the element. Actions that interact with network requests are not UI element interactions.\n\n2. Is the locator of this UI element given to you in the task? Locators look like `getByText(...)`, `getByTestId(...)`\nand other locator methods in Playwright\n\n3. Decide if you need a browser: if you need to interact with a UI element AND you are NOT given the locator for that\nelement, you WILL NEED a browser.\n\n4. If you NEED a browser, then respond with answer as \"master\", otherwise respond with \"code\"\n\n\n# Example 1\n## Input\nTask:\nin this test don't delete the agent and remove steps after that\n\n## Output\n- ui_interaction_to_be_performed: There is no interaction here\n- ui_element_to_interact_with: No element specified\n- has_locator_for_that_element: No element specified\n- reasoning_for_browser_required: No interaction hence browser is not required\n- answer: code\n\n# Example 2\n## Input\nTask:\nin the swapfast test, replace the selectTokenForSwap method. Instead we will do this\\nclick on token button - this will\nshow a drawer\\nEnter usd in the search field that shows up in the drawer\\nSelect USDC.axl for Cosmos Hub - very\nimportant to choose this instead of USDC.axl on Osmosis\n\n## Output\n- ui_interaction_to_be_performed: Click on token button\n- ui_element_to_interact_with: Token button\n- has_locator_for_that_element: false\n- reasoning_for_browser_required: Task requires interacting with a UI element and identifying its locator which needs a\nbrowser\n- answer: master\n{{/section}}\n\n{{#section \"user\"}}\nTask:\n{{task}}\n{{/section}}";
7
+ const lib_1 = require("../../prompts/lib");
6
8
  const session_1 = require("../../session");
7
9
  const session = (0, session_1.getSessionDetails)();
8
10
  async function inferAgentBasedTask({ task, options, trace, }) {
@@ -20,16 +22,7 @@ async function inferAgentBasedTask({ task, options, trace, }) {
20
22
  options,
21
23
  },
22
24
  });
23
- const promptSpan = inferAgentSpan?.span({
24
- name: "infer-agent-prompt",
25
- input: {
26
- task,
27
- },
28
- });
29
- const prompt = await (0, llm_1.getPrompt)("infer-agent", {
30
- task,
31
- });
32
- promptSpan?.end({ output: { prompt } });
25
+ const messages = (0, lib_1.compilePrompt)(promptTemplate_0, { task });
33
26
  const llm = new llm_1.LLM({
34
27
  trace: inferAgentSpan,
35
28
  provider: options?.modelProvider || constants_1.DEFAULT_MODEL_PROVIDER,
@@ -37,7 +30,7 @@ async function inferAgentBasedTask({ task, options, trace, }) {
37
30
  providerApiKey: constants_1.MODEL_API_KEYS[options?.modelProvider || constants_1.DEFAULT_MODEL_PROVIDER],
38
31
  });
39
32
  const firstShotMessage = await llm.createChatCompletion({
40
- messages: prompt,
33
+ messages,
41
34
  modelParameters: {
42
35
  ...constants_1.DEFAULT_MODEL_PARAMETERS,
43
36
  ...options?.modelParameters,
@@ -1,10 +1,12 @@
1
+ import type { TestCase } from "@empiricalrun/shared-types";
1
2
  import { Page } from "playwright";
2
- import { ScopeVars, TestCase } from "../../types";
3
+ import { ScopeVars } from "../../types";
3
4
  import { BrowsingAgentOptions } from "../browsing";
4
- export declare function createTestUsingMasterAgent({ task, page, testCase, options, scopeVars, }: {
5
+ export declare function createTestUsingMasterAgent({ task, page, testCase, specPath, options, scopeVars, }: {
5
6
  task: string;
6
7
  page: Page;
7
8
  testCase?: TestCase;
9
+ specPath?: string;
8
10
  options: BrowsingAgentOptions;
9
11
  scopeVars?: ScopeVars;
10
12
  }): Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/agent/master/run.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAclC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACL,oBAAoB,EAErB,MAAM,aAAa,CAAC;AA4BrB,wBAAsB,0BAA0B,CAAC,EAC/C,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,GACV,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;;;GAoVA"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/agent/master/run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAclC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,oBAAoB,EAErB,MAAM,aAAa,CAAC;AA6BrB,wBAAsB,0BAA0B,CAAC,EAC/C,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,SAAS,GACV,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;;;GA0WA"}
@@ -13,6 +13,7 @@ const session_1 = require("../../session");
13
13
  const browsing_1 = require("../browsing");
14
14
  const utils_2 = require("../browsing/utils");
15
15
  const skills_retriever_1 = require("../codegen/skills-retriever");
16
+ const run_1 = require("../planner/run");
16
17
  const run_time_planner_1 = require("../planner/run-time-planner");
17
18
  const utils_3 = require("../utils");
18
19
  const action_tool_calls_1 = require("./action-tool-calls");
@@ -29,8 +30,9 @@ function getPageVariables(stateVariables) {
29
30
  }, {});
30
31
  return pages;
31
32
  }
32
- async function createTestUsingMasterAgent({ task, page, testCase, options, scopeVars, }) {
33
+ async function createTestUsingMasterAgent({ task, page, testCase, specPath, options, scopeVars, }) {
33
34
  const useActionSpecificAnnotations = options?.useActionSpecificAnnotations || false;
35
+ const usePlannerInMaster = options?.usePlannerInMaster || false;
34
36
  const logger = new logger_1.CustomLogger({ useReporter: false });
35
37
  const testgenUpdatesReporter = new reporter_1.TestGenUpdatesReporter();
36
38
  const session = (0, session_1.getSessionDetails)();
@@ -74,6 +76,19 @@ async function createTestUsingMasterAgent({ task, page, testCase, options, scope
74
76
  });
75
77
  }
76
78
  skill_1.testCaseSkills.updateSkills(skills);
79
+ if (usePlannerInMaster && testCase && specPath) {
80
+ void testgenUpdatesReporter.sendMessage(`Planner is working on task: ${task}`);
81
+ logger.log(`Planner is working on task: ${task}`);
82
+ const plan = await (0, run_1.planTask)({
83
+ task,
84
+ specPath,
85
+ trace,
86
+ });
87
+ void testgenUpdatesReporter.sendMessage(`Here is the plan:\n${plan}`);
88
+ logger.log(`Here is the plan:\n${plan}`);
89
+ // Will assume this is the task hereon
90
+ task = plan;
91
+ }
77
92
  const actions = new actions_1.PlaywrightActions(testGenPage, scopeVars);
78
93
  await (0, utils_2.injectPwLocatorGenerator)(page);
79
94
  trace?.update({ input: { task } });
@@ -197,6 +212,7 @@ async function createTestUsingMasterAgent({ task, page, testCase, options, scope
197
212
  options,
198
213
  });
199
214
  if (annotationKeys.length > 0) {
215
+ // TODO: this string has newline characters that makes it harder to read
200
216
  const annotationMapString = annotationKeys
201
217
  ?.map((a) => `${a.elementID}: ${a.text}`)
202
218
  .join("\n");
@@ -1 +1 @@
1
- {"version":3,"file":"run-time-planner.d.ts","sourceRoot":"","sources":["../../../src/agent/planner/run-time-planner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,EACnC,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,GACZ,EAAE;IACD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;;;;GAiHA"}
1
+ {"version":3,"file":"run-time-planner.d.ts","sourceRoot":"","sources":["../../../src/agent/planner/run-time-planner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,EACnC,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,GACZ,EAAE;IACD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;;;;GAkHA"}
@@ -40,7 +40,8 @@ To fulfil your goal, follow these steps:
40
40
  {
41
41
  role: "user",
42
42
  content: `
43
- Task: ${task}
43
+ Task:
44
+ ${task}
44
45
 
45
46
  ----
46
47
 
@@ -1,7 +1,6 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
- import { TestCase } from "../../types";
3
- export declare function planTask({ testCase, specPath, trace, }: {
4
- testCase: TestCase;
2
+ export declare function planTask({ task, specPath, trace, }: {
3
+ task: string;
5
4
  specPath: string;
6
5
  trace?: TraceClient;
7
6
  }): Promise<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/agent/planner/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAsBvC,wBAAsB,QAAQ,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,mBA0DA"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/agent/planner/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA6BrD,wBAAsB,QAAQ,CAAC,EAC7B,IAAI,EACJ,QAAQ,EACR,KAAK,GACN,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,mBAyCA"}
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.planTask = void 0;
4
4
  const llm_1 = require("@empiricalrun/llm");
5
5
  const context_1 = require("../../bin/utils/context");
6
+ const lib_1 = require("../../prompts/lib");
7
+ const promptTemplate_0 = "{{#section \"system\"}}\nYou are an expert software engineer in test. You are given a task to provide a high level plan to create a test for a\ngiven scenario.\n\nYou will be provided with already added tests and page object object models which you can use to plan out how to write\nthe test.\n\nThe expected plan should be a list of bullet points and each bullet point is a step in the test.\nYou will be provided with app knowledge as well, which can help you groom the steps in the tests.\n{{/section}}\n\n{{#section \"user\"}}\nApp knowledge\n{{appKnowledge}}\n\n-----\n\nCurrent tests and page object model references\n\n{{fileContext}}\n\n------\n\nTask:\n\n{{task}}\n\n------\n\nFollow the steps to create a test plan:\n- create sub tasks\n- read the task step by step and create sub tasks from the given task\n- Ensure no new steps are added which are not mentioned in the task\n- enriched sub tasks\n- Read the app knowledge provided to you and enrich the verified sub tasks based on the provided information in app\nknowledge.\n- Fill in the missing information in the verified sub tasks based on the app knowledge.\n- based on the type of task, add sub tasks to the verified sub tasks based on the matching criteria\n- final plan:\n- Once all the subtasks are enriched, list all the sub tasks as bullet points\n- Each bullet point should be one of the following actions:\n- Open page, Click on, Fill in, Assert, hover on, press, extract textContent\n- Do not respond with points which do not start with above actions.\n\nFollow the steps before responding\n- The steps should only contain bullet points on list of steps for the test\n- Do not add any other assertion which is not mentioned in the task or app knowledge\n- Respond with <create_sub_tasks></create_sub_tasks>\n<enriched_sub_tasks></enriched_sub_tasks> and <final_plan></final_plan>\n- The final plan should not mention reference to the knowledge base used to generate it\n{{/section}}";
6
8
  function extractTestPlan(input) {
7
9
  const result = {
8
10
  createSubTasks: "",
@@ -20,9 +22,7 @@ function extractTestPlan(input) {
20
22
  }
21
23
  return result;
22
24
  }
23
- async function planTask({ testCase, specPath, trace, }) {
24
- const task = testCase.steps.join("\n");
25
- // TODO: fix this
25
+ async function planTask({ task, specPath, trace, }) {
26
26
  let fileContext = "";
27
27
  try {
28
28
  const { pomPrompt, testFileContent } = await (0, context_1.contextForGeneration)(specPath);
@@ -37,24 +37,15 @@ ${pomPrompt}
37
37
  const plannerSpan = trace?.span({
38
38
  name: "planner",
39
39
  input: {
40
- testCase,
40
+ task,
41
41
  },
42
42
  });
43
43
  const appKnowledge = await (0, context_1.fetchAppKnowledge)();
44
- const promptSpan = plannerSpan?.span({
45
- name: "planner-prompt",
46
- input: {
47
- appKnowledge,
48
- fileContext,
49
- testCase,
50
- },
51
- });
52
- const messages = await (0, llm_1.getPrompt)("planner", {
44
+ const messages = (0, lib_1.compilePrompt)(promptTemplate_0, {
53
45
  appKnowledge,
54
46
  fileContext,
55
47
  task,
56
- }, 2);
57
- promptSpan?.end({ output: { messages } });
48
+ });
58
49
  const llm = new llm_1.LLM({
59
50
  provider: "openai",
60
51
  //TODO: change to o1
package/dist/bin/index.js CHANGED
@@ -102,8 +102,9 @@ async function runAgent(testGenConfig) {
102
102
  testCase.steps = [requestedChangeResp.output];
103
103
  }
104
104
  if (agent === "plan") {
105
+ const task = testCase.steps.join("\n");
105
106
  const plan = await (0, run_3.planTask)({
106
- testCase,
107
+ task,
107
108
  specPath,
108
109
  trace,
109
110
  });
@@ -1,4 +1,4 @@
1
- import { FileContent } from "../../../types";
1
+ import type { FileContent } from "@empiricalrun/shared-types";
2
2
  export declare function readFilesInDirectory(dir: string | undefined, filterFunc: (file: string) => boolean): Promise<FileContent[]>;
3
3
  export declare function convertFileContentsToString(files?: FileContent[]): string;
4
4
  export declare function generatePromptFromDirectory(dir: string | undefined, filterFunc: (file: string) => boolean): Promise<string | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bin/utils/fs/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,wBAAsB,oBAAoB,CACxC,GAAG,oBAAa,EAChB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,0BAgBtC;AAED,wBAAgB,2BAA2B,CAAC,KAAK,GAAE,WAAW,EAAO,UAQpE;AAED,wBAAsB,2BAA2B,CAC/C,GAAG,oBAAK,EACR,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,+BAStC;AAED,wBAAsB,8BAA8B,CAClD,GAAG,oBAAa,EAChB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,+BAgBtC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bin/utils/fs/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAI9D,wBAAsB,oBAAoB,CACxC,GAAG,oBAAa,EAChB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,0BAgBtC;AAED,wBAAgB,2BAA2B,CAAC,KAAK,GAAE,WAAW,EAAO,UAQpE;AAED,wBAAsB,2BAA2B,CAC/C,GAAG,oBAAK,EACR,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,+BAStC;AAED,wBAAsB,8BAA8B,CAClD,GAAG,oBAAa,EAChB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,+BAgBtC"}
@@ -1,4 +1,4 @@
1
- import { TestGenConfig } from "../../types";
1
+ import type { TestGenConfig } from "@empiricalrun/shared-types";
2
2
  export declare function parseCliArgs(testGenToken?: string): Promise<{
3
3
  testGenConfig: TestGenConfig;
4
4
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bin/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,wBAAsB,YAAY,CAChC,YAAY,GAAE,MAA8B;;GAM7C;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bin/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,wBAAsB,YAAY,CAChC,YAAY,GAAE,MAA8B;;GAM7C;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
@@ -1,6 +1,6 @@
1
1
  import { TraceClient } from "@empiricalrun/llm";
2
+ import type { TestCase } from "@empiricalrun/shared-types";
2
3
  import { Node, SourceFile } from "ts-morph";
3
- import { TestCase } from "../../../../types";
4
4
  export declare const getTestModuleAliasFromSourceFile: (sourceFile: SourceFile) => string;
5
5
  /**
6
6
  * function to get the test block and test node for the scenario
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/bin/utils/platform/web/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhD,OAAO,EAGL,IAAI,EAEJ,UAAU,EAEX,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,eAAO,MAAM,gCAAgC,eAC/B,UAAU,KACrB,MAgBF,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,YAAY,EACZ,MAAM,EACN,OAAO,GACR,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG;IACF,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB,CA2CA;AAwBD,wBAAsB,0CAA0C,CAC9D,QAAQ,EAAE,MAAM,oBA+BjB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,IAAI,GAAG,SAAS,GACrB,IAAI,GAAG,SAAS,CA4BlB;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAG5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CAAC,EAClC,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,UAOA;AAED,wBAAgB,+BAA+B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CA4B5E;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAQnD"}
@@ -1,4 +1,4 @@
1
- import { TestGenConfig } from "../../../types";
1
+ import type { TestGenConfig } from "@empiricalrun/shared-types";
2
2
  declare function loadTestConfigs(testGenToken: string): Promise<TestGenConfig>;
3
3
  export { loadTestConfigs };
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bin/utils/scenarios/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EAEd,MAAM,gBAAgB,CAAC;AAexB,iBAAe,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAmB3E;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bin/utils/scenarios/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,aAAa,EAEd,MAAM,4BAA4B,CAAC;AAepC,iBAAe,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAmB3E;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1,4 +1,8 @@
1
1
  /* eslint-disable autofix/no-unused-vars */
2
+
3
+ const MAX_Z_INDEX_FOR_DOM = 10000;
4
+ const Z_INDEX_FOR_MARKERS = 99999;
5
+
2
6
  /**
3
7
  * Annotates all clickable elements on the page with unique hint markers.
4
8
  * Returns an object containing annotations and methods to enable/disable them.
@@ -323,10 +327,9 @@ function annotateElementsWithPreference({
323
327
  border: `1px solid ${baseColor}`,
324
328
  fontSize: "11px",
325
329
  pointerEvents: "none",
326
- zIndex: "10000",
330
+ zIndex: `${Z_INDEX_FOR_MARKERS}`,
327
331
  whiteSpace: "nowrap",
328
332
  overflow: "hidden",
329
- boxShadow: "rgba(0, 0, 0, 0.3) 0px 3px 7px 0px",
330
333
  letterSpacing: 0,
331
334
  minHeight: 0,
332
335
  lineHeight: "100%",
@@ -536,6 +539,7 @@ function annotateElementsWithPreference({
536
539
 
537
540
  // Initialize and enable annotations
538
541
  function enable() {
542
+ scaleAllZIndices(MAX_Z_INDEX_FOR_DOM);
539
543
  clearAnnotations();
540
544
  if (!annotationsContainer) {
541
545
  annotationsContainer = document.createElement("div");
@@ -547,7 +551,7 @@ function annotateElementsWithPreference({
547
551
  width: "100%",
548
552
  height: "100%",
549
553
  pointerEvents: "none",
550
- zIndex: "9999",
554
+ zIndex: `${Z_INDEX_FOR_MARKERS}`,
551
555
  });
552
556
  document.body.appendChild(annotationsContainer);
553
557
  initializeAnnotations(window, null, []);
@@ -569,6 +573,33 @@ function annotateElementsWithPreference({
569
573
  }
570
574
  }
571
575
 
576
+ function scaleAllZIndices(maxValue) {
577
+ const allElements = document.querySelectorAll("*");
578
+ let zIndexes = [];
579
+ allElements.forEach((el) => {
580
+ const z = window.getComputedStyle(el).getPropertyValue("z-index");
581
+ if (z !== "auto" && !isNaN(parseInt(z, 10))) {
582
+ zIndexes.push(parseInt(z, 10));
583
+ }
584
+ });
585
+ if (zIndexes.length === 0) {
586
+ console.log("No elements with a numeric z-index were found.");
587
+ } else {
588
+ const currentMax = Math.max(...zIndexes);
589
+ const scalingFactor = maxValue / currentMax;
590
+ allElements.forEach((el) => {
591
+ const computedZ = window
592
+ .getComputedStyle(el)
593
+ .getPropertyValue("z-index");
594
+ if (computedZ !== "auto" && !isNaN(parseInt(computedZ, 10))) {
595
+ const originalZ = parseInt(computedZ, 10);
596
+ const newZ = Math.floor(originalZ * scalingFactor);
597
+ el.style.zIndex = newZ;
598
+ }
599
+ });
600
+ }
601
+ }
602
+
572
603
  enable();
573
604
 
574
605
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAOlC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAQpC,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,SAAS,iBAsC3E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAOlC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAQpC,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,SAAS,iBAuC3E"}
package/dist/index.js CHANGED
@@ -31,8 +31,10 @@ async function createTest(task, page, scope) {
31
31
  projectRepoName: testGenConfig.options?.metadata.projectRepoName,
32
32
  });
33
33
  const fileService = new client_1.default(Number(port));
34
+ const { testCase, specPath } = testGenConfig;
34
35
  const { code, importPaths } = await (0, run_1.createTestUsingMasterAgent)({
35
- testCase: testGenConfig.testCase,
36
+ testCase,
37
+ specPath,
36
38
  page,
37
39
  task,
38
40
  options: {
@@ -1,4 +1,4 @@
1
- import { Build } from "../types";
1
+ import { Build } from "@empiricalrun/shared-types";
2
2
  /**
3
3
  * method to download the build from the URL provided in the build object
4
4
  * this is only used in cases like chrome extension as of yet.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-build/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAOjC;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAY/D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAUnD;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAY/D"}
@@ -1,55 +1,6 @@
1
- import { LLMModel, LLMProvider, ModelParameters, TraceClient } from "@empiricalrun/llm";
1
+ import { TraceClient } from "@empiricalrun/llm";
2
2
  import OpenAI from "openai";
3
3
  import { TestGenPage } from "../page";
4
- export type FileContent = {
5
- filePath: string;
6
- content: string;
7
- };
8
- export type Environment = {
9
- name: string;
10
- slug: string;
11
- playwrightProjects: string[];
12
- };
13
- export type Agent = "code" | "master" | "auto" | "plan";
14
- export type TestGenConfigOptions = {
15
- agent: Agent;
16
- model: LLMModel;
17
- modelProvider: LLMProvider;
18
- modelParameters?: ModelParameters;
19
- useActionSpecificAnnotations?: boolean;
20
- useStrReplace?: boolean;
21
- metadata: {
22
- testSessionId: number;
23
- generationId: number;
24
- testCaseName: string;
25
- projectRepoName: string;
26
- projectName: string;
27
- environment: "development" | "production";
28
- };
29
- };
30
- export type Build = {
31
- url?: string;
32
- };
33
- export type TestGenConfig = {
34
- specPath: string;
35
- testCase: TestCase;
36
- build?: Build;
37
- environment?: Environment;
38
- testErrorDiagnosis?: TestErrorDiagnosisDetails;
39
- options?: TestGenConfigOptions;
40
- };
41
- export type TestErrorDiagnosisDetails = {
42
- failingLine: string;
43
- failingFile: string;
44
- };
45
- export type TestCase = {
46
- id: number;
47
- name: string;
48
- steps: string[];
49
- filePath: string;
50
- suites: string[];
51
- ai_gist?: string;
52
- };
53
4
  export type PlaywrightActionGenerator = (page: TestGenPage, options: {
54
5
  stateVariables: Record<string, any>;
55
6
  setStateVariables: (stateVariables: Record<string, any>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","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YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,KAChD;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/test-gen",
3
- "version": "0.42.19",
3
+ "version": "0.42.21",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -86,7 +86,8 @@
86
86
  "@types/md5": "^2.3.5",
87
87
  "js-levenshtein": "^1.1.6",
88
88
  "playwright": "1.47.1",
89
- "ts-patch": "^3.3.0"
89
+ "ts-patch": "^3.3.0",
90
+ "@empiricalrun/shared-types": "0.0.1"
90
91
  },
91
92
  "scripts": {
92
93
  "dev": "tspc --build --watch",