@mablhq/playwright-tools 2.135.18 → 2.135.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mablhq/playwright-tools",
3
- "version": "2.135.18",
3
+ "version": "2.135.22",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "The official mabl command line interface tool",
6
6
  "main": "index.js",
@@ -1265,7 +1265,25 @@ class AgenticGenerationRunner {
1265
1265
  }
1266
1266
  return result;
1267
1267
  }
1268
+ userAuthoredObjective() {
1269
+ if (this.config.objectiveIsUserAuthored) {
1270
+ const locked = this.config.testIntent?.trim();
1271
+ if (locked) {
1272
+ return { summary: locked, source: mablApi_1.TestObjectiveSource.User };
1273
+ }
1274
+ }
1275
+ const existing = this.config.existingTest?.objective;
1276
+ if (existing?.source === mablApi_1.TestObjectiveSource.User &&
1277
+ existing.summary?.trim()) {
1278
+ return existing;
1279
+ }
1280
+ return undefined;
1281
+ }
1268
1282
  async resolveTestObjective(summaryStepList, testDescription) {
1283
+ const userAuthored = this.userAuthoredObjective();
1284
+ if (userAuthored) {
1285
+ return userAuthored;
1286
+ }
1269
1287
  try {
1270
1288
  const { summary } = await this.config.apiClient.generateTestSummary(this.config.workspaceId, { fullStepList: summaryStepList, description: testDescription });
1271
1289
  const trimmed = summary?.trim();