@sentry/junior 0.225.0 → 0.226.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 (62) hide show
  1. package/dist/{agent-hooks-CRuRcOg9.js → agent-hooks-FUetyyLe.js} +22 -15
  2. package/dist/{agent-runner-Cad1RtWn.js → agent-runner-DEF7auSj.js} +2946 -247
  3. package/dist/api/schema.d.ts +353 -10
  4. package/dist/api/schema.js +4 -4
  5. package/dist/api.js +22 -18
  6. package/dist/{app-BbSD6EtD.d.ts → app-TVL42pGL.d.ts} +1 -1
  7. package/dist/app.d.ts +1 -1
  8. package/dist/app.js +889 -7675
  9. package/dist/{briefs-BtnkPWT5.js → briefs-Cb4T2BUI.js} +4 -4
  10. package/dist/{catalog-runtime-pv4grNNb.js → catalog-runtime-BYGR3Dr4.js} +1 -1
  11. package/dist/{checkpoint-6fkAdB3g.js → checkpoint-CJe-dZFF.js} +76 -10
  12. package/dist/cli/chat.js +13 -13
  13. package/dist/cli/check.js +3 -3
  14. package/dist/cli/main.js +1 -1
  15. package/dist/cli/plugins.js +3 -3
  16. package/dist/cli/snapshot-create.js +3 -3
  17. package/dist/cli/upgrade.js +3 -3
  18. package/dist/{client-ihmkx60d.js → client-C2WBBx7m.js} +2 -2
  19. package/dist/{config-DMg679BW.js → config-Bws6Rpsh.js} +2 -2
  20. package/dist/{conversation-Bygi39Xj.js → conversation-DPbmIwjy.js} +66 -5
  21. package/dist/{conversation-privacy-ZYy05Y3q.js → conversation-privacy-pCcW0a5Y.js} +1 -1
  22. package/dist/{credential-sync-DCB2SwnQ.js → credential-sync-ibuNsMyl.js} +14 -134
  23. package/dist/{executor-B9R4cHte.js → executor-D36FWjcf.js} +1 -1
  24. package/dist/{history-yaSjGMD_.d.ts → history-DI9KJT3J.d.ts} +38 -1
  25. package/dist/instrumentation.js +2 -2
  26. package/dist/{vercel-queue-DIkVcfK4.js → job-queue-2mFFDMHB.js} +61 -2
  27. package/dist/{logging-CcTvYQ8A.js → logging-CvjMHRvg.js} +1 -1
  28. package/dist/nitro.d.ts +1 -1
  29. package/dist/nitro.js +3 -4
  30. package/dist/{oauth-authorization-BS4vPJmu.js → oauth-authorization-l4O1rXsL.js} +1 -1
  31. package/dist/{oauth-callback-server-DnlQsGBJ.js → oauth-callback-server-Ds8M5FFX.js} +2 -2
  32. package/dist/pending-auth-DLNJbD8H.js +59 -0
  33. package/dist/{profile-CV97YuiL.js → profile-dvV7PB7u.js} +4 -4
  34. package/dist/{prompt-CL8zxsmm.js → prompt-DehgjkO5.js} +1 -1
  35. package/dist/{registry-C8I4IejN.js → registry-C6FHctIu.js} +1 -1
  36. package/dist/{resolve-DXVAzYa3.js → resolve-DqwGI9wq.js} +2 -2
  37. package/dist/{runner-Die1RJ_z.js → runner-CzYEcB73.js} +9 -9
  38. package/dist/{sandbox-egress-signals-BZepyVh1.js → sandbox-egress-signals-BZOv0fns.js} +1 -1
  39. package/dist/{schema-BE4uso4i.js → schema-BZg-xzfG.js} +2 -2
  40. package/dist/{skills-DUcDEgDI.js → skills-EhiVbjF4.js} +2 -2
  41. package/dist/{spawn-o15i3tJu.js → spawn-Ck3L0rEr.js} +2 -2
  42. package/dist/{task-queue-D3PLY59C.js → task-queue-TXhAWQwj.js} +3 -4
  43. package/dist/{task-runner-BMl2aM2v.js → task-runner-axUJS1No.js} +380 -11
  44. package/dist/{thread-state-CAR6gdAm.js → thread-state-CTuWhjru.js} +5 -5
  45. package/dist/{turn-failure-response-CZyoUMkD.js → turn-failure-response-csVoLOzx.js} +8 -9
  46. package/dist/{turn-lifecycle-DPDHKi2U.js → turn-lifecycle-C1S6vELh.js} +1 -1
  47. package/dist/{turn-session-routing-Jkmmxpp-.js → turn-session-routing-5RejBvit.js} +1 -1
  48. package/dist/{validation-BcGGxOa6.js → validation-q2PFxkTQ.js} +1 -1
  49. package/dist/{version-DYcuOFQb.js → version-ByLtIYyy.js} +1 -1
  50. package/dist/version.js +1 -1
  51. package/dist/web-authorization-Biy8nsS7.js +162 -0
  52. package/dist/web-input-DM9LaEdn.js +7774 -0
  53. package/dist/{reporting-window-DbUqng0P.js → web-message-id-xPI_EFSC.js} +11 -1
  54. package/dist/{work-Bm90pR9P.js → work-QrbHdXTc.js} +7 -8
  55. package/dist/{worker-BvHr6JhE.js → worker-r17aopXW.js} +5 -6
  56. package/package.json +4 -4
  57. package/dist/execution-stats-CR9CYpyj.js +0 -373
  58. package/dist/job-queue-D2SiTrnt.js +0 -63
  59. package/dist/short-title-3wYH3ipl.js +0 -71
  60. package/dist/stats-DawHjcTw.js +0 -2758
  61. package/dist/web-authorization-B09B8A8R.js +0 -38
  62. package/dist/web-input-CGE58TpK.js +0 -899
@@ -1,6 +1,16 @@
1
- import { i as messageCardText, n as conversationTurnFailureReasonSchema, r as MessageCard, t as conversationTurnFailureCodeSchema } from "../history-yaSjGMD_.js";
1
+ import { i as messageCardText, n as conversationTurnFailureReasonSchema, r as MessageCard, t as conversationTurnFailureCodeSchema } from "../history-DI9KJT3J.js";
2
2
  import { z } from "zod";
3
3
  import { OwnedObjectAnnotation } from "@sentry/junior-plugin-api";
4
+ //#region src/chat/conversations/web-message-id.d.ts
5
+ /**
6
+ * Build the retry-stable Message id shared by web ingress and browser sends.
7
+ * Keep the existing hash and prefix so retries still address stored Messages.
8
+ */
9
+ export declare function webMessageId(args: {
10
+ conversationId: string;
11
+ idempotencyKey: string;
12
+ }): Promise<string>;
13
+ //#endregion
4
14
  //#region src/chat/automations/card.d.ts
5
15
  /** Saved automation facts shown with a Message, not a live status view. */
6
16
  declare const automationCardSchema: z.ZodObject<{
@@ -455,8 +465,8 @@ export declare const conversationSummaryReportSchema: z.ZodObject<{
455
465
  key: z.ZodString;
456
466
  label: z.ZodString;
457
467
  objectType: z.ZodEnum<{
458
- task: "task";
459
468
  code_change: "code_change";
469
+ task: "task";
460
470
  automation: "automation";
461
471
  item: "item";
462
472
  }>;
@@ -466,6 +476,43 @@ export declare const conversationSummaryReportSchema: z.ZodObject<{
466
476
  status: z.ZodOptional<z.ZodString>;
467
477
  trigger: z.ZodOptional<z.ZodString>;
468
478
  warning: z.ZodOptional<z.ZodString>;
479
+ displayType: z.ZodOptional<z.ZodString>;
480
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
481
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
482
+ type: z.ZodLiteral<"code_change">;
483
+ author: z.ZodOptional<z.ZodString>;
484
+ sourceBranch: z.ZodOptional<z.ZodString>;
485
+ targetBranch: z.ZodOptional<z.ZodString>;
486
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
487
+ review: z.ZodOptional<z.ZodEnum<{
488
+ required: "required";
489
+ approved: "approved";
490
+ changes_requested: "changes_requested";
491
+ }>>;
492
+ checks: z.ZodOptional<z.ZodObject<{
493
+ passed: z.ZodNumber;
494
+ failed: z.ZodNumber;
495
+ pending: z.ZodNumber;
496
+ }, z.core.$strict>>;
497
+ mergeable: z.ZodOptional<z.ZodBoolean>;
498
+ changedFiles: z.ZodOptional<z.ZodNumber>;
499
+ additions: z.ZodOptional<z.ZodNumber>;
500
+ deletions: z.ZodOptional<z.ZodNumber>;
501
+ }, z.core.$strict>, z.ZodObject<{
502
+ type: z.ZodLiteral<"task">;
503
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
504
+ priority: z.ZodOptional<z.ZodString>;
505
+ project: z.ZodOptional<z.ZodString>;
506
+ cycle: z.ZodOptional<z.ZodString>;
507
+ dueDate: z.ZodOptional<z.ZodISODate>;
508
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
509
+ }, z.core.$strict>, z.ZodObject<{
510
+ type: z.ZodLiteral<"deployment">;
511
+ project: z.ZodOptional<z.ZodString>;
512
+ environment: z.ZodOptional<z.ZodString>;
513
+ revision: z.ZodOptional<z.ZodString>;
514
+ branch: z.ZodOptional<z.ZodString>;
515
+ }, z.core.$strict>], "type">>;
469
516
  }, z.core.$strict>], "kind">, z.ZodObject<{
470
517
  plugin: z.ZodString;
471
518
  createdAt: z.ZodString;
@@ -523,8 +570,8 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
523
570
  key: z.ZodString;
524
571
  label: z.ZodString;
525
572
  objectType: z.ZodEnum<{
526
- task: "task";
527
573
  code_change: "code_change";
574
+ task: "task";
528
575
  automation: "automation";
529
576
  item: "item";
530
577
  }>;
@@ -534,6 +581,43 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
534
581
  status: z.ZodOptional<z.ZodString>;
535
582
  trigger: z.ZodOptional<z.ZodString>;
536
583
  warning: z.ZodOptional<z.ZodString>;
584
+ displayType: z.ZodOptional<z.ZodString>;
585
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
586
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
587
+ type: z.ZodLiteral<"code_change">;
588
+ author: z.ZodOptional<z.ZodString>;
589
+ sourceBranch: z.ZodOptional<z.ZodString>;
590
+ targetBranch: z.ZodOptional<z.ZodString>;
591
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
592
+ review: z.ZodOptional<z.ZodEnum<{
593
+ required: "required";
594
+ approved: "approved";
595
+ changes_requested: "changes_requested";
596
+ }>>;
597
+ checks: z.ZodOptional<z.ZodObject<{
598
+ passed: z.ZodNumber;
599
+ failed: z.ZodNumber;
600
+ pending: z.ZodNumber;
601
+ }, z.core.$strict>>;
602
+ mergeable: z.ZodOptional<z.ZodBoolean>;
603
+ changedFiles: z.ZodOptional<z.ZodNumber>;
604
+ additions: z.ZodOptional<z.ZodNumber>;
605
+ deletions: z.ZodOptional<z.ZodNumber>;
606
+ }, z.core.$strict>, z.ZodObject<{
607
+ type: z.ZodLiteral<"task">;
608
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
609
+ priority: z.ZodOptional<z.ZodString>;
610
+ project: z.ZodOptional<z.ZodString>;
611
+ cycle: z.ZodOptional<z.ZodString>;
612
+ dueDate: z.ZodOptional<z.ZodISODate>;
613
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
614
+ }, z.core.$strict>, z.ZodObject<{
615
+ type: z.ZodLiteral<"deployment">;
616
+ project: z.ZodOptional<z.ZodString>;
617
+ environment: z.ZodOptional<z.ZodString>;
618
+ revision: z.ZodOptional<z.ZodString>;
619
+ branch: z.ZodOptional<z.ZodString>;
620
+ }, z.core.$strict>], "type">>;
537
621
  plugin: z.ZodString;
538
622
  }, z.core.$strict>], "kind">>>;
539
623
  text: z.ZodOptional<z.ZodString>;
@@ -766,8 +850,8 @@ export declare const conversationReportEventSchema: z.ZodObject<{
766
850
  key: z.ZodString;
767
851
  label: z.ZodString;
768
852
  objectType: z.ZodEnum<{
769
- task: "task";
770
853
  code_change: "code_change";
854
+ task: "task";
771
855
  automation: "automation";
772
856
  item: "item";
773
857
  }>;
@@ -777,6 +861,43 @@ export declare const conversationReportEventSchema: z.ZodObject<{
777
861
  status: z.ZodOptional<z.ZodString>;
778
862
  trigger: z.ZodOptional<z.ZodString>;
779
863
  warning: z.ZodOptional<z.ZodString>;
864
+ displayType: z.ZodOptional<z.ZodString>;
865
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
866
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
867
+ type: z.ZodLiteral<"code_change">;
868
+ author: z.ZodOptional<z.ZodString>;
869
+ sourceBranch: z.ZodOptional<z.ZodString>;
870
+ targetBranch: z.ZodOptional<z.ZodString>;
871
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
872
+ review: z.ZodOptional<z.ZodEnum<{
873
+ required: "required";
874
+ approved: "approved";
875
+ changes_requested: "changes_requested";
876
+ }>>;
877
+ checks: z.ZodOptional<z.ZodObject<{
878
+ passed: z.ZodNumber;
879
+ failed: z.ZodNumber;
880
+ pending: z.ZodNumber;
881
+ }, z.core.$strict>>;
882
+ mergeable: z.ZodOptional<z.ZodBoolean>;
883
+ changedFiles: z.ZodOptional<z.ZodNumber>;
884
+ additions: z.ZodOptional<z.ZodNumber>;
885
+ deletions: z.ZodOptional<z.ZodNumber>;
886
+ }, z.core.$strict>, z.ZodObject<{
887
+ type: z.ZodLiteral<"task">;
888
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
889
+ priority: z.ZodOptional<z.ZodString>;
890
+ project: z.ZodOptional<z.ZodString>;
891
+ cycle: z.ZodOptional<z.ZodString>;
892
+ dueDate: z.ZodOptional<z.ZodISODate>;
893
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
894
+ }, z.core.$strict>, z.ZodObject<{
895
+ type: z.ZodLiteral<"deployment">;
896
+ project: z.ZodOptional<z.ZodString>;
897
+ environment: z.ZodOptional<z.ZodString>;
898
+ revision: z.ZodOptional<z.ZodString>;
899
+ branch: z.ZodOptional<z.ZodString>;
900
+ }, z.core.$strict>], "type">>;
780
901
  plugin: z.ZodString;
781
902
  }, z.core.$strict>], "kind">>>;
782
903
  text: z.ZodOptional<z.ZodString>;
@@ -1093,8 +1214,8 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
1093
1214
  key: z.ZodString;
1094
1215
  label: z.ZodString;
1095
1216
  objectType: z.ZodEnum<{
1096
- task: "task";
1097
1217
  code_change: "code_change";
1218
+ task: "task";
1098
1219
  automation: "automation";
1099
1220
  item: "item";
1100
1221
  }>;
@@ -1104,6 +1225,43 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
1104
1225
  status: z.ZodOptional<z.ZodString>;
1105
1226
  trigger: z.ZodOptional<z.ZodString>;
1106
1227
  warning: z.ZodOptional<z.ZodString>;
1228
+ displayType: z.ZodOptional<z.ZodString>;
1229
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
1230
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1231
+ type: z.ZodLiteral<"code_change">;
1232
+ author: z.ZodOptional<z.ZodString>;
1233
+ sourceBranch: z.ZodOptional<z.ZodString>;
1234
+ targetBranch: z.ZodOptional<z.ZodString>;
1235
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1236
+ review: z.ZodOptional<z.ZodEnum<{
1237
+ required: "required";
1238
+ approved: "approved";
1239
+ changes_requested: "changes_requested";
1240
+ }>>;
1241
+ checks: z.ZodOptional<z.ZodObject<{
1242
+ passed: z.ZodNumber;
1243
+ failed: z.ZodNumber;
1244
+ pending: z.ZodNumber;
1245
+ }, z.core.$strict>>;
1246
+ mergeable: z.ZodOptional<z.ZodBoolean>;
1247
+ changedFiles: z.ZodOptional<z.ZodNumber>;
1248
+ additions: z.ZodOptional<z.ZodNumber>;
1249
+ deletions: z.ZodOptional<z.ZodNumber>;
1250
+ }, z.core.$strict>, z.ZodObject<{
1251
+ type: z.ZodLiteral<"task">;
1252
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
1253
+ priority: z.ZodOptional<z.ZodString>;
1254
+ project: z.ZodOptional<z.ZodString>;
1255
+ cycle: z.ZodOptional<z.ZodString>;
1256
+ dueDate: z.ZodOptional<z.ZodISODate>;
1257
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1258
+ }, z.core.$strict>, z.ZodObject<{
1259
+ type: z.ZodLiteral<"deployment">;
1260
+ project: z.ZodOptional<z.ZodString>;
1261
+ environment: z.ZodOptional<z.ZodString>;
1262
+ revision: z.ZodOptional<z.ZodString>;
1263
+ branch: z.ZodOptional<z.ZodString>;
1264
+ }, z.core.$strict>], "type">>;
1107
1265
  }, z.core.$strict>], "kind">, z.ZodObject<{
1108
1266
  plugin: z.ZodString;
1109
1267
  createdAt: z.ZodString;
@@ -1257,8 +1415,8 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
1257
1415
  key: z.ZodString;
1258
1416
  label: z.ZodString;
1259
1417
  objectType: z.ZodEnum<{
1260
- task: "task";
1261
1418
  code_change: "code_change";
1419
+ task: "task";
1262
1420
  automation: "automation";
1263
1421
  item: "item";
1264
1422
  }>;
@@ -1268,6 +1426,43 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
1268
1426
  status: z.ZodOptional<z.ZodString>;
1269
1427
  trigger: z.ZodOptional<z.ZodString>;
1270
1428
  warning: z.ZodOptional<z.ZodString>;
1429
+ displayType: z.ZodOptional<z.ZodString>;
1430
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
1431
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1432
+ type: z.ZodLiteral<"code_change">;
1433
+ author: z.ZodOptional<z.ZodString>;
1434
+ sourceBranch: z.ZodOptional<z.ZodString>;
1435
+ targetBranch: z.ZodOptional<z.ZodString>;
1436
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1437
+ review: z.ZodOptional<z.ZodEnum<{
1438
+ required: "required";
1439
+ approved: "approved";
1440
+ changes_requested: "changes_requested";
1441
+ }>>;
1442
+ checks: z.ZodOptional<z.ZodObject<{
1443
+ passed: z.ZodNumber;
1444
+ failed: z.ZodNumber;
1445
+ pending: z.ZodNumber;
1446
+ }, z.core.$strict>>;
1447
+ mergeable: z.ZodOptional<z.ZodBoolean>;
1448
+ changedFiles: z.ZodOptional<z.ZodNumber>;
1449
+ additions: z.ZodOptional<z.ZodNumber>;
1450
+ deletions: z.ZodOptional<z.ZodNumber>;
1451
+ }, z.core.$strict>, z.ZodObject<{
1452
+ type: z.ZodLiteral<"task">;
1453
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
1454
+ priority: z.ZodOptional<z.ZodString>;
1455
+ project: z.ZodOptional<z.ZodString>;
1456
+ cycle: z.ZodOptional<z.ZodString>;
1457
+ dueDate: z.ZodOptional<z.ZodISODate>;
1458
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1459
+ }, z.core.$strict>, z.ZodObject<{
1460
+ type: z.ZodLiteral<"deployment">;
1461
+ project: z.ZodOptional<z.ZodString>;
1462
+ environment: z.ZodOptional<z.ZodString>;
1463
+ revision: z.ZodOptional<z.ZodString>;
1464
+ branch: z.ZodOptional<z.ZodString>;
1465
+ }, z.core.$strict>], "type">>;
1271
1466
  plugin: z.ZodString;
1272
1467
  }, z.core.$strict>], "kind">>>;
1273
1468
  text: z.ZodOptional<z.ZodString>;
@@ -1523,8 +1718,8 @@ export declare const conversationEventPageSchema: z.ZodObject<{
1523
1718
  key: z.ZodString;
1524
1719
  label: z.ZodString;
1525
1720
  objectType: z.ZodEnum<{
1526
- task: "task";
1527
1721
  code_change: "code_change";
1722
+ task: "task";
1528
1723
  automation: "automation";
1529
1724
  item: "item";
1530
1725
  }>;
@@ -1534,6 +1729,43 @@ export declare const conversationEventPageSchema: z.ZodObject<{
1534
1729
  status: z.ZodOptional<z.ZodString>;
1535
1730
  trigger: z.ZodOptional<z.ZodString>;
1536
1731
  warning: z.ZodOptional<z.ZodString>;
1732
+ displayType: z.ZodOptional<z.ZodString>;
1733
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
1734
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1735
+ type: z.ZodLiteral<"code_change">;
1736
+ author: z.ZodOptional<z.ZodString>;
1737
+ sourceBranch: z.ZodOptional<z.ZodString>;
1738
+ targetBranch: z.ZodOptional<z.ZodString>;
1739
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1740
+ review: z.ZodOptional<z.ZodEnum<{
1741
+ required: "required";
1742
+ approved: "approved";
1743
+ changes_requested: "changes_requested";
1744
+ }>>;
1745
+ checks: z.ZodOptional<z.ZodObject<{
1746
+ passed: z.ZodNumber;
1747
+ failed: z.ZodNumber;
1748
+ pending: z.ZodNumber;
1749
+ }, z.core.$strict>>;
1750
+ mergeable: z.ZodOptional<z.ZodBoolean>;
1751
+ changedFiles: z.ZodOptional<z.ZodNumber>;
1752
+ additions: z.ZodOptional<z.ZodNumber>;
1753
+ deletions: z.ZodOptional<z.ZodNumber>;
1754
+ }, z.core.$strict>, z.ZodObject<{
1755
+ type: z.ZodLiteral<"task">;
1756
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
1757
+ priority: z.ZodOptional<z.ZodString>;
1758
+ project: z.ZodOptional<z.ZodString>;
1759
+ cycle: z.ZodOptional<z.ZodString>;
1760
+ dueDate: z.ZodOptional<z.ZodISODate>;
1761
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1762
+ }, z.core.$strict>, z.ZodObject<{
1763
+ type: z.ZodLiteral<"deployment">;
1764
+ project: z.ZodOptional<z.ZodString>;
1765
+ environment: z.ZodOptional<z.ZodString>;
1766
+ revision: z.ZodOptional<z.ZodString>;
1767
+ branch: z.ZodOptional<z.ZodString>;
1768
+ }, z.core.$strict>], "type">>;
1537
1769
  plugin: z.ZodString;
1538
1770
  }, z.core.$strict>], "kind">>>;
1539
1771
  text: z.ZodOptional<z.ZodString>;
@@ -1835,8 +2067,8 @@ export declare const conversationFeedSchema: z.ZodObject<{
1835
2067
  key: z.ZodString;
1836
2068
  label: z.ZodString;
1837
2069
  objectType: z.ZodEnum<{
1838
- task: "task";
1839
2070
  code_change: "code_change";
2071
+ task: "task";
1840
2072
  automation: "automation";
1841
2073
  item: "item";
1842
2074
  }>;
@@ -1846,6 +2078,43 @@ export declare const conversationFeedSchema: z.ZodObject<{
1846
2078
  status: z.ZodOptional<z.ZodString>;
1847
2079
  trigger: z.ZodOptional<z.ZodString>;
1848
2080
  warning: z.ZodOptional<z.ZodString>;
2081
+ displayType: z.ZodOptional<z.ZodString>;
2082
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
2083
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2084
+ type: z.ZodLiteral<"code_change">;
2085
+ author: z.ZodOptional<z.ZodString>;
2086
+ sourceBranch: z.ZodOptional<z.ZodString>;
2087
+ targetBranch: z.ZodOptional<z.ZodString>;
2088
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2089
+ review: z.ZodOptional<z.ZodEnum<{
2090
+ required: "required";
2091
+ approved: "approved";
2092
+ changes_requested: "changes_requested";
2093
+ }>>;
2094
+ checks: z.ZodOptional<z.ZodObject<{
2095
+ passed: z.ZodNumber;
2096
+ failed: z.ZodNumber;
2097
+ pending: z.ZodNumber;
2098
+ }, z.core.$strict>>;
2099
+ mergeable: z.ZodOptional<z.ZodBoolean>;
2100
+ changedFiles: z.ZodOptional<z.ZodNumber>;
2101
+ additions: z.ZodOptional<z.ZodNumber>;
2102
+ deletions: z.ZodOptional<z.ZodNumber>;
2103
+ }, z.core.$strict>, z.ZodObject<{
2104
+ type: z.ZodLiteral<"task">;
2105
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
2106
+ priority: z.ZodOptional<z.ZodString>;
2107
+ project: z.ZodOptional<z.ZodString>;
2108
+ cycle: z.ZodOptional<z.ZodString>;
2109
+ dueDate: z.ZodOptional<z.ZodISODate>;
2110
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2111
+ }, z.core.$strict>, z.ZodObject<{
2112
+ type: z.ZodLiteral<"deployment">;
2113
+ project: z.ZodOptional<z.ZodString>;
2114
+ environment: z.ZodOptional<z.ZodString>;
2115
+ revision: z.ZodOptional<z.ZodString>;
2116
+ branch: z.ZodOptional<z.ZodString>;
2117
+ }, z.core.$strict>], "type">>;
1849
2118
  }, z.core.$strict>], "kind">, z.ZodObject<{
1850
2119
  plugin: z.ZodString;
1851
2120
  createdAt: z.ZodString;
@@ -2353,8 +2622,8 @@ export declare const actorProfileReportSchema: z.ZodObject<{
2353
2622
  key: z.ZodString;
2354
2623
  label: z.ZodString;
2355
2624
  objectType: z.ZodEnum<{
2356
- task: "task";
2357
2625
  code_change: "code_change";
2626
+ task: "task";
2358
2627
  automation: "automation";
2359
2628
  item: "item";
2360
2629
  }>;
@@ -2364,6 +2633,43 @@ export declare const actorProfileReportSchema: z.ZodObject<{
2364
2633
  status: z.ZodOptional<z.ZodString>;
2365
2634
  trigger: z.ZodOptional<z.ZodString>;
2366
2635
  warning: z.ZodOptional<z.ZodString>;
2636
+ displayType: z.ZodOptional<z.ZodString>;
2637
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
2638
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2639
+ type: z.ZodLiteral<"code_change">;
2640
+ author: z.ZodOptional<z.ZodString>;
2641
+ sourceBranch: z.ZodOptional<z.ZodString>;
2642
+ targetBranch: z.ZodOptional<z.ZodString>;
2643
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2644
+ review: z.ZodOptional<z.ZodEnum<{
2645
+ required: "required";
2646
+ approved: "approved";
2647
+ changes_requested: "changes_requested";
2648
+ }>>;
2649
+ checks: z.ZodOptional<z.ZodObject<{
2650
+ passed: z.ZodNumber;
2651
+ failed: z.ZodNumber;
2652
+ pending: z.ZodNumber;
2653
+ }, z.core.$strict>>;
2654
+ mergeable: z.ZodOptional<z.ZodBoolean>;
2655
+ changedFiles: z.ZodOptional<z.ZodNumber>;
2656
+ additions: z.ZodOptional<z.ZodNumber>;
2657
+ deletions: z.ZodOptional<z.ZodNumber>;
2658
+ }, z.core.$strict>, z.ZodObject<{
2659
+ type: z.ZodLiteral<"task">;
2660
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
2661
+ priority: z.ZodOptional<z.ZodString>;
2662
+ project: z.ZodOptional<z.ZodString>;
2663
+ cycle: z.ZodOptional<z.ZodString>;
2664
+ dueDate: z.ZodOptional<z.ZodISODate>;
2665
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2666
+ }, z.core.$strict>, z.ZodObject<{
2667
+ type: z.ZodLiteral<"deployment">;
2668
+ project: z.ZodOptional<z.ZodString>;
2669
+ environment: z.ZodOptional<z.ZodString>;
2670
+ revision: z.ZodOptional<z.ZodString>;
2671
+ branch: z.ZodOptional<z.ZodString>;
2672
+ }, z.core.$strict>], "type">>;
2367
2673
  }, z.core.$strict>], "kind">, z.ZodObject<{
2368
2674
  plugin: z.ZodString;
2369
2675
  createdAt: z.ZodString;
@@ -2686,8 +2992,8 @@ export declare const locationDetailReportSchema: z.ZodObject<{
2686
2992
  key: z.ZodString;
2687
2993
  label: z.ZodString;
2688
2994
  objectType: z.ZodEnum<{
2689
- task: "task";
2690
2995
  code_change: "code_change";
2996
+ task: "task";
2691
2997
  automation: "automation";
2692
2998
  item: "item";
2693
2999
  }>;
@@ -2697,6 +3003,43 @@ export declare const locationDetailReportSchema: z.ZodObject<{
2697
3003
  status: z.ZodOptional<z.ZodString>;
2698
3004
  trigger: z.ZodOptional<z.ZodString>;
2699
3005
  warning: z.ZodOptional<z.ZodString>;
3006
+ displayType: z.ZodOptional<z.ZodString>;
3007
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
3008
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3009
+ type: z.ZodLiteral<"code_change">;
3010
+ author: z.ZodOptional<z.ZodString>;
3011
+ sourceBranch: z.ZodOptional<z.ZodString>;
3012
+ targetBranch: z.ZodOptional<z.ZodString>;
3013
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3014
+ review: z.ZodOptional<z.ZodEnum<{
3015
+ required: "required";
3016
+ approved: "approved";
3017
+ changes_requested: "changes_requested";
3018
+ }>>;
3019
+ checks: z.ZodOptional<z.ZodObject<{
3020
+ passed: z.ZodNumber;
3021
+ failed: z.ZodNumber;
3022
+ pending: z.ZodNumber;
3023
+ }, z.core.$strict>>;
3024
+ mergeable: z.ZodOptional<z.ZodBoolean>;
3025
+ changedFiles: z.ZodOptional<z.ZodNumber>;
3026
+ additions: z.ZodOptional<z.ZodNumber>;
3027
+ deletions: z.ZodOptional<z.ZodNumber>;
3028
+ }, z.core.$strict>, z.ZodObject<{
3029
+ type: z.ZodLiteral<"task">;
3030
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
3031
+ priority: z.ZodOptional<z.ZodString>;
3032
+ project: z.ZodOptional<z.ZodString>;
3033
+ cycle: z.ZodOptional<z.ZodString>;
3034
+ dueDate: z.ZodOptional<z.ZodISODate>;
3035
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
3036
+ }, z.core.$strict>, z.ZodObject<{
3037
+ type: z.ZodLiteral<"deployment">;
3038
+ project: z.ZodOptional<z.ZodString>;
3039
+ environment: z.ZodOptional<z.ZodString>;
3040
+ revision: z.ZodOptional<z.ZodString>;
3041
+ branch: z.ZodOptional<z.ZodString>;
3042
+ }, z.core.$strict>], "type">>;
2700
3043
  }, z.core.$strict>], "kind">, z.ZodObject<{
2701
3044
  plugin: z.ZodString;
2702
3045
  createdAt: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { C as conversationReportEventSchema, D as createConversationBodySchema, E as conversationSummaryReportSchema, H as conversationTurnFailureCodeSchema, M as messageCardText, O as createConversationMessageBodySchema, S as conversationReportEventDataSchema, T as conversationStatsReportSchema, U as conversationTurnFailureReasonSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema } from "../conversation-Bygi39Xj.js";
2
- import { S as skillReportsSchema, _ as pluginPackageContentReportSchema, b as runtimeInfoReportSchema, g as pluginPackageContentItemReportSchema, h as pluginOperationalReportSchema, m as pluginOperationalReportFeedSchema, p as healthReportSchema, v as pluginSchema, x as skillReportSchema, y as pluginsSchema } from "../reporting-window-DbUqng0P.js";
3
- import { A as actorProfileReportSchema, B as dailyConversationActivitySchema, C as createPersonalTokenBodySchema, D as personalTokenParamsSchema, E as personalTokenMetadataSchema, F as locationDirectoryReportSchema, G as codePersonReportSchema, H as codeChangeSummaryReportSchema, I as locationParamsSchema, K as codeRepositorySummarySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as revokePersonalTokenResponseSchema, P as locationDetailReportSchema, S as scheduledAutomationSummarySchema, T as personalTokenListSchema, U as codeChangeSummarySchema, V as codeActivityDaySchema, W as codeOverviewReportSchema, _ as automationRunListSchema, a as workspaceBodySchema, b as automationSummarySchema, c as workspaceRepoSchema, d as automationExecutionSchema, f as automationExecutionStatusDaySchema, g as automationParamsSchema, h as automationListSchema, i as deleteWorkspaceResponseSchema, j as personParamsSchema, k as actorDirectoryReportSchema, l as workspaceSchema, m as automationListQuerySchema, n as statsReportSchema, o as workspaceListSchema, p as automationExecutionStatusSchema, q as apiErrorSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as automationExecutionListSchema, v as automationRunSchema, w as createdPersonalTokenSchema, x as eventAutomationSummarySchema, y as automationRunWindowsSchema } from "../schema-BE4uso4i.js";
4
- export { acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationSummarySchema, baselineSnapshotSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositorySummarySchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, eventAutomationSummarySchema, healthReportSchema, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, skillReportSchema, skillReportsSchema, statSchema, statsReportSchema, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
1
+ import { C as conversationReportEventSchema, D as createConversationBodySchema, E as conversationSummaryReportSchema, H as conversationTurnFailureCodeSchema, M as messageCardText, O as createConversationMessageBodySchema, S as conversationReportEventDataSchema, T as conversationStatsReportSchema, U as conversationTurnFailureReasonSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema } from "../conversation-DPbmIwjy.js";
2
+ import { C as skillReportsSchema, S as skillReportSchema, _ as pluginPackageContentItemReportSchema, b as pluginsSchema, g as pluginOperationalReportSchema, h as pluginOperationalReportFeedSchema, m as healthReportSchema, t as webMessageId, v as pluginPackageContentReportSchema, x as runtimeInfoReportSchema, y as pluginSchema } from "../web-message-id-xPI_EFSC.js";
3
+ import { A as actorProfileReportSchema, B as dailyConversationActivitySchema, C as createPersonalTokenBodySchema, D as personalTokenParamsSchema, E as personalTokenMetadataSchema, F as locationDirectoryReportSchema, G as codePersonReportSchema, H as codeChangeSummaryReportSchema, I as locationParamsSchema, K as codeRepositorySummarySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as revokePersonalTokenResponseSchema, P as locationDetailReportSchema, S as scheduledAutomationSummarySchema, T as personalTokenListSchema, U as codeChangeSummarySchema, V as codeActivityDaySchema, W as codeOverviewReportSchema, _ as automationRunListSchema, a as workspaceBodySchema, b as automationSummarySchema, c as workspaceRepoSchema, d as automationExecutionSchema, f as automationExecutionStatusDaySchema, g as automationParamsSchema, h as automationListSchema, i as deleteWorkspaceResponseSchema, j as personParamsSchema, k as actorDirectoryReportSchema, l as workspaceSchema, m as automationListQuerySchema, n as statsReportSchema, o as workspaceListSchema, p as automationExecutionStatusSchema, q as apiErrorSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as automationExecutionListSchema, v as automationRunSchema, w as createdPersonalTokenSchema, x as eventAutomationSummarySchema, y as automationRunWindowsSchema } from "../schema-BZg-xzfG.js";
4
+ export { acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationSummarySchema, baselineSnapshotSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositorySummarySchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, eventAutomationSummarySchema, healthReportSchema, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, skillReportSchema, skillReportsSchema, statSchema, statsReportSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
package/dist/api.js CHANGED
@@ -1,18 +1,18 @@
1
- import { d as logException, p as logWarn } from "./logging-CcTvYQ8A.js";
1
+ import { Ft as getConversation, P as parseSlackThreadId, Tt as cancelHumanFacingPendingMessages, b as readStats, j as readLiveAttachment } from "./agent-runner-DEF7auSj.js";
2
+ import { d as logException, p as logWarn } from "./logging-CvjMHRvg.js";
2
3
  import { _ as parseSlackMessageTs, h as parseSlackTeamId, p as parseSlackChannelId } from "./context-Bplcgypl.js";
3
- import { $ as resolveViewerUser, $t as locationFromRow, Ct as conversationArchivedForEmail, D as SANDBOX_RUNTIME, Dt as conversationNotArchivedForEmail, Et as conversationHasParticipantUser, J as withSlackRetries, Jt as getSqlExecutor, Kt as getConversationStore, Lt as listConversationAnnotations, Mt as readConversationEventPage, Nt as buildSentryConversationUrl, Ot as conversationNotArchivedForUser, Rt as listConversationAnnotationsById, S as WorkspaceValidationError, St as conversationArchiveTimes, Tt as conversationHasParticipantEmail, U as getSlackClient, Z as findUserByEmail, _ as deleteWorkspace, an as agentTurnUsageSchema, b as listWorkspaces, bt as createPluginLogger, et as updateViewerDisplayName, g as createWorkspace, j as workspaceRepoCheckoutPath, jt as readLatestConversationBrief, kt as viewerConversationMembership, on as hasAgentTurnUsage, qt as getDb, sn as resolveRootConversationId, tn as parseSessionSource, u as getPlugins, v as getWorkspace, wt as conversationArchivedForUser, x as updateWorkspace, xt as readConversationAccessFromSql } from "./agent-hooks-CRuRcOg9.js";
4
+ import { $ as resolveViewerUser, Ct as conversationArchivedForEmail, D as SANDBOX_RUNTIME, Dt as conversationNotArchivedForEmail, Et as conversationHasParticipantUser, J as withSlackRetries, Jt as getSqlExecutor, Kt as getConversationStore, Lt as listConversationAnnotations, Mt as readConversationEventPage, Nt as buildSentryConversationUrl, Ot as conversationNotArchivedForUser, Qt as locationFromRow, Rt as listConversationAnnotationsById, S as WorkspaceValidationError, St as conversationArchiveTimes, Tt as conversationHasParticipantEmail, U as getSlackClient, Z as findUserByEmail, _ as deleteWorkspace, an as hasAgentTurnUsage, b as listWorkspaces, bt as createPluginLogger, en as parseSessionSource, et as updateViewerDisplayName, g as createWorkspace, in as agentTurnUsageSchema, j as workspaceRepoCheckoutPath, jt as readLatestConversationBrief, kt as viewerConversationMembership, on as resolveRootConversationId, qt as getDb, u as getPlugins, v as getWorkspace, wt as conversationArchivedForUser, x as updateWorkspace, xt as readConversationAccessFromSql } from "./agent-hooks-FUetyyLe.js";
4
5
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
5
- import { C as juniorCodeRepositories, D as juniorIdentities, E as juniorConversations, O as juniorUsers, S as juniorCodeChanges, T as conversationReadColumns, b as juniorApiTokens, g as juniorConversationBriefs, m as juniorConversationParticipants, v as juniorConversationMetrics, y as juniorConversationEvents } from "./executor-B9R4cHte.js";
6
- import { D as createConversationBodySchema, O as createConversationMessageBodySchema, T as conversationStatsReportSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-Bygi39Xj.js";
7
- import { n as hash, t as create } from "./profile-CV97YuiL.js";
8
- import { Tt as getConversation, c as parseSlackThreadId, ht as cancelHumanFacingPendingMessages, i as readLiveAttachment, n as readStats } from "./stats-DawHjcTw.js";
9
- import { t as getCachedSnapshot } from "./resolve-DXVAzYa3.js";
10
- import { t as getVercelConversationWorkQueue } from "./vercel-queue-DIkVcfK4.js";
11
- import { S as skillReportsSchema, a as fillUtcSixHours, b as runtimeInfoReportSchema, c as trailingUtcDayWindow, d as utcDayKey, f as utcHourKey, i as fillUtcHours, l as trailingUtcHourWindow, m as pluginOperationalReportFeedSchema, n as HOUR_MS$1, o as startOfUtcHour, p as healthReportSchema, r as fillUtcDays, s as sumUtcHoursIntoSixHours, t as DAY_MS$1, u as trailingUtcSixHourWindow, y as pluginsSchema } from "./reporting-window-DbUqng0P.js";
12
- import { C as readHealthReport, a as webActorFromEmail, b as legacyWebMailboxMetadataSchema, c as formatSlackConversationRedactedLabel, d as resolveSlackConversationContextFromThreadId, f as ViewerTaskNotFoundError, g as readViewerAutomationRuns, h as readViewerAutomationExecutions, m as readConversationSourceTask, p as deleteViewerTask, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage, v as readViewerAutomations, x as createVercelAttachmentStorage, y as lookupSlackUser } from "./web-input-CGE58TpK.js";
13
- import { d as conversationActiveDaysColumn, f as conversationAggregateColumns, p as conversationRangeColumns } from "./execution-stats-CR9CYpyj.js";
14
- import { r as getWebAuthorization } from "./web-authorization-B09B8A8R.js";
15
- import { A as actorProfileReportSchema, C as createPersonalTokenBodySchema, D as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as codePersonReportSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as revokePersonalTokenResponseSchema, P as locationDetailReportSchema, R as activityHours$1, T as personalTokenListSchema, W as codeOverviewReportSchema, _ as automationRunListSchema, a as workspaceBodySchema, g as automationParamsSchema, h as automationListSchema, i as deleteWorkspaceResponseSchema, j as personParamsSchema, k as actorDirectoryReportSchema, l as workspaceSchema, m as automationListQuerySchema, n as statsReportSchema, o as workspaceListSchema, q as apiErrorSchema, s as workspaceParamsSchema, u as automationExecutionListSchema, w as createdPersonalTokenSchema, z as activitySixHours$1 } from "./schema-BE4uso4i.js";
6
+ import { C as juniorCodeRepositories, D as juniorIdentities, E as juniorConversations, O as juniorUsers, S as juniorCodeChanges, T as conversationReadColumns, b as juniorApiTokens, g as juniorConversationBriefs, m as juniorConversationParticipants, v as juniorConversationMetrics, y as juniorConversationEvents } from "./executor-D36FWjcf.js";
7
+ import { D as createConversationBodySchema, O as createConversationMessageBodySchema, T as conversationStatsReportSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-DPbmIwjy.js";
8
+ import { n as hash, t as create } from "./profile-dvV7PB7u.js";
9
+ import { t as getCachedSnapshot } from "./resolve-DqwGI9wq.js";
10
+ import { a as getVercelConversationWorkQueue } from "./job-queue-2mFFDMHB.js";
11
+ import { C as skillReportsSchema, a as fillUtcHours, b as pluginsSchema, c as sumUtcHoursIntoSixHours, d as trailingUtcSixHourWindow, f as utcDayKey, h as pluginOperationalReportFeedSchema, i as fillUtcDays, l as trailingUtcDayWindow, m as healthReportSchema, n as DAY_MS$1, o as fillUtcSixHours, p as utcHourKey, r as HOUR_MS$1, s as startOfUtcHour, u as trailingUtcHourWindow, x as runtimeInfoReportSchema } from "./web-message-id-xPI_EFSC.js";
12
+ import { F as createVercelAttachmentStorage, _ as readViewerAutomations, a as webActorFromEmail, b as clearSlackPendingReactions, c as getProductionSlackAdapter, d as ViewerTaskNotFoundError, f as deleteViewerTask, h as readViewerAutomationRuns, k as legacyWebMailboxMetadataSchema, l as formatSlackConversationRedactedLabel, m as readViewerAutomationExecutions, p as readConversationSourceTask, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage, u as resolveSlackConversationContextFromThreadId, x as lookupSlackUser, z as readHealthReport } from "./web-input-DM9LaEdn.js";
13
+ import { A as conversationAggregateColumns, j as conversationRangeColumns, k as conversationActiveDaysColumn } from "./task-runner-axUJS1No.js";
14
+ import { r as getWebAuthorization } from "./web-authorization-Biy8nsS7.js";
15
+ import { A as actorProfileReportSchema, C as createPersonalTokenBodySchema, D as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as codePersonReportSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as revokePersonalTokenResponseSchema, P as locationDetailReportSchema, R as activityHours$1, T as personalTokenListSchema, W as codeOverviewReportSchema, _ as automationRunListSchema, a as workspaceBodySchema, g as automationParamsSchema, h as automationListSchema, i as deleteWorkspaceResponseSchema, j as personParamsSchema, k as actorDirectoryReportSchema, l as workspaceSchema, m as automationListQuerySchema, n as statsReportSchema, o as workspaceListSchema, q as apiErrorSchema, s as workspaceParamsSchema, u as automationExecutionListSchema, w as createdPersonalTokenSchema, z as activitySixHours$1 } from "./schema-BZg-xzfG.js";
16
16
  import { Hono } from "hono";
17
17
  import path from "node:path";
18
18
  import { z } from "zod";
@@ -1280,6 +1280,10 @@ async function cancelConversationPendingMessagesForViewer(viewer, conversationId
1280
1280
  ...body.receivedBefore ? { receivedBeforeMs: Date.parse(body.receivedBefore) } : void 0,
1281
1281
  conversationStore: getConversationStore()
1282
1282
  });
1283
+ await clearSlackPendingReactions({
1284
+ getSlackAdapter: getProductionSlackAdapter,
1285
+ messages: result.cancelledMessages
1286
+ });
1283
1287
  return {
1284
1288
  cancelledCount: result.cancelledInboundMessageIds.length,
1285
1289
  cancelledInboundMessageIds: result.cancelledInboundMessageIds,
@@ -3017,7 +3021,7 @@ async function readPeoplePluginReports(args) {
3017
3021
  reports: [],
3018
3022
  source: "plugins"
3019
3023
  });
3020
- const { getPluginProfileReports } = await import("./agent-hooks-CRuRcOg9.js").then((n) => n.t);
3024
+ const { getPluginProfileReports } = await import("./agent-hooks-FUetyyLe.js").then((n) => n.t);
3021
3025
  return pluginOperationalReportFeedSchema.parse({
3022
3026
  generatedAt: new Date(nowMs).toISOString(),
3023
3027
  reports: await getPluginProfileReports({
@@ -3626,7 +3630,7 @@ function readDescriptionText(home) {
3626
3630
  }
3627
3631
  /** Read discovered skill names for authenticated runtime diagnostics. */
3628
3632
  async function readSkillReports() {
3629
- const { discoverSkills } = await import("./skills-DUcDEgDI.js").then((n) => n.o);
3633
+ const { discoverSkills } = await import("./skills-EhiVbjF4.js").then((n) => n.o);
3630
3634
  const skills = await discoverSkills();
3631
3635
  return skillReportsSchema.parse(skills.map((skill) => ({
3632
3636
  name: skill.name,
@@ -3635,7 +3639,7 @@ async function readSkillReports() {
3635
3639
  }
3636
3640
  /** Read safe configured plugin metadata for authenticated runtime diagnostics. */
3637
3641
  async function readPlugins() {
3638
- const { pluginCatalogRuntime } = await import("./catalog-runtime-pv4grNNb.js").then((n) => n.t);
3642
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-BYGR3Dr4.js").then((n) => n.t);
3639
3643
  return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
3640
3644
  configKeys: plugin.manifest.configKeys ?? [],
3641
3645
  description: plugin.manifest.description,
@@ -3647,7 +3651,7 @@ async function readPlugins() {
3647
3651
  async function readRuntimeInfoReport() {
3648
3652
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
3649
3653
  import("./package-discovery-7a9YqLhE.js").then((n) => n.r),
3650
- import("./catalog-runtime-pv4grNNb.js").then((n) => n.t),
3654
+ import("./catalog-runtime-BYGR3Dr4.js").then((n) => n.t),
3651
3655
  readPlugins(),
3652
3656
  readSkillReports()
3653
3657
  ]);
@@ -3664,7 +3668,7 @@ async function readRuntimeInfoReport() {
3664
3668
  /** Read sanitized operational summaries contributed by plugins. */
3665
3669
  async function readPluginOperationalReportFeed() {
3666
3670
  const nowMs = Date.now();
3667
- const { getPluginOperationalReports } = await import("./agent-hooks-CRuRcOg9.js").then((n) => n.t);
3671
+ const { getPluginOperationalReports } = await import("./agent-hooks-FUetyyLe.js").then((n) => n.t);
3668
3672
  return pluginOperationalReportFeedSchema.parse({
3669
3673
  source: "plugins",
3670
3674
  generatedAt: new Date(nowMs).toISOString(),
@@ -1,5 +1,5 @@
1
1
  import { t as ConversationStore } from "./store-DoewL5mG.js";
2
- import "./history-yaSjGMD_.js";
2
+ import "./history-DI9KJT3J.js";
3
3
  import { n as JuniorPluginSet } from "./plugins-BT2l4We3.js";
4
4
  import { Hono } from "hono";
5
5
  import "@earendil-works/pi-ai/compat";
package/dist/app.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as ModelProfileInput, n as JuniorDashboardOptions, r as createApp, t as JuniorAppOptions } from "./app-BbSD6EtD.js";
1
+ import { i as ModelProfileInput, n as JuniorDashboardOptions, r as createApp, t as JuniorAppOptions } from "./app-TVL42pGL.js";
2
2
  import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-BT2l4We3.js";
3
3
  import { t as JUNIOR_VERSION } from "./version-CnXZ614E.js";
4
4
  export { JUNIOR_VERSION, JuniorAppOptions, JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, type ModelProfileInput, createApp, defineJuniorPlugins };