managed-deepagents 0.10.0-dev.15 → 0.10.0-dev.17

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 (51) hide show
  1. package/README.md +63 -32
  2. package/dist/channels/github/index.d.ts.map +1 -1
  3. package/dist/channels/github/index.js +5 -3
  4. package/dist/channels/github/index.js.map +1 -1
  5. package/dist/channels/github/mentions.d.ts +8 -3
  6. package/dist/channels/github/mentions.d.ts.map +1 -1
  7. package/dist/channels/github/mentions.js +113 -40
  8. package/dist/channels/github/mentions.js.map +1 -1
  9. package/dist/channels/github/schema.d.ts +150 -96
  10. package/dist/channels/github/schema.d.ts.map +1 -1
  11. package/dist/channels/github/schema.js +18 -5
  12. package/dist/channels/github/schema.js.map +1 -1
  13. package/dist/channels/github/types.d.ts +14 -10
  14. package/dist/channels/github/types.d.ts.map +1 -1
  15. package/dist/channels/http/endpoint.d.ts +28 -19
  16. package/dist/channels/http/endpoint.d.ts.map +1 -1
  17. package/dist/channels/http/endpoint.js +107 -37
  18. package/dist/channels/http/endpoint.js.map +1 -1
  19. package/dist/channels/http/http.d.ts.map +1 -1
  20. package/dist/channels/http/http.js +130 -47
  21. package/dist/channels/http/http.js.map +1 -1
  22. package/dist/channels/http/index.d.ts +1 -1
  23. package/dist/channels/http/index.d.ts.map +1 -1
  24. package/dist/channels/http/index.js.map +1 -1
  25. package/dist/channels/http/ingress.d.ts +17 -2
  26. package/dist/channels/http/ingress.d.ts.map +1 -1
  27. package/dist/channels/http/ingress.js +19 -5
  28. package/dist/channels/http/ingress.js.map +1 -1
  29. package/dist/channels/http/provider.d.ts +14 -11
  30. package/dist/channels/http/provider.d.ts.map +1 -1
  31. package/dist/channels/http/provider.js +19 -8
  32. package/dist/channels/http/provider.js.map +1 -1
  33. package/dist/channels/http/studio.d.ts +4 -3
  34. package/dist/channels/http/studio.d.ts.map +1 -1
  35. package/dist/channels/http/studio.js +9 -4
  36. package/dist/channels/http/studio.js.map +1 -1
  37. package/dist/channels/http/types.d.ts +57 -16
  38. package/dist/channels/http/types.d.ts.map +1 -1
  39. package/dist/channels/linear/index.d.ts.map +1 -1
  40. package/dist/channels/linear/index.js +10 -7
  41. package/dist/channels/linear/index.js.map +1 -1
  42. package/dist/channels/linear/types.d.ts +8 -6
  43. package/dist/channels/linear/types.d.ts.map +1 -1
  44. package/dist/channels/run-input.d.ts +9 -3
  45. package/dist/channels/run-input.d.ts.map +1 -1
  46. package/dist/channels/run-input.js +12 -7
  47. package/dist/channels/run-input.js.map +1 -1
  48. package/dist/index.d.ts +2 -1
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js.map +1 -1
  51. package/package.json +7 -7
@@ -869,6 +869,12 @@ export declare const githubDispatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
869
869
  }, z.core.$loose>;
870
870
  }, z.core.$loose>;
871
871
  }, z.core.$strip>], "key">;
872
+ /**
873
+ * The fields of a GitHub event its endpoints are sent beside its key, delivery
874
+ * ID and payload: what a handler gets that the payload doesn't say as plainly.
875
+ * The one list of them; `GitHubEndpointRequest` is typed by it.
876
+ */
877
+ export declare const ENDPOINT_EVENT_FIELDS: readonly ["action", "repository", "sender", "mentions"];
872
878
  export declare const SUPPORTED_EVENT_KEYS: ("check_run.completed" | "check_suite.completed" | "issue_comment.created" | "issue_comment.edited" | "issues.edited" | "issues.labeled" | "issues.opened" | "issues.reopened" | "pull_request.closed" | "pull_request.converted_to_draft" | "pull_request.edited" | "pull_request.labeled" | "pull_request.opened" | "pull_request.ready_for_review" | "pull_request.reopened" | "pull_request.synchronize" | "pull_request_review.dismissed" | "pull_request_review.edited" | "pull_request_review.submitted" | "pull_request_review_comment.created" | "pull_request_review_comment.edited" | "push" | "status" | "workflow_run.completed")[];
873
879
  export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
874
880
  key: z.ZodLiteral<"issues.opened">;
@@ -1771,10 +1777,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
1771
1777
  type: "Bot" | "Organization" | "User";
1772
1778
  };
1773
1779
  /**
1774
- * The handles the event's own text mentions, such as `@octocat` or a text
1775
- * tag like `@openswe`: lowercased, each once, in order. The text is the
1776
- * comment's or review's body, or an issue's or pull request's title and
1777
- * body; code doesn't count. Empty for other events.
1780
+ * The handles the text this event wrote mentions, such as `@octocat` or a
1781
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
1782
+ * new or edited comment's or review's body, or an opened or edited issue's
1783
+ * or pull request's title and body; an edit lists only the handles it
1784
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
1785
+ * for events that write no text, such as a push or a label.
1778
1786
  */
1779
1787
  mentions: string[];
1780
1788
  } | {
@@ -1828,10 +1836,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
1828
1836
  type: "Bot" | "Organization" | "User";
1829
1837
  };
1830
1838
  /**
1831
- * The handles the event's own text mentions, such as `@octocat` or a text
1832
- * tag like `@openswe`: lowercased, each once, in order. The text is the
1833
- * comment's or review's body, or an issue's or pull request's title and
1834
- * body; code doesn't count. Empty for other events.
1839
+ * The handles the text this event wrote mentions, such as `@octocat` or a
1840
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
1841
+ * new or edited comment's or review's body, or an opened or edited issue's
1842
+ * or pull request's title and body; an edit lists only the handles it
1843
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
1844
+ * for events that write no text, such as a push or a label.
1835
1845
  */
1836
1846
  mentions: string[];
1837
1847
  } | {
@@ -1885,10 +1895,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
1885
1895
  type: "Bot" | "Organization" | "User";
1886
1896
  };
1887
1897
  /**
1888
- * The handles the event's own text mentions, such as `@octocat` or a text
1889
- * tag like `@openswe`: lowercased, each once, in order. The text is the
1890
- * comment's or review's body, or an issue's or pull request's title and
1891
- * body; code doesn't count. Empty for other events.
1898
+ * The handles the text this event wrote mentions, such as `@octocat` or a
1899
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
1900
+ * new or edited comment's or review's body, or an opened or edited issue's
1901
+ * or pull request's title and body; an edit lists only the handles it
1902
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
1903
+ * for events that write no text, such as a push or a label.
1892
1904
  */
1893
1905
  mentions: string[];
1894
1906
  } | {
@@ -1946,10 +1958,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
1946
1958
  type: "Bot" | "Organization" | "User";
1947
1959
  };
1948
1960
  /**
1949
- * The handles the event's own text mentions, such as `@octocat` or a text
1950
- * tag like `@openswe`: lowercased, each once, in order. The text is the
1951
- * comment's or review's body, or an issue's or pull request's title and
1952
- * body; code doesn't count. Empty for other events.
1961
+ * The handles the text this event wrote mentions, such as `@octocat` or a
1962
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
1963
+ * new or edited comment's or review's body, or an opened or edited issue's
1964
+ * or pull request's title and body; an edit lists only the handles it
1965
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
1966
+ * for events that write no text, such as a push or a label.
1953
1967
  */
1954
1968
  mentions: string[];
1955
1969
  } | {
@@ -2008,10 +2022,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2008
2022
  type: "Bot" | "Organization" | "User";
2009
2023
  };
2010
2024
  /**
2011
- * The handles the event's own text mentions, such as `@octocat` or a text
2012
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2013
- * comment's or review's body, or an issue's or pull request's title and
2014
- * body; code doesn't count. Empty for other events.
2025
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2026
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2027
+ * new or edited comment's or review's body, or an opened or edited issue's
2028
+ * or pull request's title and body; an edit lists only the handles it
2029
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2030
+ * for events that write no text, such as a push or a label.
2015
2031
  */
2016
2032
  mentions: string[];
2017
2033
  } | {
@@ -2070,10 +2086,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2070
2086
  type: "Bot" | "Organization" | "User";
2071
2087
  };
2072
2088
  /**
2073
- * The handles the event's own text mentions, such as `@octocat` or a text
2074
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2075
- * comment's or review's body, or an issue's or pull request's title and
2076
- * body; code doesn't count. Empty for other events.
2089
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2090
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2091
+ * new or edited comment's or review's body, or an opened or edited issue's
2092
+ * or pull request's title and body; an edit lists only the handles it
2093
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2094
+ * for events that write no text, such as a push or a label.
2077
2095
  */
2078
2096
  mentions: string[];
2079
2097
  } | {
@@ -2129,10 +2147,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2129
2147
  type: "Bot" | "Organization" | "User";
2130
2148
  };
2131
2149
  /**
2132
- * The handles the event's own text mentions, such as `@octocat` or a text
2133
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2134
- * comment's or review's body, or an issue's or pull request's title and
2135
- * body; code doesn't count. Empty for other events.
2150
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2151
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2152
+ * new or edited comment's or review's body, or an opened or edited issue's
2153
+ * or pull request's title and body; an edit lists only the handles it
2154
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2155
+ * for events that write no text, such as a push or a label.
2136
2156
  */
2137
2157
  mentions: string[];
2138
2158
  } | {
@@ -2188,10 +2208,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2188
2208
  type: "Bot" | "Organization" | "User";
2189
2209
  };
2190
2210
  /**
2191
- * The handles the event's own text mentions, such as `@octocat` or a text
2192
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2193
- * comment's or review's body, or an issue's or pull request's title and
2194
- * body; code doesn't count. Empty for other events.
2211
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2212
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2213
+ * new or edited comment's or review's body, or an opened or edited issue's
2214
+ * or pull request's title and body; an edit lists only the handles it
2215
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2216
+ * for events that write no text, such as a push or a label.
2195
2217
  */
2196
2218
  mentions: string[];
2197
2219
  } | {
@@ -2247,10 +2269,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2247
2269
  type: "Bot" | "Organization" | "User";
2248
2270
  };
2249
2271
  /**
2250
- * The handles the event's own text mentions, such as `@octocat` or a text
2251
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2252
- * comment's or review's body, or an issue's or pull request's title and
2253
- * body; code doesn't count. Empty for other events.
2272
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2273
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2274
+ * new or edited comment's or review's body, or an opened or edited issue's
2275
+ * or pull request's title and body; an edit lists only the handles it
2276
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2277
+ * for events that write no text, such as a push or a label.
2254
2278
  */
2255
2279
  mentions: string[];
2256
2280
  } | {
@@ -2306,10 +2330,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2306
2330
  type: "Bot" | "Organization" | "User";
2307
2331
  };
2308
2332
  /**
2309
- * The handles the event's own text mentions, such as `@octocat` or a text
2310
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2311
- * comment's or review's body, or an issue's or pull request's title and
2312
- * body; code doesn't count. Empty for other events.
2333
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2334
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2335
+ * new or edited comment's or review's body, or an opened or edited issue's
2336
+ * or pull request's title and body; an edit lists only the handles it
2337
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2338
+ * for events that write no text, such as a push or a label.
2313
2339
  */
2314
2340
  mentions: string[];
2315
2341
  } | {
@@ -2365,10 +2391,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2365
2391
  type: "Bot" | "Organization" | "User";
2366
2392
  };
2367
2393
  /**
2368
- * The handles the event's own text mentions, such as `@octocat` or a text
2369
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2370
- * comment's or review's body, or an issue's or pull request's title and
2371
- * body; code doesn't count. Empty for other events.
2394
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2395
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2396
+ * new or edited comment's or review's body, or an opened or edited issue's
2397
+ * or pull request's title and body; an edit lists only the handles it
2398
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2399
+ * for events that write no text, such as a push or a label.
2372
2400
  */
2373
2401
  mentions: string[];
2374
2402
  } | {
@@ -2424,10 +2452,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2424
2452
  type: "Bot" | "Organization" | "User";
2425
2453
  };
2426
2454
  /**
2427
- * The handles the event's own text mentions, such as `@octocat` or a text
2428
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2429
- * comment's or review's body, or an issue's or pull request's title and
2430
- * body; code doesn't count. Empty for other events.
2455
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2456
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2457
+ * new or edited comment's or review's body, or an opened or edited issue's
2458
+ * or pull request's title and body; an edit lists only the handles it
2459
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2460
+ * for events that write no text, such as a push or a label.
2431
2461
  */
2432
2462
  mentions: string[];
2433
2463
  } | {
@@ -2487,10 +2517,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2487
2517
  type: "Bot" | "Organization" | "User";
2488
2518
  };
2489
2519
  /**
2490
- * The handles the event's own text mentions, such as `@octocat` or a text
2491
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2492
- * comment's or review's body, or an issue's or pull request's title and
2493
- * body; code doesn't count. Empty for other events.
2520
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2521
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2522
+ * new or edited comment's or review's body, or an opened or edited issue's
2523
+ * or pull request's title and body; an edit lists only the handles it
2524
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2525
+ * for events that write no text, such as a push or a label.
2494
2526
  */
2495
2527
  mentions: string[];
2496
2528
  } | {
@@ -2546,10 +2578,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2546
2578
  type: "Bot" | "Organization" | "User";
2547
2579
  };
2548
2580
  /**
2549
- * The handles the event's own text mentions, such as `@octocat` or a text
2550
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2551
- * comment's or review's body, or an issue's or pull request's title and
2552
- * body; code doesn't count. Empty for other events.
2581
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2582
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2583
+ * new or edited comment's or review's body, or an opened or edited issue's
2584
+ * or pull request's title and body; an edit lists only the handles it
2585
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2586
+ * for events that write no text, such as a push or a label.
2553
2587
  */
2554
2588
  mentions: string[];
2555
2589
  } | {
@@ -2611,10 +2645,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2611
2645
  type: "Bot" | "Organization" | "User";
2612
2646
  };
2613
2647
  /**
2614
- * The handles the event's own text mentions, such as `@octocat` or a text
2615
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2616
- * comment's or review's body, or an issue's or pull request's title and
2617
- * body; code doesn't count. Empty for other events.
2648
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2649
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2650
+ * new or edited comment's or review's body, or an opened or edited issue's
2651
+ * or pull request's title and body; an edit lists only the handles it
2652
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2653
+ * for events that write no text, such as a push or a label.
2618
2654
  */
2619
2655
  mentions: string[];
2620
2656
  } | {
@@ -2676,10 +2712,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2676
2712
  type: "Bot" | "Organization" | "User";
2677
2713
  };
2678
2714
  /**
2679
- * The handles the event's own text mentions, such as `@octocat` or a text
2680
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2681
- * comment's or review's body, or an issue's or pull request's title and
2682
- * body; code doesn't count. Empty for other events.
2715
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2716
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2717
+ * new or edited comment's or review's body, or an opened or edited issue's
2718
+ * or pull request's title and body; an edit lists only the handles it
2719
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2720
+ * for events that write no text, such as a push or a label.
2683
2721
  */
2684
2722
  mentions: string[];
2685
2723
  } | {
@@ -2741,10 +2779,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2741
2779
  type: "Bot" | "Organization" | "User";
2742
2780
  };
2743
2781
  /**
2744
- * The handles the event's own text mentions, such as `@octocat` or a text
2745
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2746
- * comment's or review's body, or an issue's or pull request's title and
2747
- * body; code doesn't count. Empty for other events.
2782
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2783
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2784
+ * new or edited comment's or review's body, or an opened or edited issue's
2785
+ * or pull request's title and body; an edit lists only the handles it
2786
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2787
+ * for events that write no text, such as a push or a label.
2748
2788
  */
2749
2789
  mentions: string[];
2750
2790
  } | {
@@ -2805,10 +2845,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2805
2845
  type: "Bot" | "Organization" | "User";
2806
2846
  };
2807
2847
  /**
2808
- * The handles the event's own text mentions, such as `@octocat` or a text
2809
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2810
- * comment's or review's body, or an issue's or pull request's title and
2811
- * body; code doesn't count. Empty for other events.
2848
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2849
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2850
+ * new or edited comment's or review's body, or an opened or edited issue's
2851
+ * or pull request's title and body; an edit lists only the handles it
2852
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2853
+ * for events that write no text, such as a push or a label.
2812
2854
  */
2813
2855
  mentions: string[];
2814
2856
  } | {
@@ -2869,10 +2911,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2869
2911
  type: "Bot" | "Organization" | "User";
2870
2912
  };
2871
2913
  /**
2872
- * The handles the event's own text mentions, such as `@octocat` or a text
2873
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2874
- * comment's or review's body, or an issue's or pull request's title and
2875
- * body; code doesn't count. Empty for other events.
2914
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2915
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2916
+ * new or edited comment's or review's body, or an opened or edited issue's
2917
+ * or pull request's title and body; an edit lists only the handles it
2918
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2919
+ * for events that write no text, such as a push or a label.
2876
2920
  */
2877
2921
  mentions: string[];
2878
2922
  } | {
@@ -2922,10 +2966,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2922
2966
  type: "Bot" | "Organization" | "User";
2923
2967
  };
2924
2968
  /**
2925
- * The handles the event's own text mentions, such as `@octocat` or a text
2926
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2927
- * comment's or review's body, or an issue's or pull request's title and
2928
- * body; code doesn't count. Empty for other events.
2969
+ * The handles the text this event wrote mentions, such as `@octocat` or a
2970
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
2971
+ * new or edited comment's or review's body, or an opened or edited issue's
2972
+ * or pull request's title and body; an edit lists only the handles it
2973
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
2974
+ * for events that write no text, such as a push or a label.
2929
2975
  */
2930
2976
  mentions: string[];
2931
2977
  } | {
@@ -2976,10 +3022,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
2976
3022
  type: "Bot" | "Organization" | "User";
2977
3023
  };
2978
3024
  /**
2979
- * The handles the event's own text mentions, such as `@octocat` or a text
2980
- * tag like `@openswe`: lowercased, each once, in order. The text is the
2981
- * comment's or review's body, or an issue's or pull request's title and
2982
- * body; code doesn't count. Empty for other events.
3025
+ * The handles the text this event wrote mentions, such as `@octocat` or a
3026
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
3027
+ * new or edited comment's or review's body, or an opened or edited issue's
3028
+ * or pull request's title and body; an edit lists only the handles it
3029
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
3030
+ * for events that write no text, such as a push or a label.
2983
3031
  */
2984
3032
  mentions: string[];
2985
3033
  } | {
@@ -3034,10 +3082,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
3034
3082
  type: "Bot" | "Organization" | "User";
3035
3083
  };
3036
3084
  /**
3037
- * The handles the event's own text mentions, such as `@octocat` or a text
3038
- * tag like `@openswe`: lowercased, each once, in order. The text is the
3039
- * comment's or review's body, or an issue's or pull request's title and
3040
- * body; code doesn't count. Empty for other events.
3085
+ * The handles the text this event wrote mentions, such as `@octocat` or a
3086
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
3087
+ * new or edited comment's or review's body, or an opened or edited issue's
3088
+ * or pull request's title and body; an edit lists only the handles it
3089
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
3090
+ * for events that write no text, such as a push or a label.
3041
3091
  */
3042
3092
  mentions: string[];
3043
3093
  } | {
@@ -3091,10 +3141,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
3091
3141
  type: "Bot" | "Organization" | "User";
3092
3142
  };
3093
3143
  /**
3094
- * The handles the event's own text mentions, such as `@octocat` or a text
3095
- * tag like `@openswe`: lowercased, each once, in order. The text is the
3096
- * comment's or review's body, or an issue's or pull request's title and
3097
- * body; code doesn't count. Empty for other events.
3144
+ * The handles the text this event wrote mentions, such as `@octocat` or a
3145
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
3146
+ * new or edited comment's or review's body, or an opened or edited issue's
3147
+ * or pull request's title and body; an edit lists only the handles it
3148
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
3149
+ * for events that write no text, such as a push or a label.
3098
3150
  */
3099
3151
  mentions: string[];
3100
3152
  } | {
@@ -3147,10 +3199,12 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
3147
3199
  type: "Bot" | "Organization" | "User";
3148
3200
  };
3149
3201
  /**
3150
- * The handles the event's own text mentions, such as `@octocat` or a text
3151
- * tag like `@openswe`: lowercased, each once, in order. The text is the
3152
- * comment's or review's body, or an issue's or pull request's title and
3153
- * body; code doesn't count. Empty for other events.
3202
+ * The handles the text this event wrote mentions, such as `@octocat` or a
3203
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
3204
+ * new or edited comment's or review's body, or an opened or edited issue's
3205
+ * or pull request's title and body; an edit lists only the handles it
3206
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
3207
+ * for events that write no text, such as a push or a label.
3154
3208
  */
3155
3209
  mentions: string[];
3156
3210
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/channels/github/schema.ts"],"names":[],"mappings":"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEF,CAAC"}
@@ -162,6 +162,17 @@ export const githubDispatchSchema = z.discriminatedUnion("key", [
162
162
  workflow_run: workflowRunSchema,
163
163
  })),
164
164
  ]);
165
+ /**
166
+ * The fields of a GitHub event its endpoints are sent beside its key, delivery
167
+ * ID and payload: what a handler gets that the payload doesn't say as plainly.
168
+ * The one list of them; `GitHubEndpointRequest` is typed by it.
169
+ */
170
+ export const ENDPOINT_EVENT_FIELDS = [
171
+ "action",
172
+ "repository",
173
+ "sender",
174
+ "mentions",
175
+ ];
165
176
  export const SUPPORTED_EVENT_KEYS = githubDispatchSchema.options.map((option) => option.shape.key.value);
166
177
  // Expose common routing metadata while preserving the original payload.
167
178
  export const githubEventSchema = githubDispatchSchema.transform((event) => ({
@@ -186,11 +197,13 @@ export const githubEventSchema = githubDispatchSchema.transform((event) => ({
186
197
  type: event.payload.sender.type,
187
198
  },
188
199
  /**
189
- * The handles the event's own text mentions, such as `@octocat` or a text
190
- * tag like `@openswe`: lowercased, each once, in order. The text is the
191
- * comment's or review's body, or an issue's or pull request's title and
192
- * body; code doesn't count. Empty for other events.
200
+ * The handles the text this event wrote mentions, such as `@octocat` or a
201
+ * text tag like `@openswe`: lowercased, each once, in order. The text is a
202
+ * new or edited comment's or review's body, or an opened or edited issue's
203
+ * or pull request's title and body; an edit lists only the handles it
204
+ * added. As on GitHub, code, quotes and HTML comments mention no one. Empty
205
+ * for events that write no text, such as a push or a label.
193
206
  */
194
- mentions: eventMentions(event.key.split(".")[0], event.payload),
207
+ mentions: eventMentions(event),
195
208
  }));
196
209
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","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AAC,CAAC;IAC1E,GAAG,KAAK;IACR,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE;IAC9B,oEAAoE;IACpE,cAAc;IACd,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS,IAAI;QACxC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,MAAgB;KACvC,CAAC;IACF,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;IAC7C,UAAU,EAAE;QACV,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC/B,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK;QAC3C,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI;QACnC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS;QAC5C,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO;KAC1C;IACD,MAAM,EAAE;QACN,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QAC3B,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;QACjC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI;KAChC;IACD;;;;;;;OAOG;IACH,QAAQ,EAAE,aAAa,CAAC,KAAK,CAAC;CAC/B,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { z } from "zod";
2
2
  import type { MultitaskStrategy } from "../../ingress/runs.js";
3
- import type { githubEventSchema } from "./schema.js";
3
+ import type { ENDPOINT_EVENT_FIELDS, githubEventSchema } from "./schema.js";
4
4
  import type { ChannelRunResult } from "../run-input.js";
5
5
  import type { EventFinished, EventReceived } from "../http/provider.js";
6
6
  import type { EndpointRequest, EventEndpoint } from "../http/endpoint.js";
@@ -118,17 +118,19 @@ export interface GitHubChannelOptions {
118
118
  [K in SupportedEventKey]?: GitHubEventCallback<K> | EventEndpoint;
119
119
  };
120
120
  /**
121
- * A delivery of a handled event is done, once: with the run it started and
122
- * how that run ended, as LangGraph names it, and the decisions the thread
123
- * waits on. A delivery that started no run, such as one whose handler
124
- * returned nothing, has no `run`. Called after the App's own notices, such
121
+ * A delivery of a handled event is done, once, with how, to switch on by
122
+ * `type`: the run it started and how that run ended, as LangGraph names it
123
+ * (`run`), why it started none (`skipped`, such as a handler that returned
124
+ * nothing), or that MDA lost it (`failed`); and the decisions the thread
125
+ * waits on. Called after the App's own notices, such
125
126
  * as the comment that a decision is pending, in the background; failures
126
127
  * are logged. See `channels.http`'s `onFinish` for its limits.
127
128
  *
128
129
  * @example
129
130
  * ```ts
130
- * onFinish: async (event, thread, { run }) => {
131
- * if (run?.status === "success") await reportRun(thread.id, run.id);
131
+ * onFinish: async (event, thread, finished) => {
132
+ * if (finished.type === "run" && finished.run.status === "success")
133
+ * await reportRun(thread.id, finished.run.id);
132
134
  * }
133
135
  * ```
134
136
  */
@@ -151,9 +153,11 @@ export interface GitHubChannelOptions {
151
153
  onReceived?: EventReceived<GitHubEvent, GitHubChannelThread>;
152
154
  }
153
155
  /**
154
- * What a GitHub channel POSTs an endpoint, for one event key or any: the event
155
- * also lists the handles it mentions, as `GitHubEvent.mentions`.
156
+ * What a GitHub channel POSTs an endpoint, for one event key or any: the
157
+ * event's key, delivery ID and payload, and, as a handler gets them, its
158
+ * `action`, `repository`, `sender` and the handles it `mentions`. Those are
159
+ * optional, so a receiver takes requests from older deployments.
156
160
  */
157
- export type GitHubEndpointRequest<K extends SupportedEventKey = SupportedEventKey> = EndpointRequest<GitHubEvent<K>, "mentions">;
161
+ export type GitHubEndpointRequest<K extends SupportedEventKey = SupportedEventKey> = EndpointRequest<GitHubEvent<K>, (typeof ENDPOINT_EVENT_FIELDS)[number]>;
158
162
  export {};
159
163
  //# sourceMappingURL=types.d.ts.map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