@plune-ai/playwright 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -14,6 +14,12 @@ interface PluneReporterOptions {
14
14
  batchSize?: number;
15
15
  /** Where unsent batches are written. Defaults to `.plune/pending-results.jsonl`. */
16
16
  fallbackPath?: string;
17
+ /**
18
+ * The mapfile `plune ids --write` keeps, `{ "<path-title>": "<case id>" }`. Defaults to `PLUNE_IDS_FILE`,
19
+ * then `plune/ids.json` under the directory the run starts in. Missing is fine; a broken one is
20
+ * warned about once and ignored (plune-ai/plune#1291).
21
+ */
22
+ idsFile?: string;
17
23
  }
18
24
  declare class PluneReporter {
19
25
  private readonly options;
@@ -27,6 +33,8 @@ declare class PluneReporter {
27
33
  /** Kept whole: `metadata.ci` is written into it after `onConfigure`, so it is read at the run's opening. */
28
34
  private config;
29
35
  private context;
36
+ /** The mapfile, read on the first result so a run that reports nothing never touches the disk. */
37
+ private ids;
30
38
  constructor(options?: PluneReporterOptions);
31
39
  /** Playwright reads this to pick the v2 calling convention (`onConfigure` + `onBegin(suite)`). */
32
40
  version(): 'v2';
package/dist/index.d.ts CHANGED
@@ -14,6 +14,12 @@ interface PluneReporterOptions {
14
14
  batchSize?: number;
15
15
  /** Where unsent batches are written. Defaults to `.plune/pending-results.jsonl`. */
16
16
  fallbackPath?: string;
17
+ /**
18
+ * The mapfile `plune ids --write` keeps, `{ "<path-title>": "<case id>" }`. Defaults to `PLUNE_IDS_FILE`,
19
+ * then `plune/ids.json` under the directory the run starts in. Missing is fine; a broken one is
20
+ * warned about once and ignored (plune-ai/plune#1291).
21
+ */
22
+ idsFile?: string;
17
23
  }
18
24
  declare class PluneReporter {
19
25
  private readonly options;
@@ -27,6 +33,8 @@ declare class PluneReporter {
27
33
  /** Kept whole: `metadata.ci` is written into it after `onConfigure`, so it is read at the run's opening. */
28
34
  private config;
29
35
  private context;
36
+ /** The mapfile, read on the first result so a run that reports nothing never touches the disk. */
37
+ private ids;
30
38
  constructor(options?: PluneReporterOptions);
31
39
  /** Playwright reads this to pick the v2 calling convention (`onConfigure` + `onBegin(suite)`). */
32
40
  version(): 'v2';