@empiricalrun/playwright-utils 0.58.3 → 0.58.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.58.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 4af421a: feat: send test annotations in the test-case run-end event so they reach the run ledger and dashboard
8
+ - @empiricalrun/cua@0.4.1
9
+ - @empiricalrun/llm@0.27.0
10
+ - @empiricalrun/reporter@0.29.1
11
+
3
12
  ## 0.58.3
4
13
 
5
14
  ### Patch Changes
@@ -2493,6 +2493,26 @@ export interface paths {
2493
2493
  patch?: never;
2494
2494
  trace?: never;
2495
2495
  };
2496
+ "/api/chat-sessions/{id}/subscribe": {
2497
+ parameters: {
2498
+ query?: never;
2499
+ header?: never;
2500
+ path?: never;
2501
+ cookie?: never;
2502
+ };
2503
+ get?: never;
2504
+ put?: never;
2505
+ /**
2506
+ * ⚙️ Wake the calling session when this session settles
2507
+ * @description Subscribes the caller's own chat session (from the sandbox-delegation principal) to the target session. When the target ends its turn and waits for input — or is closed — a message is delivered into the caller's session, resuming it. One-shot: consumed when it fires. If the target is already waiting for input, no subscription is created and `already_waiting` is true.
2508
+ */
2509
+ post: operations["subscribeChatSession"];
2510
+ delete?: never;
2511
+ options?: never;
2512
+ head?: never;
2513
+ patch?: never;
2514
+ trace?: never;
2515
+ };
2496
2516
  "/api/chat-sessions/{id}/threads/{thread_id}": {
2497
2517
  parameters: {
2498
2518
  query?: never;
@@ -9015,6 +9035,12 @@ export interface components {
9015
9035
  /** @description Error message, or null on success. */
9016
9036
  error: string | null;
9017
9037
  };
9038
+ SubscribeChatSessionResponse: {
9039
+ data: {
9040
+ already_waiting: boolean;
9041
+ subscription_id?: number;
9042
+ };
9043
+ };
9018
9044
  GithubCommitDiffResponse: {
9019
9045
  /** @description Response payload. */
9020
9046
  data: {
@@ -10215,6 +10241,13 @@ export interface components {
10215
10241
  attachments?: components["schemas"]["RetryAttachment"][];
10216
10242
  /** @description The source line that triggered the failure. */
10217
10243
  failingLine?: string;
10244
+ /** @description Playwright annotations for the attempt (static + runtime). Absent on rows recorded before annotations were captured. */
10245
+ annotations?: {
10246
+ /** @description Annotation type. */
10247
+ type: string;
10248
+ /** @description Annotation description, if any. */
10249
+ description?: string;
10250
+ }[];
10218
10251
  };
10219
10252
  RetryAttachment: {
10220
10253
  /** @description Attachment name. */
@@ -10783,6 +10816,13 @@ export interface components {
10783
10816
  }[];
10784
10817
  /** @description Source line that failed, if known. */
10785
10818
  failingLine?: string;
10819
+ /** @description Playwright annotations for the attempt (static + runtime). Absent on rows recorded before annotations were captured. */
10820
+ annotations?: {
10821
+ /** @description Annotation type. */
10822
+ type: string;
10823
+ /** @description Annotation description, if any. */
10824
+ description?: string;
10825
+ }[];
10786
10826
  };
10787
10827
  TestRunCaseSnoozeInfo: {
10788
10828
  /** @description ID of the matching snooze. */
@@ -19341,6 +19381,64 @@ export interface operations {
19341
19381
  };
19342
19382
  };
19343
19383
  };
19384
+ subscribeChatSession: {
19385
+ parameters: {
19386
+ query?: never;
19387
+ header?: never;
19388
+ path: {
19389
+ id: number;
19390
+ };
19391
+ cookie?: never;
19392
+ };
19393
+ requestBody?: never;
19394
+ responses: {
19395
+ /** @description Subscription outcome. */
19396
+ 200: {
19397
+ headers: {
19398
+ [name: string]: unknown;
19399
+ };
19400
+ content: {
19401
+ "application/json": components["schemas"]["SubscribeChatSessionResponse"];
19402
+ };
19403
+ };
19404
+ /** @description Cannot subscribe a session to itself. */
19405
+ 400: {
19406
+ headers: {
19407
+ [name: string]: unknown;
19408
+ };
19409
+ content: {
19410
+ "application/json": components["schemas"]["ErrorResponse"];
19411
+ };
19412
+ };
19413
+ /** @description Caller is not acting on behalf of a chat session. */
19414
+ 403: {
19415
+ headers: {
19416
+ [name: string]: unknown;
19417
+ };
19418
+ content: {
19419
+ "application/json": components["schemas"]["ErrorResponse"];
19420
+ };
19421
+ };
19422
+ /** @description Chat session not found. */
19423
+ 404: {
19424
+ headers: {
19425
+ [name: string]: unknown;
19426
+ };
19427
+ content: {
19428
+ "application/json": components["schemas"]["ErrorResponse"];
19429
+ };
19430
+ };
19431
+ /** @description Target session is closed. */
19432
+ 409: {
19433
+ headers: {
19434
+ [name: string]: unknown;
19435
+ };
19436
+ content: {
19437
+ "application/json": components["schemas"]["ErrorResponse"];
19438
+ };
19439
+ };
19440
+ };
19441
+ };
19344
19442
  updateChatSessionSlackThreadSync: {
19345
19443
  parameters: {
19346
19444
  query?: never;