managed-deepagents 0.10.0-dev.16 → 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.
- package/README.md +328 -18
- package/dist/channels/github/connections.d.ts.map +1 -1
- package/dist/channels/github/connections.js +2 -2
- package/dist/channels/github/connections.js.map +1 -1
- package/dist/channels/github/index.d.ts +1 -8
- package/dist/channels/github/index.d.ts.map +1 -1
- package/dist/channels/github/index.js +43 -138
- package/dist/channels/github/index.js.map +1 -1
- package/dist/channels/github/mentions.d.ts +12 -0
- package/dist/channels/github/mentions.d.ts.map +1 -0
- package/dist/channels/github/mentions.js +185 -0
- package/dist/channels/github/mentions.js.map +1 -0
- package/dist/channels/github/schema.d.ts +222 -0
- package/dist/channels/github/schema.d.ts.map +1 -1
- package/dist/channels/github/schema.js +22 -3
- package/dist/channels/github/schema.js.map +1 -1
- package/dist/channels/github/types.d.ts +57 -4
- package/dist/channels/github/types.d.ts.map +1 -1
- package/dist/channels/http/endpoint.d.ts +93 -0
- package/dist/channels/http/endpoint.d.ts.map +1 -0
- package/dist/channels/http/endpoint.js +276 -0
- package/dist/channels/http/endpoint.js.map +1 -0
- package/dist/channels/http/http.d.ts.map +1 -1
- package/dist/channels/http/http.js +319 -77
- package/dist/channels/http/http.js.map +1 -1
- package/dist/channels/http/index.d.ts +1 -1
- package/dist/channels/http/index.d.ts.map +1 -1
- package/dist/channels/http/index.js.map +1 -1
- package/dist/channels/http/ingress.d.ts +38 -3
- package/dist/channels/http/ingress.d.ts.map +1 -1
- package/dist/channels/http/ingress.js +64 -29
- package/dist/channels/http/ingress.js.map +1 -1
- package/dist/channels/http/provider.d.ts +114 -0
- package/dist/channels/http/provider.d.ts.map +1 -0
- package/dist/channels/http/provider.js +220 -0
- package/dist/channels/http/provider.js.map +1 -0
- package/dist/channels/http/reply.d.ts +20 -0
- package/dist/channels/http/reply.d.ts.map +1 -0
- package/dist/channels/http/reply.js +116 -0
- package/dist/channels/http/reply.js.map +1 -0
- package/dist/channels/http/studio.d.ts +24 -0
- package/dist/channels/http/studio.d.ts.map +1 -0
- package/dist/channels/http/studio.js +97 -0
- package/dist/channels/http/studio.js.map +1 -0
- package/dist/channels/http/types.d.ts +100 -6
- package/dist/channels/http/types.d.ts.map +1 -1
- package/dist/channels/linear/connections.d.ts +11 -0
- package/dist/channels/linear/connections.d.ts.map +1 -0
- package/dist/channels/linear/connections.js +14 -0
- package/dist/channels/linear/connections.js.map +1 -0
- package/dist/channels/linear/graphql.d.ts +57 -0
- package/dist/channels/linear/graphql.d.ts.map +1 -0
- package/dist/channels/linear/graphql.js +167 -0
- package/dist/channels/linear/graphql.js.map +1 -0
- package/dist/channels/linear/index.d.ts +9 -0
- package/dist/channels/linear/index.d.ts.map +1 -0
- package/dist/channels/linear/index.js +484 -0
- package/dist/channels/linear/index.js.map +1 -0
- package/dist/channels/linear/schema.d.ts +1064 -0
- package/dist/channels/linear/schema.d.ts.map +1 -0
- package/dist/channels/linear/schema.js +249 -0
- package/dist/channels/linear/schema.js.map +1 -0
- package/dist/channels/linear/types.d.ts +155 -0
- package/dist/channels/linear/types.d.ts.map +1 -0
- package/dist/channels/linear/types.js +2 -0
- package/dist/channels/linear/types.js.map +1 -0
- package/dist/channels/message-schema.d.ts +2 -0
- package/dist/channels/message-schema.d.ts.map +1 -1
- package/dist/channels/message-schema.js +4 -0
- package/dist/channels/message-schema.js.map +1 -1
- package/dist/channels/reserved-connections.d.ts +2 -2
- package/dist/channels/reserved-connections.d.ts.map +1 -1
- package/dist/channels/reserved-connections.js +26 -9
- package/dist/channels/reserved-connections.js.map +1 -1
- package/dist/channels/run-input.d.ts +24 -2
- package/dist/channels/run-input.d.ts.map +1 -1
- package/dist/channels/run-input.js +56 -6
- package/dist/channels/run-input.js.map +1 -1
- package/dist/channels/slack/index.d.ts +33 -1
- package/dist/channels/slack/index.d.ts.map +1 -1
- package/dist/channels/slack/index.js +54 -4
- package/dist/channels/slack/index.js.map +1 -1
- package/dist/channels/source-providers.js +1 -1
- package/dist/channels/source-providers.js.map +1 -1
- package/dist/connections.d.ts +5 -0
- package/dist/connections.d.ts.map +1 -1
- package/dist/connections.js +14 -1
- package/dist/connections.js.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/ingress/runs.d.ts +10 -1
- package/dist/ingress/runs.d.ts.map +1 -1
- package/dist/ingress/runs.js +40 -4
- package/dist/ingress/runs.js.map +1 -1
- package/dist/namespaces.d.ts +15 -0
- package/dist/namespaces.d.ts.map +1 -1
- package/dist/namespaces.js +2 -0
- package/dist/namespaces.js.map +1 -1
- package/dist/runtime/auth.d.ts.map +1 -1
- package/dist/runtime/auth.js +20 -1
- package/dist/runtime/auth.js.map +1 -1
- package/dist/runtime/channel-icon.d.ts +22 -0
- package/dist/runtime/channel-icon.d.ts.map +1 -0
- package/dist/runtime/channel-icon.js +70 -0
- package/dist/runtime/channel-icon.js.map +1 -0
- package/dist/runtime/channel.d.ts +6 -0
- package/dist/runtime/channel.d.ts.map +1 -1
- package/dist/runtime/channel.js.map +1 -1
- package/dist/runtime/identity-http.d.ts +2 -0
- package/dist/runtime/identity-http.d.ts.map +1 -1
- package/dist/runtime/identity-http.js +35 -0
- package/dist/runtime/identity-http.js.map +1 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +2 -0
- package/dist/runtime/index.js.map +1 -1
- 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">;
|
|
@@ -1770,6 +1776,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1770
1776
|
login: string;
|
|
1771
1777
|
type: "Bot" | "Organization" | "User";
|
|
1772
1778
|
};
|
|
1779
|
+
/**
|
|
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.
|
|
1786
|
+
*/
|
|
1787
|
+
mentions: string[];
|
|
1773
1788
|
} | {
|
|
1774
1789
|
key: "issues.edited";
|
|
1775
1790
|
deliveryId: string;
|
|
@@ -1820,6 +1835,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1820
1835
|
login: string;
|
|
1821
1836
|
type: "Bot" | "Organization" | "User";
|
|
1822
1837
|
};
|
|
1838
|
+
/**
|
|
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.
|
|
1845
|
+
*/
|
|
1846
|
+
mentions: string[];
|
|
1823
1847
|
} | {
|
|
1824
1848
|
key: "issues.reopened";
|
|
1825
1849
|
deliveryId: string;
|
|
@@ -1870,6 +1894,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1870
1894
|
login: string;
|
|
1871
1895
|
type: "Bot" | "Organization" | "User";
|
|
1872
1896
|
};
|
|
1897
|
+
/**
|
|
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.
|
|
1904
|
+
*/
|
|
1905
|
+
mentions: string[];
|
|
1873
1906
|
} | {
|
|
1874
1907
|
key: "issues.labeled";
|
|
1875
1908
|
deliveryId: string;
|
|
@@ -1924,6 +1957,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1924
1957
|
login: string;
|
|
1925
1958
|
type: "Bot" | "Organization" | "User";
|
|
1926
1959
|
};
|
|
1960
|
+
/**
|
|
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.
|
|
1967
|
+
*/
|
|
1968
|
+
mentions: string[];
|
|
1927
1969
|
} | {
|
|
1928
1970
|
key: "issue_comment.created";
|
|
1929
1971
|
deliveryId: string;
|
|
@@ -1979,6 +2021,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1979
2021
|
login: string;
|
|
1980
2022
|
type: "Bot" | "Organization" | "User";
|
|
1981
2023
|
};
|
|
2024
|
+
/**
|
|
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.
|
|
2031
|
+
*/
|
|
2032
|
+
mentions: string[];
|
|
1982
2033
|
} | {
|
|
1983
2034
|
key: "issue_comment.edited";
|
|
1984
2035
|
deliveryId: string;
|
|
@@ -2034,6 +2085,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2034
2085
|
login: string;
|
|
2035
2086
|
type: "Bot" | "Organization" | "User";
|
|
2036
2087
|
};
|
|
2088
|
+
/**
|
|
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.
|
|
2095
|
+
*/
|
|
2096
|
+
mentions: string[];
|
|
2037
2097
|
} | {
|
|
2038
2098
|
key: "pull_request.opened";
|
|
2039
2099
|
deliveryId: string;
|
|
@@ -2086,6 +2146,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2086
2146
|
login: string;
|
|
2087
2147
|
type: "Bot" | "Organization" | "User";
|
|
2088
2148
|
};
|
|
2149
|
+
/**
|
|
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.
|
|
2156
|
+
*/
|
|
2157
|
+
mentions: string[];
|
|
2089
2158
|
} | {
|
|
2090
2159
|
key: "pull_request.edited";
|
|
2091
2160
|
deliveryId: string;
|
|
@@ -2138,6 +2207,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2138
2207
|
login: string;
|
|
2139
2208
|
type: "Bot" | "Organization" | "User";
|
|
2140
2209
|
};
|
|
2210
|
+
/**
|
|
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.
|
|
2217
|
+
*/
|
|
2218
|
+
mentions: string[];
|
|
2141
2219
|
} | {
|
|
2142
2220
|
key: "pull_request.reopened";
|
|
2143
2221
|
deliveryId: string;
|
|
@@ -2190,6 +2268,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2190
2268
|
login: string;
|
|
2191
2269
|
type: "Bot" | "Organization" | "User";
|
|
2192
2270
|
};
|
|
2271
|
+
/**
|
|
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.
|
|
2278
|
+
*/
|
|
2279
|
+
mentions: string[];
|
|
2193
2280
|
} | {
|
|
2194
2281
|
key: "pull_request.ready_for_review";
|
|
2195
2282
|
deliveryId: string;
|
|
@@ -2242,6 +2329,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2242
2329
|
login: string;
|
|
2243
2330
|
type: "Bot" | "Organization" | "User";
|
|
2244
2331
|
};
|
|
2332
|
+
/**
|
|
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.
|
|
2339
|
+
*/
|
|
2340
|
+
mentions: string[];
|
|
2245
2341
|
} | {
|
|
2246
2342
|
key: "pull_request.converted_to_draft";
|
|
2247
2343
|
deliveryId: string;
|
|
@@ -2294,6 +2390,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2294
2390
|
login: string;
|
|
2295
2391
|
type: "Bot" | "Organization" | "User";
|
|
2296
2392
|
};
|
|
2393
|
+
/**
|
|
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.
|
|
2400
|
+
*/
|
|
2401
|
+
mentions: string[];
|
|
2297
2402
|
} | {
|
|
2298
2403
|
key: "pull_request.synchronize";
|
|
2299
2404
|
deliveryId: string;
|
|
@@ -2346,6 +2451,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2346
2451
|
login: string;
|
|
2347
2452
|
type: "Bot" | "Organization" | "User";
|
|
2348
2453
|
};
|
|
2454
|
+
/**
|
|
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.
|
|
2461
|
+
*/
|
|
2462
|
+
mentions: string[];
|
|
2349
2463
|
} | {
|
|
2350
2464
|
key: "pull_request.labeled";
|
|
2351
2465
|
deliveryId: string;
|
|
@@ -2402,6 +2516,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2402
2516
|
login: string;
|
|
2403
2517
|
type: "Bot" | "Organization" | "User";
|
|
2404
2518
|
};
|
|
2519
|
+
/**
|
|
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.
|
|
2526
|
+
*/
|
|
2527
|
+
mentions: string[];
|
|
2405
2528
|
} | {
|
|
2406
2529
|
key: "pull_request.closed";
|
|
2407
2530
|
deliveryId: string;
|
|
@@ -2454,6 +2577,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2454
2577
|
login: string;
|
|
2455
2578
|
type: "Bot" | "Organization" | "User";
|
|
2456
2579
|
};
|
|
2580
|
+
/**
|
|
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.
|
|
2587
|
+
*/
|
|
2588
|
+
mentions: string[];
|
|
2457
2589
|
} | {
|
|
2458
2590
|
key: "pull_request_review.submitted";
|
|
2459
2591
|
deliveryId: string;
|
|
@@ -2512,6 +2644,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2512
2644
|
login: string;
|
|
2513
2645
|
type: "Bot" | "Organization" | "User";
|
|
2514
2646
|
};
|
|
2647
|
+
/**
|
|
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.
|
|
2654
|
+
*/
|
|
2655
|
+
mentions: string[];
|
|
2515
2656
|
} | {
|
|
2516
2657
|
key: "pull_request_review.edited";
|
|
2517
2658
|
deliveryId: string;
|
|
@@ -2570,6 +2711,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2570
2711
|
login: string;
|
|
2571
2712
|
type: "Bot" | "Organization" | "User";
|
|
2572
2713
|
};
|
|
2714
|
+
/**
|
|
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.
|
|
2721
|
+
*/
|
|
2722
|
+
mentions: string[];
|
|
2573
2723
|
} | {
|
|
2574
2724
|
key: "pull_request_review.dismissed";
|
|
2575
2725
|
deliveryId: string;
|
|
@@ -2628,6 +2778,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2628
2778
|
login: string;
|
|
2629
2779
|
type: "Bot" | "Organization" | "User";
|
|
2630
2780
|
};
|
|
2781
|
+
/**
|
|
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.
|
|
2788
|
+
*/
|
|
2789
|
+
mentions: string[];
|
|
2631
2790
|
} | {
|
|
2632
2791
|
key: "pull_request_review_comment.created";
|
|
2633
2792
|
deliveryId: string;
|
|
@@ -2685,6 +2844,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2685
2844
|
login: string;
|
|
2686
2845
|
type: "Bot" | "Organization" | "User";
|
|
2687
2846
|
};
|
|
2847
|
+
/**
|
|
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.
|
|
2854
|
+
*/
|
|
2855
|
+
mentions: string[];
|
|
2688
2856
|
} | {
|
|
2689
2857
|
key: "pull_request_review_comment.edited";
|
|
2690
2858
|
deliveryId: string;
|
|
@@ -2742,6 +2910,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2742
2910
|
login: string;
|
|
2743
2911
|
type: "Bot" | "Organization" | "User";
|
|
2744
2912
|
};
|
|
2913
|
+
/**
|
|
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.
|
|
2920
|
+
*/
|
|
2921
|
+
mentions: string[];
|
|
2745
2922
|
} | {
|
|
2746
2923
|
key: "push";
|
|
2747
2924
|
deliveryId: string;
|
|
@@ -2788,6 +2965,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2788
2965
|
login: string;
|
|
2789
2966
|
type: "Bot" | "Organization" | "User";
|
|
2790
2967
|
};
|
|
2968
|
+
/**
|
|
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.
|
|
2975
|
+
*/
|
|
2976
|
+
mentions: string[];
|
|
2791
2977
|
} | {
|
|
2792
2978
|
key: "status";
|
|
2793
2979
|
deliveryId: string;
|
|
@@ -2835,6 +3021,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2835
3021
|
login: string;
|
|
2836
3022
|
type: "Bot" | "Organization" | "User";
|
|
2837
3023
|
};
|
|
3024
|
+
/**
|
|
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.
|
|
3031
|
+
*/
|
|
3032
|
+
mentions: string[];
|
|
2838
3033
|
} | {
|
|
2839
3034
|
key: "check_run.completed";
|
|
2840
3035
|
deliveryId: string;
|
|
@@ -2886,6 +3081,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2886
3081
|
login: string;
|
|
2887
3082
|
type: "Bot" | "Organization" | "User";
|
|
2888
3083
|
};
|
|
3084
|
+
/**
|
|
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.
|
|
3091
|
+
*/
|
|
3092
|
+
mentions: string[];
|
|
2889
3093
|
} | {
|
|
2890
3094
|
key: "check_suite.completed";
|
|
2891
3095
|
deliveryId: string;
|
|
@@ -2936,6 +3140,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2936
3140
|
login: string;
|
|
2937
3141
|
type: "Bot" | "Organization" | "User";
|
|
2938
3142
|
};
|
|
3143
|
+
/**
|
|
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.
|
|
3150
|
+
*/
|
|
3151
|
+
mentions: string[];
|
|
2939
3152
|
} | {
|
|
2940
3153
|
key: "workflow_run.completed";
|
|
2941
3154
|
deliveryId: string;
|
|
@@ -2985,6 +3198,15 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2985
3198
|
login: string;
|
|
2986
3199
|
type: "Bot" | "Organization" | "User";
|
|
2987
3200
|
};
|
|
3201
|
+
/**
|
|
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.
|
|
3208
|
+
*/
|
|
3209
|
+
mentions: string[];
|
|
2988
3210
|
}, {
|
|
2989
3211
|
key: "issues.opened";
|
|
2990
3212
|
deliveryId: string;
|
|
@@ -1 +1 @@
|
|
|
1
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEF,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { eventMentions } from "./mentions.js";
|
|
3
|
+
import { nonblankStringSchema } from "../message-schema.js";
|
|
2
4
|
// Shared scalar constraints. Dispatch IDs are positive safe integers.
|
|
3
|
-
const nonblankStringSchema = z
|
|
4
|
-
.string()
|
|
5
|
-
.refine((value) => value.trim().length > 0);
|
|
6
5
|
const nullableTextSchema = z.string().nullable();
|
|
7
6
|
export const githubIdentifierSchema = z.number().int().positive();
|
|
8
7
|
/** Receipt metadata only, not a complete GitHub event payload specification. */
|
|
@@ -163,6 +162,17 @@ export const githubDispatchSchema = z.discriminatedUnion("key", [
|
|
|
163
162
|
workflow_run: workflowRunSchema,
|
|
164
163
|
})),
|
|
165
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
|
+
];
|
|
166
176
|
export const SUPPORTED_EVENT_KEYS = githubDispatchSchema.options.map((option) => option.shape.key.value);
|
|
167
177
|
// Expose common routing metadata while preserving the original payload.
|
|
168
178
|
export const githubEventSchema = githubDispatchSchema.transform((event) => ({
|
|
@@ -186,5 +196,14 @@ export const githubEventSchema = githubDispatchSchema.transform((event) => ({
|
|
|
186
196
|
login: event.payload.sender.login,
|
|
187
197
|
type: event.payload.sender.type,
|
|
188
198
|
},
|
|
199
|
+
/**
|
|
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.
|
|
206
|
+
*/
|
|
207
|
+
mentions: eventMentions(event),
|
|
189
208
|
}));
|
|
190
209
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/channels/github/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/channels/github/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,sEAAsE;AACtE,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;AACjD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;AAElE,gFAAgF;AAChF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,oBA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 -1,7 +1,9 @@
|
|
|
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
|
+
import type { EventFinished, EventReceived } from "../http/provider.js";
|
|
6
|
+
import type { EndpointRequest, EventEndpoint } from "../http/endpoint.js";
|
|
5
7
|
/** Handwritten schema subsets; unmodeled provider fields remain unknown. */
|
|
6
8
|
type EventUnion = z.output<typeof githubEventSchema>;
|
|
7
9
|
export type SupportedEventKey = EventUnion["key"];
|
|
@@ -34,7 +36,7 @@ export interface GitHubChannelThread {
|
|
|
34
36
|
/**
|
|
35
37
|
* What an event handler returns: a run's input, as `agent.invoke` takes it —
|
|
36
38
|
* a string, a message such as `new HumanMessage(...)`, state such as
|
|
37
|
-
* `{ messages: [...] }`, or `[input, { context }]`. `null` or `undefined`
|
|
39
|
+
* `{ messages: [...] }`, or `[input, { context, metadata }]`. `null` or `undefined`
|
|
38
40
|
* starts nothing.
|
|
39
41
|
*/
|
|
40
42
|
export type GitHubEventResult = ChannelRunResult | null | undefined | void;
|
|
@@ -97,14 +99,65 @@ export interface GitHubChannelOptions {
|
|
|
97
99
|
* decide whether the issue or pull request is told to continue it in
|
|
98
100
|
* LangSmith Studio.
|
|
99
101
|
*
|
|
102
|
+
* A handler may also be an endpoint, a URL or a `Request` carrying headers,
|
|
103
|
+
* to have a service of yours decide: MDA POSTs it the event and its thread,
|
|
104
|
+
* and starts the run it answers with. See the README's "Asking your service
|
|
105
|
+
* what to start".
|
|
106
|
+
*
|
|
100
107
|
* @example
|
|
101
108
|
* ```ts
|
|
102
|
-
* {
|
|
109
|
+
* {
|
|
110
|
+
* "issues.opened": (e) => `Help with #${e.payload.issue.number}`,
|
|
111
|
+
* "issue_comment.created": new Request(`${BACKEND}/github/runs`, {
|
|
112
|
+
* headers: { "x-api-key": process.env.BACKEND_KEY! },
|
|
113
|
+
* }),
|
|
114
|
+
* }
|
|
103
115
|
* ```
|
|
104
116
|
*/
|
|
105
117
|
onEvent?: {
|
|
106
|
-
[K in SupportedEventKey]?: GitHubEventCallback<K
|
|
118
|
+
[K in SupportedEventKey]?: GitHubEventCallback<K> | EventEndpoint;
|
|
107
119
|
};
|
|
120
|
+
/**
|
|
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
|
|
126
|
+
* as the comment that a decision is pending, in the background; failures
|
|
127
|
+
* are logged. See `channels.http`'s `onFinish` for its limits.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```ts
|
|
131
|
+
* onFinish: async (event, thread, finished) => {
|
|
132
|
+
* if (finished.type === "run" && finished.run.status === "success")
|
|
133
|
+
* await reportRun(thread.id, finished.run.id);
|
|
134
|
+
* }
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
onFinish?: EventFinished<GitHubEvent, GitHubChannelThread>;
|
|
138
|
+
/**
|
|
139
|
+
* A delivery of a handled event reached its thread, once, with the event
|
|
140
|
+
* and its thread, before MDA reads the thread or asks the handler: the
|
|
141
|
+
* moment to acknowledge it, such as with a 👀 reaction. It fires even when
|
|
142
|
+
* the thread then waits on an interrupt, or the handler declines, so apply
|
|
143
|
+
* your own filters, such as a mention check. In the background, before
|
|
144
|
+
* `onFinish`; failures are logged and don't stop the run.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```ts
|
|
148
|
+
* onReceived: async (event) => {
|
|
149
|
+
* if (event.name === "issue_comment") await reactEyes(event);
|
|
150
|
+
* }
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
onReceived?: EventReceived<GitHubEvent, GitHubChannelThread>;
|
|
108
154
|
}
|
|
155
|
+
/**
|
|
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.
|
|
160
|
+
*/
|
|
161
|
+
export type GitHubEndpointRequest<K extends SupportedEventKey = SupportedEventKey> = EndpointRequest<GitHubEvent<K>, (typeof ENDPOINT_EVENT_FIELDS)[number]>;
|
|
109
162
|
export {};
|
|
110
163
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/channels/github/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/channels/github/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE1E,4EAA4E;AAC5E,KAAK,UAAU,GAAG,CAAC,CAAC,MAAM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