managed-deepagents 0.10.0-dev.16 → 0.10.0-dev.18
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 +809 -71
- package/dist/channels/actor.d.ts +43 -0
- package/dist/channels/actor.d.ts.map +1 -0
- package/dist/channels/actor.js +2 -0
- package/dist/channels/actor.js.map +1 -0
- package/dist/channels/assistant-text.d.ts +29 -0
- package/dist/channels/assistant-text.d.ts.map +1 -1
- package/dist/channels/assistant-text.js +72 -1
- package/dist/channels/assistant-text.js.map +1 -1
- package/dist/channels/binding.d.ts +20 -1
- package/dist/channels/binding.d.ts.map +1 -1
- package/dist/channels/binding.js +39 -10
- package/dist/channels/binding.js.map +1 -1
- package/dist/channels/delivery.d.ts +21 -0
- package/dist/channels/delivery.d.ts.map +1 -0
- package/dist/channels/delivery.js +196 -0
- package/dist/channels/delivery.js.map +1 -0
- 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 +46 -139
- 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 +271 -0
- package/dist/channels/github/schema.d.ts.map +1 -1
- package/dist/channels/github/schema.js +34 -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 +95 -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 +322 -86
- 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 +10 -16
- package/dist/channels/http/index.js.map +1 -1
- package/dist/channels/http/ingress.d.ts +40 -5
- package/dist/channels/http/ingress.d.ts.map +1 -1
- package/dist/channels/http/ingress.js +63 -40
- package/dist/channels/http/ingress.js.map +1 -1
- package/dist/channels/http/provider.d.ts +119 -0
- package/dist/channels/http/provider.d.ts.map +1 -0
- package/dist/channels/http/provider.js +227 -0
- package/dist/channels/http/provider.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 +95 -0
- package/dist/channels/http/studio.js.map +1 -0
- package/dist/channels/http/types.d.ts +107 -7
- 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 +489 -0
- package/dist/channels/linear/index.js.map +1 -0
- package/dist/channels/linear/schema.d.ts +1050 -0
- package/dist/channels/linear/schema.d.ts.map +1 -0
- package/dist/channels/linear/schema.js +255 -0
- package/dist/channels/linear/schema.js.map +1 -0
- package/dist/channels/linear/types.d.ts +162 -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/messaging-registry.d.ts +16 -0
- package/dist/channels/messaging-registry.d.ts.map +1 -1
- package/dist/channels/messaging-registry.js +29 -0
- package/dist/channels/messaging-registry.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 +36 -9
- package/dist/channels/reserved-connections.js.map +1 -1
- package/dist/channels/run-input.d.ts +35 -2
- package/dist/channels/run-input.d.ts.map +1 -1
- package/dist/channels/run-input.js +74 -14
- package/dist/channels/run-input.js.map +1 -1
- package/dist/channels/runtime.d.ts +1 -1
- package/dist/channels/runtime.d.ts.map +1 -1
- package/dist/channels/runtime.js +1 -1
- package/dist/channels/runtime.js.map +1 -1
- package/dist/channels/schedule-delivery.d.ts +1 -1
- package/dist/channels/schedule-delivery.d.ts.map +1 -1
- package/dist/channels/schedule-delivery.js +9 -20
- package/dist/channels/schedule-delivery.js.map +1 -1
- package/dist/channels/slack/api.d.ts +2 -0
- package/dist/channels/slack/api.d.ts.map +1 -1
- package/dist/channels/slack/api.js +6 -0
- package/dist/channels/slack/api.js.map +1 -1
- package/dist/channels/slack/connections.d.ts +6 -0
- package/dist/channels/slack/connections.d.ts.map +1 -0
- package/dist/channels/slack/connections.js +6 -0
- package/dist/channels/slack/connections.js.map +1 -0
- package/dist/channels/slack/events.d.ts +272 -0
- package/dist/channels/slack/events.d.ts.map +1 -0
- package/dist/channels/slack/events.js +235 -0
- package/dist/channels/slack/events.js.map +1 -0
- package/dist/channels/slack/files.d.ts.map +1 -1
- package/dist/channels/slack/files.js +2 -3
- package/dist/channels/slack/files.js.map +1 -1
- package/dist/channels/slack/index.d.ts +76 -2
- package/dist/channels/slack/index.d.ts.map +1 -1
- package/dist/channels/slack/index.js +177 -6
- package/dist/channels/slack/index.js.map +1 -1
- package/dist/channels/slack/message-content.d.ts.map +1 -1
- package/dist/channels/slack/message-content.js +23 -28
- package/dist/channels/slack/message-content.js.map +1 -1
- package/dist/channels/slack/status.d.ts +76 -0
- package/dist/channels/slack/status.d.ts.map +1 -0
- package/dist/channels/slack/status.js +427 -0
- package/dist/channels/slack/status.js.map +1 -0
- package/dist/channels/source-providers.js +1 -1
- package/dist/channels/source-providers.js.map +1 -1
- package/dist/channels/trigger/client.d.ts.map +1 -1
- package/dist/channels/trigger/client.js +4 -9
- package/dist/channels/trigger/client.js.map +1 -1
- package/dist/channels/trigger/http.d.ts +114 -3
- package/dist/channels/trigger/http.d.ts.map +1 -1
- package/dist/channels/trigger/http.js +310 -71
- package/dist/channels/trigger/http.js.map +1 -1
- package/dist/channels/trigger/ingress.d.ts +38 -1
- package/dist/channels/trigger/ingress.d.ts.map +1 -1
- package/dist/channels/trigger/ingress.js +47 -1
- package/dist/channels/trigger/ingress.js.map +1 -1
- package/dist/channels/trigger/types.d.ts +82 -3
- package/dist/channels/trigger/types.d.ts.map +1 -1
- package/dist/channels/trigger/types.js +36 -0
- package/dist/channels/trigger/types.js.map +1 -1
- package/dist/channels/types.d.ts +19 -3
- package/dist/channels/types.d.ts.map +1 -1
- package/dist/channels/types.js +2 -0
- package/dist/channels/types.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 +13 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/ingress/runs.d.ts +32 -1
- package/dist/ingress/runs.d.ts.map +1 -1
- package/dist/ingress/runs.js +85 -5
- package/dist/ingress/runs.js.map +1 -1
- package/dist/managed-composition.d.ts.map +1 -1
- package/dist/managed-composition.js +8 -13
- package/dist/managed-composition.js.map +1 -1
- package/dist/namespaces.d.ts +15 -21
- package/dist/namespaces.d.ts.map +1 -1
- package/dist/namespaces.js +2 -29
- package/dist/namespaces.js.map +1 -1
- package/dist/runtime/auth.d.ts +1 -2
- package/dist/runtime/auth.d.ts.map +1 -1
- package/dist/runtime/auth.js +94 -48
- 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/identity-runtime.d.ts +4 -9
- package/dist/runtime/identity-runtime.d.ts.map +1 -1
- package/dist/runtime/identity-runtime.js +12 -25
- package/dist/runtime/identity-runtime.js.map +1 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +32 -21
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/managed-thread.d.ts +60 -0
- package/dist/runtime/managed-thread.d.ts.map +1 -0
- package/dist/runtime/managed-thread.js +76 -0
- package/dist/runtime/managed-thread.js.map +1 -0
- package/dist/runtime/managed-tools.d.ts +10 -2
- package/dist/runtime/managed-tools.d.ts.map +1 -1
- package/dist/runtime/managed-tools.js +10 -8
- package/dist/runtime/managed-tools.js.map +1 -1
- package/dist/runtime/memory/policy.d.ts.map +1 -1
- package/dist/runtime/memory/policy.js +1 -3
- package/dist/runtime/memory/policy.js.map +1 -1
- package/dist/runtime/run-input.d.ts +10 -0
- package/dist/runtime/run-input.d.ts.map +1 -1
- package/dist/runtime/run-input.js +48 -2
- package/dist/runtime/run-input.js.map +1 -1
- package/dist/runtime/sandbox-manager.d.ts.map +1 -1
- package/dist/runtime/sandbox-manager.js +1 -1
- package/dist/runtime/sandbox-manager.js.map +1 -1
- package/dist/runtime/schedule-auth.d.ts +17 -0
- package/dist/runtime/schedule-auth.d.ts.map +1 -1
- package/dist/runtime/schedule-auth.js +39 -1
- package/dist/runtime/schedule-auth.js.map +1 -1
- package/dist/runtime/thread-record.d.ts +81 -0
- package/dist/runtime/thread-record.d.ts.map +1 -0
- package/dist/runtime/thread-record.js +205 -0
- package/dist/runtime/thread-record.js.map +1 -0
- package/dist/runtime/types.d.ts +5 -1
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/runtime-schedules.d.ts +13 -0
- package/dist/runtime-schedules.d.ts.map +1 -1
- package/dist/runtime-schedules.js +83 -20
- package/dist/runtime-schedules.js.map +1 -1
- package/dist/sandbox.d.ts +0 -6
- package/dist/sandbox.d.ts.map +1 -1
- package/dist/sandbox.js +3 -7
- package/dist/sandbox.js.map +1 -1
- package/dist/schedule-channel.d.ts +5 -2
- package/dist/schedule-channel.d.ts.map +1 -1
- package/dist/schedule-channel.js +13 -12
- package/dist/schedule-channel.js.map +1 -1
- package/dist/values.d.ts +15 -0
- package/dist/values.d.ts.map +1 -0
- package/dist/values.js +31 -0
- package/dist/values.js.map +1 -0
- package/package.json +7 -7
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import type { GitHubActor } from "../actor.js";
|
|
2
3
|
export declare const githubIdentifierSchema: z.ZodNumber;
|
|
3
4
|
/** Receipt metadata only, not a complete GitHub event payload specification. */
|
|
4
5
|
export declare const githubReceiptSchema: z.ZodObject<{
|
|
@@ -869,6 +870,12 @@ export declare const githubDispatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
869
870
|
}, z.core.$loose>;
|
|
870
871
|
}, z.core.$loose>;
|
|
871
872
|
}, z.core.$strip>], "key">;
|
|
873
|
+
/**
|
|
874
|
+
* The fields of a GitHub event its endpoints are sent beside its key, delivery
|
|
875
|
+
* ID and payload: what a handler gets that the payload doesn't say as plainly.
|
|
876
|
+
* The one list of them; `GitHubEndpointRequest` is typed by it.
|
|
877
|
+
*/
|
|
878
|
+
export declare const ENDPOINT_EVENT_FIELDS: readonly ["action", "repository", "sender", "actor", "mentions"];
|
|
872
879
|
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
880
|
export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
874
881
|
key: z.ZodLiteral<"issues.opened">;
|
|
@@ -1770,6 +1777,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1770
1777
|
login: string;
|
|
1771
1778
|
type: "Bot" | "Organization" | "User";
|
|
1772
1779
|
};
|
|
1780
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
1781
|
+
actor: GitHubActor;
|
|
1782
|
+
/**
|
|
1783
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
1784
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
1785
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
1786
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
1787
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
1788
|
+
* for events that write no text, such as a push or a label.
|
|
1789
|
+
*/
|
|
1790
|
+
mentions: string[];
|
|
1773
1791
|
} | {
|
|
1774
1792
|
key: "issues.edited";
|
|
1775
1793
|
deliveryId: string;
|
|
@@ -1820,6 +1838,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1820
1838
|
login: string;
|
|
1821
1839
|
type: "Bot" | "Organization" | "User";
|
|
1822
1840
|
};
|
|
1841
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
1842
|
+
actor: GitHubActor;
|
|
1843
|
+
/**
|
|
1844
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
1845
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
1846
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
1847
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
1848
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
1849
|
+
* for events that write no text, such as a push or a label.
|
|
1850
|
+
*/
|
|
1851
|
+
mentions: string[];
|
|
1823
1852
|
} | {
|
|
1824
1853
|
key: "issues.reopened";
|
|
1825
1854
|
deliveryId: string;
|
|
@@ -1870,6 +1899,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1870
1899
|
login: string;
|
|
1871
1900
|
type: "Bot" | "Organization" | "User";
|
|
1872
1901
|
};
|
|
1902
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
1903
|
+
actor: GitHubActor;
|
|
1904
|
+
/**
|
|
1905
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
1906
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
1907
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
1908
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
1909
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
1910
|
+
* for events that write no text, such as a push or a label.
|
|
1911
|
+
*/
|
|
1912
|
+
mentions: string[];
|
|
1873
1913
|
} | {
|
|
1874
1914
|
key: "issues.labeled";
|
|
1875
1915
|
deliveryId: string;
|
|
@@ -1924,6 +1964,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1924
1964
|
login: string;
|
|
1925
1965
|
type: "Bot" | "Organization" | "User";
|
|
1926
1966
|
};
|
|
1967
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
1968
|
+
actor: GitHubActor;
|
|
1969
|
+
/**
|
|
1970
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
1971
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
1972
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
1973
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
1974
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
1975
|
+
* for events that write no text, such as a push or a label.
|
|
1976
|
+
*/
|
|
1977
|
+
mentions: string[];
|
|
1927
1978
|
} | {
|
|
1928
1979
|
key: "issue_comment.created";
|
|
1929
1980
|
deliveryId: string;
|
|
@@ -1979,6 +2030,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1979
2030
|
login: string;
|
|
1980
2031
|
type: "Bot" | "Organization" | "User";
|
|
1981
2032
|
};
|
|
2033
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2034
|
+
actor: GitHubActor;
|
|
2035
|
+
/**
|
|
2036
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2037
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2038
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2039
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2040
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2041
|
+
* for events that write no text, such as a push or a label.
|
|
2042
|
+
*/
|
|
2043
|
+
mentions: string[];
|
|
1982
2044
|
} | {
|
|
1983
2045
|
key: "issue_comment.edited";
|
|
1984
2046
|
deliveryId: string;
|
|
@@ -2034,6 +2096,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2034
2096
|
login: string;
|
|
2035
2097
|
type: "Bot" | "Organization" | "User";
|
|
2036
2098
|
};
|
|
2099
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2100
|
+
actor: GitHubActor;
|
|
2101
|
+
/**
|
|
2102
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2103
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2104
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2105
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2106
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2107
|
+
* for events that write no text, such as a push or a label.
|
|
2108
|
+
*/
|
|
2109
|
+
mentions: string[];
|
|
2037
2110
|
} | {
|
|
2038
2111
|
key: "pull_request.opened";
|
|
2039
2112
|
deliveryId: string;
|
|
@@ -2086,6 +2159,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2086
2159
|
login: string;
|
|
2087
2160
|
type: "Bot" | "Organization" | "User";
|
|
2088
2161
|
};
|
|
2162
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2163
|
+
actor: GitHubActor;
|
|
2164
|
+
/**
|
|
2165
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2166
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2167
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2168
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2169
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2170
|
+
* for events that write no text, such as a push or a label.
|
|
2171
|
+
*/
|
|
2172
|
+
mentions: string[];
|
|
2089
2173
|
} | {
|
|
2090
2174
|
key: "pull_request.edited";
|
|
2091
2175
|
deliveryId: string;
|
|
@@ -2138,6 +2222,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2138
2222
|
login: string;
|
|
2139
2223
|
type: "Bot" | "Organization" | "User";
|
|
2140
2224
|
};
|
|
2225
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2226
|
+
actor: GitHubActor;
|
|
2227
|
+
/**
|
|
2228
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2229
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2230
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2231
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2232
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2233
|
+
* for events that write no text, such as a push or a label.
|
|
2234
|
+
*/
|
|
2235
|
+
mentions: string[];
|
|
2141
2236
|
} | {
|
|
2142
2237
|
key: "pull_request.reopened";
|
|
2143
2238
|
deliveryId: string;
|
|
@@ -2190,6 +2285,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2190
2285
|
login: string;
|
|
2191
2286
|
type: "Bot" | "Organization" | "User";
|
|
2192
2287
|
};
|
|
2288
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2289
|
+
actor: GitHubActor;
|
|
2290
|
+
/**
|
|
2291
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2292
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2293
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2294
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2295
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2296
|
+
* for events that write no text, such as a push or a label.
|
|
2297
|
+
*/
|
|
2298
|
+
mentions: string[];
|
|
2193
2299
|
} | {
|
|
2194
2300
|
key: "pull_request.ready_for_review";
|
|
2195
2301
|
deliveryId: string;
|
|
@@ -2242,6 +2348,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2242
2348
|
login: string;
|
|
2243
2349
|
type: "Bot" | "Organization" | "User";
|
|
2244
2350
|
};
|
|
2351
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2352
|
+
actor: GitHubActor;
|
|
2353
|
+
/**
|
|
2354
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2355
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2356
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2357
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2358
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2359
|
+
* for events that write no text, such as a push or a label.
|
|
2360
|
+
*/
|
|
2361
|
+
mentions: string[];
|
|
2245
2362
|
} | {
|
|
2246
2363
|
key: "pull_request.converted_to_draft";
|
|
2247
2364
|
deliveryId: string;
|
|
@@ -2294,6 +2411,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2294
2411
|
login: string;
|
|
2295
2412
|
type: "Bot" | "Organization" | "User";
|
|
2296
2413
|
};
|
|
2414
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2415
|
+
actor: GitHubActor;
|
|
2416
|
+
/**
|
|
2417
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2418
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2419
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2420
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2421
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2422
|
+
* for events that write no text, such as a push or a label.
|
|
2423
|
+
*/
|
|
2424
|
+
mentions: string[];
|
|
2297
2425
|
} | {
|
|
2298
2426
|
key: "pull_request.synchronize";
|
|
2299
2427
|
deliveryId: string;
|
|
@@ -2346,6 +2474,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2346
2474
|
login: string;
|
|
2347
2475
|
type: "Bot" | "Organization" | "User";
|
|
2348
2476
|
};
|
|
2477
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2478
|
+
actor: GitHubActor;
|
|
2479
|
+
/**
|
|
2480
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2481
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2482
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2483
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2484
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2485
|
+
* for events that write no text, such as a push or a label.
|
|
2486
|
+
*/
|
|
2487
|
+
mentions: string[];
|
|
2349
2488
|
} | {
|
|
2350
2489
|
key: "pull_request.labeled";
|
|
2351
2490
|
deliveryId: string;
|
|
@@ -2402,6 +2541,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2402
2541
|
login: string;
|
|
2403
2542
|
type: "Bot" | "Organization" | "User";
|
|
2404
2543
|
};
|
|
2544
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2545
|
+
actor: GitHubActor;
|
|
2546
|
+
/**
|
|
2547
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2548
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2549
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2550
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2551
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2552
|
+
* for events that write no text, such as a push or a label.
|
|
2553
|
+
*/
|
|
2554
|
+
mentions: string[];
|
|
2405
2555
|
} | {
|
|
2406
2556
|
key: "pull_request.closed";
|
|
2407
2557
|
deliveryId: string;
|
|
@@ -2454,6 +2604,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2454
2604
|
login: string;
|
|
2455
2605
|
type: "Bot" | "Organization" | "User";
|
|
2456
2606
|
};
|
|
2607
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2608
|
+
actor: GitHubActor;
|
|
2609
|
+
/**
|
|
2610
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2611
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2612
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2613
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2614
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2615
|
+
* for events that write no text, such as a push or a label.
|
|
2616
|
+
*/
|
|
2617
|
+
mentions: string[];
|
|
2457
2618
|
} | {
|
|
2458
2619
|
key: "pull_request_review.submitted";
|
|
2459
2620
|
deliveryId: string;
|
|
@@ -2512,6 +2673,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2512
2673
|
login: string;
|
|
2513
2674
|
type: "Bot" | "Organization" | "User";
|
|
2514
2675
|
};
|
|
2676
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2677
|
+
actor: GitHubActor;
|
|
2678
|
+
/**
|
|
2679
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2680
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2681
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2682
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2683
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2684
|
+
* for events that write no text, such as a push or a label.
|
|
2685
|
+
*/
|
|
2686
|
+
mentions: string[];
|
|
2515
2687
|
} | {
|
|
2516
2688
|
key: "pull_request_review.edited";
|
|
2517
2689
|
deliveryId: string;
|
|
@@ -2570,6 +2742,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2570
2742
|
login: string;
|
|
2571
2743
|
type: "Bot" | "Organization" | "User";
|
|
2572
2744
|
};
|
|
2745
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2746
|
+
actor: GitHubActor;
|
|
2747
|
+
/**
|
|
2748
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2749
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2750
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2751
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2752
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2753
|
+
* for events that write no text, such as a push or a label.
|
|
2754
|
+
*/
|
|
2755
|
+
mentions: string[];
|
|
2573
2756
|
} | {
|
|
2574
2757
|
key: "pull_request_review.dismissed";
|
|
2575
2758
|
deliveryId: string;
|
|
@@ -2628,6 +2811,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2628
2811
|
login: string;
|
|
2629
2812
|
type: "Bot" | "Organization" | "User";
|
|
2630
2813
|
};
|
|
2814
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2815
|
+
actor: GitHubActor;
|
|
2816
|
+
/**
|
|
2817
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2818
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2819
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2820
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2821
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2822
|
+
* for events that write no text, such as a push or a label.
|
|
2823
|
+
*/
|
|
2824
|
+
mentions: string[];
|
|
2631
2825
|
} | {
|
|
2632
2826
|
key: "pull_request_review_comment.created";
|
|
2633
2827
|
deliveryId: string;
|
|
@@ -2685,6 +2879,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2685
2879
|
login: string;
|
|
2686
2880
|
type: "Bot" | "Organization" | "User";
|
|
2687
2881
|
};
|
|
2882
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2883
|
+
actor: GitHubActor;
|
|
2884
|
+
/**
|
|
2885
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2886
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2887
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2888
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2889
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2890
|
+
* for events that write no text, such as a push or a label.
|
|
2891
|
+
*/
|
|
2892
|
+
mentions: string[];
|
|
2688
2893
|
} | {
|
|
2689
2894
|
key: "pull_request_review_comment.edited";
|
|
2690
2895
|
deliveryId: string;
|
|
@@ -2742,6 +2947,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2742
2947
|
login: string;
|
|
2743
2948
|
type: "Bot" | "Organization" | "User";
|
|
2744
2949
|
};
|
|
2950
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
2951
|
+
actor: GitHubActor;
|
|
2952
|
+
/**
|
|
2953
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
2954
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
2955
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
2956
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
2957
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
2958
|
+
* for events that write no text, such as a push or a label.
|
|
2959
|
+
*/
|
|
2960
|
+
mentions: string[];
|
|
2745
2961
|
} | {
|
|
2746
2962
|
key: "push";
|
|
2747
2963
|
deliveryId: string;
|
|
@@ -2788,6 +3004,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2788
3004
|
login: string;
|
|
2789
3005
|
type: "Bot" | "Organization" | "User";
|
|
2790
3006
|
};
|
|
3007
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
3008
|
+
actor: GitHubActor;
|
|
3009
|
+
/**
|
|
3010
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
3011
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
3012
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
3013
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
3014
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
3015
|
+
* for events that write no text, such as a push or a label.
|
|
3016
|
+
*/
|
|
3017
|
+
mentions: string[];
|
|
2791
3018
|
} | {
|
|
2792
3019
|
key: "status";
|
|
2793
3020
|
deliveryId: string;
|
|
@@ -2835,6 +3062,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2835
3062
|
login: string;
|
|
2836
3063
|
type: "Bot" | "Organization" | "User";
|
|
2837
3064
|
};
|
|
3065
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
3066
|
+
actor: GitHubActor;
|
|
3067
|
+
/**
|
|
3068
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
3069
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
3070
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
3071
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
3072
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
3073
|
+
* for events that write no text, such as a push or a label.
|
|
3074
|
+
*/
|
|
3075
|
+
mentions: string[];
|
|
2838
3076
|
} | {
|
|
2839
3077
|
key: "check_run.completed";
|
|
2840
3078
|
deliveryId: string;
|
|
@@ -2886,6 +3124,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2886
3124
|
login: string;
|
|
2887
3125
|
type: "Bot" | "Organization" | "User";
|
|
2888
3126
|
};
|
|
3127
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
3128
|
+
actor: GitHubActor;
|
|
3129
|
+
/**
|
|
3130
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
3131
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
3132
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
3133
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
3134
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
3135
|
+
* for events that write no text, such as a push or a label.
|
|
3136
|
+
*/
|
|
3137
|
+
mentions: string[];
|
|
2889
3138
|
} | {
|
|
2890
3139
|
key: "check_suite.completed";
|
|
2891
3140
|
deliveryId: string;
|
|
@@ -2936,6 +3185,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2936
3185
|
login: string;
|
|
2937
3186
|
type: "Bot" | "Organization" | "User";
|
|
2938
3187
|
};
|
|
3188
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
3189
|
+
actor: GitHubActor;
|
|
3190
|
+
/**
|
|
3191
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
3192
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
3193
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
3194
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
3195
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
3196
|
+
* for events that write no text, such as a push or a label.
|
|
3197
|
+
*/
|
|
3198
|
+
mentions: string[];
|
|
2939
3199
|
} | {
|
|
2940
3200
|
key: "workflow_run.completed";
|
|
2941
3201
|
deliveryId: string;
|
|
@@ -2985,6 +3245,17 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2985
3245
|
login: string;
|
|
2986
3246
|
type: "Bot" | "Organization" | "User";
|
|
2987
3247
|
};
|
|
3248
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
3249
|
+
actor: GitHubActor;
|
|
3250
|
+
/**
|
|
3251
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
3252
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
3253
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
3254
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
3255
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
3256
|
+
* for events that write no text, such as a push or a label.
|
|
3257
|
+
*/
|
|
3258
|
+
mentions: string[];
|
|
2988
3259
|
}, {
|
|
2989
3260
|
key: "issues.opened";
|
|
2990
3261
|
deliveryId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/channels/github/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/channels/github/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,eAAO,MAAM,sBAAsB,aAA8B,CAAC;AAElE,gFAAgF;AAChF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;iBAW9B,CAAC;AAsFH,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
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,7 +162,28 @@ 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
|
+
"actor",
|
|
175
|
+
"mentions",
|
|
176
|
+
];
|
|
166
177
|
export const SUPPORTED_EVENT_KEYS = githubDispatchSchema.options.map((option) => option.shape.key.value);
|
|
178
|
+
/** A webhook's `sender`, as a channel's actor; its login is its name. */
|
|
179
|
+
function senderActor(sender) {
|
|
180
|
+
return {
|
|
181
|
+
provider: "github",
|
|
182
|
+
id: String(sender.id),
|
|
183
|
+
name: sender.login,
|
|
184
|
+
type: sender.type,
|
|
185
|
+
};
|
|
186
|
+
}
|
|
167
187
|
// Expose common routing metadata while preserving the original payload.
|
|
168
188
|
export const githubEventSchema = githubDispatchSchema.transform((event) => ({
|
|
169
189
|
...event,
|
|
@@ -186,5 +206,16 @@ export const githubEventSchema = githubDispatchSchema.transform((event) => ({
|
|
|
186
206
|
login: event.payload.sender.login,
|
|
187
207
|
type: event.payload.sender.type,
|
|
188
208
|
},
|
|
209
|
+
/** The `sender`, in the shape every channel's `actor` has. */
|
|
210
|
+
actor: senderActor(event.payload.sender),
|
|
211
|
+
/**
|
|
212
|
+
* The handles the text this event wrote mentions, such as `@octocat` or a
|
|
213
|
+
* text tag like `@openswe`: lowercased, each once, in order. The text is a
|
|
214
|
+
* new or edited comment's or review's body, or an opened or edited issue's
|
|
215
|
+
* or pull request's title and body; an edit lists only the handles it
|
|
216
|
+
* added. As on GitHub, code, quotes and HTML comments mention no one. Empty
|
|
217
|
+
* for events that write no text, such as a push or a label.
|
|
218
|
+
*/
|
|
219
|
+
mentions: eventMentions(event),
|
|
189
220
|
}));
|
|
190
221
|
//# 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;AAG5D,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,oBAAoB;IAC3B,UAAU,EAAE,oBAAoB;IAChC,OAAO,EAAE,CAAC,CAAC,WAAW,CAAC;QACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,UAAU,EAAE,CAAC,CAAC,WAAW,CAAC,E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WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;IACxC;;;;;;;OAOG;IACH,QAAQ,EAAE,aAAa,CAAC,KAAK,CAAC;CAC/B,CAAC,CAAC,CAAC"}
|
|
@@ -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
|