managed-deepagents 0.10.4-dev.4 → 0.10.4-dev.6
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 +5 -1
- package/dist/browser.d.ts +8 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +13 -2
- package/dist/browser.js.map +1 -1
- package/dist/channels/github/index.d.ts.map +1 -1
- package/dist/channels/github/index.js +10 -6
- package/dist/channels/github/index.js.map +1 -1
- package/dist/channels/github/schema.d.ts +183 -1
- package/dist/channels/github/schema.d.ts.map +1 -1
- package/dist/channels/github/schema.js +8 -0
- package/dist/channels/github/schema.js.map +1 -1
- package/dist/channels/github/types.d.ts +21 -0
- package/dist/channels/github/types.d.ts.map +1 -1
- package/dist/managed-composition.d.ts.map +1 -1
- package/dist/managed-composition.js +1 -0
- package/dist/managed-composition.js.map +1 -1
- package/dist/runtime/browser-langsmith.d.ts +13 -6
- package/dist/runtime/browser-langsmith.d.ts.map +1 -1
- package/dist/runtime/browser-langsmith.js +92 -90
- package/dist/runtime/browser-langsmith.js.map +1 -1
- package/dist/runtime/browser.d.ts.map +1 -1
- package/dist/runtime/browser.js +8 -7
- package/dist/runtime/browser.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -895,7 +895,11 @@ is application code; incoming webhook payloads are validated at runtime.
|
|
|
895
895
|
|
|
896
896
|
Signatures are verified against the raw bytes. Ping returns 200; other valid
|
|
897
897
|
receipts return 202. An unconfigured event or the App's own activity starts
|
|
898
|
-
nothing. The
|
|
898
|
+
nothing. The App's own activity is what the agent does with the App's token,
|
|
899
|
+
such as its comments, its pushes or a pull request it opened; set
|
|
900
|
+
`includeOwnEvents: true` to hand those to handlers too, with `event.fromApp`
|
|
901
|
+
set. A handler that answers comments or reviews then skips `event.fromApp`, or
|
|
902
|
+
the agent answers itself. The request awaits the configured callback and run creation before
|
|
899
903
|
acknowledgment (an endpoint's is asked after; see "Asking your service what to
|
|
900
904
|
start"); synchronous and async callbacks are supported. A handler returns
|
|
901
905
|
what `agent.invoke` takes: a nonblank string (one user message), a message such
|
package/dist/browser.d.ts
CHANGED
|
@@ -27,12 +27,20 @@ export interface BrowserOptions {
|
|
|
27
27
|
scope?: BrowserScope;
|
|
28
28
|
/** Stop a browser after this long idle (60 to 86,400). Defaults to 600. */
|
|
29
29
|
idleTtlSeconds?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The only hosts the browser may reach, as `defineSandbox`'s `accessControl`
|
|
32
|
+
* takes them, such as `["vendor.com", "*.vendor.com"]`. The browser's own
|
|
33
|
+
* sandbox is held to them too, so recording needs `pypi.org` and
|
|
34
|
+
* `files.pythonhosted.org` for its packages. Defaults to any host.
|
|
35
|
+
*/
|
|
36
|
+
allowList?: readonly string[];
|
|
30
37
|
}
|
|
31
38
|
/** The object exported from `browser.ts`. */
|
|
32
39
|
export interface BrowserDefinition {
|
|
33
40
|
readonly kind: "browser";
|
|
34
41
|
readonly scope: BrowserScope;
|
|
35
42
|
readonly idleTtlSeconds: number;
|
|
43
|
+
readonly allowList?: readonly string[];
|
|
36
44
|
}
|
|
37
45
|
/** Give the agent a LangSmith browser. */
|
|
38
46
|
export declare function defineBrowser(options?: BrowserOptions): BrowserDefinition;
|
package/dist/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE7C,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE7C,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B;AAED,6CAA6C;AAC7C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED,0CAA0C;AAC1C,wBAAgB,aAAa,CAAC,OAAO,GAAE,cAAmB,GAAG,iBAAiB,CA8B7E"}
|
package/dist/browser.js
CHANGED
|
@@ -19,7 +19,7 @@ const MAX_IDLE_TTL_S = 86_400;
|
|
|
19
19
|
export const BROWSER_TOOL_PREFIX = "browser_";
|
|
20
20
|
/** Give the agent a LangSmith browser. */
|
|
21
21
|
export function defineBrowser(options = {}) {
|
|
22
|
-
const { scope = "thread", idleTtlSeconds = 600 } = options;
|
|
22
|
+
const { scope = "thread", idleTtlSeconds = 600, allowList } = options;
|
|
23
23
|
if (scope !== "thread" && scope !== "user") {
|
|
24
24
|
throw new TypeError(`browser scope must be "thread" or "user", not ${JSON.stringify(scope)}`);
|
|
25
25
|
}
|
|
@@ -28,6 +28,17 @@ export function defineBrowser(options = {}) {
|
|
|
28
28
|
idleTtlSeconds > MAX_IDLE_TTL_S) {
|
|
29
29
|
throw new TypeError(`idleTtlSeconds must be an integer between ${MIN_IDLE_TTL_S} and ${MAX_IDLE_TTL_S}`);
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
if (allowList !== undefined &&
|
|
32
|
+
(!Array.isArray(allowList) ||
|
|
33
|
+
allowList.length === 0 ||
|
|
34
|
+
!allowList.every((host) => typeof host === "string" && host !== ""))) {
|
|
35
|
+
throw new TypeError("allowList must be a non-empty list of hosts");
|
|
36
|
+
}
|
|
37
|
+
return Object.freeze({
|
|
38
|
+
kind: "browser",
|
|
39
|
+
scope,
|
|
40
|
+
idleTtlSeconds,
|
|
41
|
+
...(allowList && { allowList: Object.freeze([...allowList]) }),
|
|
42
|
+
});
|
|
32
43
|
}
|
|
33
44
|
//# sourceMappingURL=browser.js.map
|
package/dist/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,cAAc,GAAG,EAAE,CAAC;AAC1B,MAAM,cAAc,GAAG,MAAM,CAAC;AAE9B,0DAA0D;AAC1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,cAAc,GAAG,EAAE,CAAC;AAC1B,MAAM,cAAc,GAAG,MAAM,CAAC;AAE9B,0DAA0D;AAC1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAgC9C,0CAA0C;AAC1C,MAAM,UAAU,aAAa,CAAC,OAAO,GAAmB,EAAE;IACxD,MAAM,EAAE,KAAK,GAAG,QAAQ,EAAE,cAAc,GAAG,GAAG,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IACtE,IAAI,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,MAAM,EAAE,CAAC;QAC3C,MAAM,IAAI,SAAS,CACjB,i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AAE,oBAAyB,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/channels/github/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,WAAW,EAKjB,MAAM,kBAAkB,CAAC;AAiC1B,OAAO,KAAK,EACV,oBAAoB,EAIrB,MAAM,YAAY,CAAC;AAGpB,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAWpB;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,WAAW,CAmD7E;AA2CD,qDAAqD;AACrD,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C"}
|
|
@@ -29,7 +29,7 @@ export function githubChannel(options = {}) {
|
|
|
29
29
|
// mda deploy sets up the GitHub App from this.
|
|
30
30
|
providerConfig: appSetup,
|
|
31
31
|
verify: verifyGitHubRequest,
|
|
32
|
-
parse: (context) => parseGitHubRequest(context, handlers, channelName(channel), appSetup.repositories),
|
|
32
|
+
parse: (context) => parseGitHubRequest(context, handlers, channelName(channel), appSetup.repositories, options.includeOwnEvents ?? false),
|
|
33
33
|
input: (message, rawEvent) => handlerInput(handlers, rawEvent, {
|
|
34
34
|
id: message.threadId,
|
|
35
35
|
channel: { name: channelName(channel) },
|
|
@@ -105,7 +105,7 @@ async function verifyGitHubRequest({ request, rawBody, }) {
|
|
|
105
105
|
return false;
|
|
106
106
|
return verifyHmacSha256(secret, rawBody, signature.slice(7));
|
|
107
107
|
}
|
|
108
|
-
async function parseGitHubRequest({ request }, handlers, channelName, repositories) {
|
|
108
|
+
async function parseGitHubRequest({ request }, handlers, channelName, repositories, includeOwnEvents) {
|
|
109
109
|
const envelope = githubReceiptSchema.parse({
|
|
110
110
|
event: request.headers.get("x-github-event"),
|
|
111
111
|
deliveryId: request.headers.get("x-github-delivery"),
|
|
@@ -120,18 +120,22 @@ async function parseGitHubRequest({ request }, handlers, channelName, repositori
|
|
|
120
120
|
setLogAttributes({ provider_event_type: key });
|
|
121
121
|
if (!Object.hasOwn(handlers, key) || handlers[key] === undefined)
|
|
122
122
|
return { type: "ignore", response };
|
|
123
|
-
|
|
123
|
+
let parsedEvent = githubEventSchema.parse({ key, payload, deliveryId });
|
|
124
124
|
// Events from repositories the channel is not limited to start nothing.
|
|
125
125
|
if (repositories &&
|
|
126
126
|
!repositories.includes(parsedEvent.repository.fullName.toLowerCase()))
|
|
127
127
|
return { type: "ignore", response };
|
|
128
|
-
//
|
|
128
|
+
// The App's own activity starts nothing unless the channel asks for it, so
|
|
129
|
+
// the agent doesn't trigger itself.
|
|
129
130
|
const configuredBotId = (await gitHubAppValue("GH_APP_BOT_ID", "bot-id")) ?? "";
|
|
130
131
|
if (!/^[1-9][0-9]*$/.test(configuredBotId))
|
|
131
132
|
throw new TypeError("GitHub App bot ID is unavailable; run `mda deploy` to store it or set GH_APP_BOT_ID");
|
|
132
133
|
const botId = githubIdentifierSchema.parse(Number(configuredBotId));
|
|
133
|
-
if (parsedEvent.sender.id === botId)
|
|
134
|
-
|
|
134
|
+
if (parsedEvent.sender.id === botId) {
|
|
135
|
+
if (!includeOwnEvents)
|
|
136
|
+
return { type: "ignore", response };
|
|
137
|
+
parsedEvent = { ...parsedEvent, fromApp: true };
|
|
138
|
+
}
|
|
135
139
|
// Preserve the original event even if a callback modifies its argument.
|
|
136
140
|
const snapshot = eventSnapshot(parsedEvent, "GitHub");
|
|
137
141
|
// One thread per issue or pull request, so the agent keeps the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/channels/github/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,WAAW,EACX,oBAAoB,GAMrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OA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AAC,IAAI,CAAC,UAAU,CAAC;QACnC,aAAa,CAAC,MAAM,CAAC,CACtB,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,EAClB,KAAK,EACL,UAAU,EACV,OAAO,GAC6B;IACpC,MAAM,OAAO,GAAoC;QAC/C,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;QAClC,UAAU,EAAE,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC;KAC7C,CAAC;IACF,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS;QAC9B,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAExD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI;QACzB,CAAC,YAAY,EAAE,IAAI,CAAC;QACpB,CAAC,OAAO,EAAE,QAAQ,CAAC;QACnB,CAAC,cAAc,EAAE,QAAQ,CAAC;KAClB,EAAE,CAAC;QACX,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,OAAO,EAAE,KAAK,QAAQ;YAAE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IAChD,CAAC;IACD,MAAM,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACzD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -942,7 +942,7 @@ export declare const githubDispatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
942
942
|
* ID and payload: what a handler gets that the payload doesn't say as plainly.
|
|
943
943
|
* The one list of them; `GitHubEndpointRequest` is typed by it.
|
|
944
944
|
*/
|
|
945
|
-
export declare const ENDPOINT_EVENT_FIELDS: readonly ["action", "repository", "sender", "actor", "mentions"];
|
|
945
|
+
export declare const ENDPOINT_EVENT_FIELDS: readonly ["action", "repository", "sender", "actor", "mentions", "fromApp"];
|
|
946
946
|
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" | "merge_group.checks_requested" | "merge_group.destroyed" | "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")[];
|
|
947
947
|
export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
948
948
|
key: z.ZodLiteral<"issues.opened">;
|
|
@@ -1922,6 +1922,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1922
1922
|
* for events that write no text, such as a push or a label.
|
|
1923
1923
|
*/
|
|
1924
1924
|
mentions: string[];
|
|
1925
|
+
/**
|
|
1926
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
1927
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
1928
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
1929
|
+
* skips them, so the agent doesn't answer itself.
|
|
1930
|
+
*/
|
|
1931
|
+
fromApp: boolean;
|
|
1925
1932
|
} | {
|
|
1926
1933
|
key: "issues.edited";
|
|
1927
1934
|
deliveryId: string;
|
|
@@ -1983,6 +1990,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1983
1990
|
* for events that write no text, such as a push or a label.
|
|
1984
1991
|
*/
|
|
1985
1992
|
mentions: string[];
|
|
1993
|
+
/**
|
|
1994
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
1995
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
1996
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
1997
|
+
* skips them, so the agent doesn't answer itself.
|
|
1998
|
+
*/
|
|
1999
|
+
fromApp: boolean;
|
|
1986
2000
|
} | {
|
|
1987
2001
|
key: "issues.reopened";
|
|
1988
2002
|
deliveryId: string;
|
|
@@ -2044,6 +2058,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2044
2058
|
* for events that write no text, such as a push or a label.
|
|
2045
2059
|
*/
|
|
2046
2060
|
mentions: string[];
|
|
2061
|
+
/**
|
|
2062
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2063
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2064
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2065
|
+
* skips them, so the agent doesn't answer itself.
|
|
2066
|
+
*/
|
|
2067
|
+
fromApp: boolean;
|
|
2047
2068
|
} | {
|
|
2048
2069
|
key: "issues.labeled";
|
|
2049
2070
|
deliveryId: string;
|
|
@@ -2109,6 +2130,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2109
2130
|
* for events that write no text, such as a push or a label.
|
|
2110
2131
|
*/
|
|
2111
2132
|
mentions: string[];
|
|
2133
|
+
/**
|
|
2134
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2135
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2136
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2137
|
+
* skips them, so the agent doesn't answer itself.
|
|
2138
|
+
*/
|
|
2139
|
+
fromApp: boolean;
|
|
2112
2140
|
} | {
|
|
2113
2141
|
key: "issue_comment.created";
|
|
2114
2142
|
deliveryId: string;
|
|
@@ -2175,6 +2203,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2175
2203
|
* for events that write no text, such as a push or a label.
|
|
2176
2204
|
*/
|
|
2177
2205
|
mentions: string[];
|
|
2206
|
+
/**
|
|
2207
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2208
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2209
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2210
|
+
* skips them, so the agent doesn't answer itself.
|
|
2211
|
+
*/
|
|
2212
|
+
fromApp: boolean;
|
|
2178
2213
|
} | {
|
|
2179
2214
|
key: "issue_comment.edited";
|
|
2180
2215
|
deliveryId: string;
|
|
@@ -2241,6 +2276,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2241
2276
|
* for events that write no text, such as a push or a label.
|
|
2242
2277
|
*/
|
|
2243
2278
|
mentions: string[];
|
|
2279
|
+
/**
|
|
2280
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2281
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2282
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2283
|
+
* skips them, so the agent doesn't answer itself.
|
|
2284
|
+
*/
|
|
2285
|
+
fromApp: boolean;
|
|
2244
2286
|
} | {
|
|
2245
2287
|
key: "pull_request.opened";
|
|
2246
2288
|
deliveryId: string;
|
|
@@ -2304,6 +2346,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2304
2346
|
* for events that write no text, such as a push or a label.
|
|
2305
2347
|
*/
|
|
2306
2348
|
mentions: string[];
|
|
2349
|
+
/**
|
|
2350
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2351
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2352
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2353
|
+
* skips them, so the agent doesn't answer itself.
|
|
2354
|
+
*/
|
|
2355
|
+
fromApp: boolean;
|
|
2307
2356
|
} | {
|
|
2308
2357
|
key: "pull_request.edited";
|
|
2309
2358
|
deliveryId: string;
|
|
@@ -2367,6 +2416,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2367
2416
|
* for events that write no text, such as a push or a label.
|
|
2368
2417
|
*/
|
|
2369
2418
|
mentions: string[];
|
|
2419
|
+
/**
|
|
2420
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2421
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2422
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2423
|
+
* skips them, so the agent doesn't answer itself.
|
|
2424
|
+
*/
|
|
2425
|
+
fromApp: boolean;
|
|
2370
2426
|
} | {
|
|
2371
2427
|
key: "pull_request.reopened";
|
|
2372
2428
|
deliveryId: string;
|
|
@@ -2430,6 +2486,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2430
2486
|
* for events that write no text, such as a push or a label.
|
|
2431
2487
|
*/
|
|
2432
2488
|
mentions: string[];
|
|
2489
|
+
/**
|
|
2490
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2491
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2492
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2493
|
+
* skips them, so the agent doesn't answer itself.
|
|
2494
|
+
*/
|
|
2495
|
+
fromApp: boolean;
|
|
2433
2496
|
} | {
|
|
2434
2497
|
key: "pull_request.ready_for_review";
|
|
2435
2498
|
deliveryId: string;
|
|
@@ -2493,6 +2556,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2493
2556
|
* for events that write no text, such as a push or a label.
|
|
2494
2557
|
*/
|
|
2495
2558
|
mentions: string[];
|
|
2559
|
+
/**
|
|
2560
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2561
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2562
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2563
|
+
* skips them, so the agent doesn't answer itself.
|
|
2564
|
+
*/
|
|
2565
|
+
fromApp: boolean;
|
|
2496
2566
|
} | {
|
|
2497
2567
|
key: "pull_request.converted_to_draft";
|
|
2498
2568
|
deliveryId: string;
|
|
@@ -2556,6 +2626,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2556
2626
|
* for events that write no text, such as a push or a label.
|
|
2557
2627
|
*/
|
|
2558
2628
|
mentions: string[];
|
|
2629
|
+
/**
|
|
2630
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2631
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2632
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2633
|
+
* skips them, so the agent doesn't answer itself.
|
|
2634
|
+
*/
|
|
2635
|
+
fromApp: boolean;
|
|
2559
2636
|
} | {
|
|
2560
2637
|
key: "pull_request.synchronize";
|
|
2561
2638
|
deliveryId: string;
|
|
@@ -2619,6 +2696,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2619
2696
|
* for events that write no text, such as a push or a label.
|
|
2620
2697
|
*/
|
|
2621
2698
|
mentions: string[];
|
|
2699
|
+
/**
|
|
2700
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2701
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2702
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2703
|
+
* skips them, so the agent doesn't answer itself.
|
|
2704
|
+
*/
|
|
2705
|
+
fromApp: boolean;
|
|
2622
2706
|
} | {
|
|
2623
2707
|
key: "pull_request.labeled";
|
|
2624
2708
|
deliveryId: string;
|
|
@@ -2686,6 +2770,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2686
2770
|
* for events that write no text, such as a push or a label.
|
|
2687
2771
|
*/
|
|
2688
2772
|
mentions: string[];
|
|
2773
|
+
/**
|
|
2774
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2775
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2776
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2777
|
+
* skips them, so the agent doesn't answer itself.
|
|
2778
|
+
*/
|
|
2779
|
+
fromApp: boolean;
|
|
2689
2780
|
} | {
|
|
2690
2781
|
key: "pull_request.closed";
|
|
2691
2782
|
deliveryId: string;
|
|
@@ -2749,6 +2840,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2749
2840
|
* for events that write no text, such as a push or a label.
|
|
2750
2841
|
*/
|
|
2751
2842
|
mentions: string[];
|
|
2843
|
+
/**
|
|
2844
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2845
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2846
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2847
|
+
* skips them, so the agent doesn't answer itself.
|
|
2848
|
+
*/
|
|
2849
|
+
fromApp: boolean;
|
|
2752
2850
|
} | {
|
|
2753
2851
|
key: "pull_request_review.submitted";
|
|
2754
2852
|
deliveryId: string;
|
|
@@ -2818,6 +2916,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2818
2916
|
* for events that write no text, such as a push or a label.
|
|
2819
2917
|
*/
|
|
2820
2918
|
mentions: string[];
|
|
2919
|
+
/**
|
|
2920
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2921
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2922
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2923
|
+
* skips them, so the agent doesn't answer itself.
|
|
2924
|
+
*/
|
|
2925
|
+
fromApp: boolean;
|
|
2821
2926
|
} | {
|
|
2822
2927
|
key: "pull_request_review.edited";
|
|
2823
2928
|
deliveryId: string;
|
|
@@ -2887,6 +2992,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2887
2992
|
* for events that write no text, such as a push or a label.
|
|
2888
2993
|
*/
|
|
2889
2994
|
mentions: string[];
|
|
2995
|
+
/**
|
|
2996
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
2997
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
2998
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
2999
|
+
* skips them, so the agent doesn't answer itself.
|
|
3000
|
+
*/
|
|
3001
|
+
fromApp: boolean;
|
|
2890
3002
|
} | {
|
|
2891
3003
|
key: "pull_request_review.dismissed";
|
|
2892
3004
|
deliveryId: string;
|
|
@@ -2956,6 +3068,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2956
3068
|
* for events that write no text, such as a push or a label.
|
|
2957
3069
|
*/
|
|
2958
3070
|
mentions: string[];
|
|
3071
|
+
/**
|
|
3072
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
3073
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
3074
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
3075
|
+
* skips them, so the agent doesn't answer itself.
|
|
3076
|
+
*/
|
|
3077
|
+
fromApp: boolean;
|
|
2959
3078
|
} | {
|
|
2960
3079
|
key: "pull_request_review_comment.created";
|
|
2961
3080
|
deliveryId: string;
|
|
@@ -3024,6 +3143,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3024
3143
|
* for events that write no text, such as a push or a label.
|
|
3025
3144
|
*/
|
|
3026
3145
|
mentions: string[];
|
|
3146
|
+
/**
|
|
3147
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
3148
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
3149
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
3150
|
+
* skips them, so the agent doesn't answer itself.
|
|
3151
|
+
*/
|
|
3152
|
+
fromApp: boolean;
|
|
3027
3153
|
} | {
|
|
3028
3154
|
key: "pull_request_review_comment.edited";
|
|
3029
3155
|
deliveryId: string;
|
|
@@ -3092,6 +3218,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3092
3218
|
* for events that write no text, such as a push or a label.
|
|
3093
3219
|
*/
|
|
3094
3220
|
mentions: string[];
|
|
3221
|
+
/**
|
|
3222
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
3223
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
3224
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
3225
|
+
* skips them, so the agent doesn't answer itself.
|
|
3226
|
+
*/
|
|
3227
|
+
fromApp: boolean;
|
|
3095
3228
|
} | {
|
|
3096
3229
|
key: "push";
|
|
3097
3230
|
deliveryId: string;
|
|
@@ -3149,6 +3282,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3149
3282
|
* for events that write no text, such as a push or a label.
|
|
3150
3283
|
*/
|
|
3151
3284
|
mentions: string[];
|
|
3285
|
+
/**
|
|
3286
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
3287
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
3288
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
3289
|
+
* skips them, so the agent doesn't answer itself.
|
|
3290
|
+
*/
|
|
3291
|
+
fromApp: boolean;
|
|
3152
3292
|
} | {
|
|
3153
3293
|
key: "status";
|
|
3154
3294
|
deliveryId: string;
|
|
@@ -3207,6 +3347,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3207
3347
|
* for events that write no text, such as a push or a label.
|
|
3208
3348
|
*/
|
|
3209
3349
|
mentions: string[];
|
|
3350
|
+
/**
|
|
3351
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
3352
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
3353
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
3354
|
+
* skips them, so the agent doesn't answer itself.
|
|
3355
|
+
*/
|
|
3356
|
+
fromApp: boolean;
|
|
3210
3357
|
} | {
|
|
3211
3358
|
key: "check_run.completed";
|
|
3212
3359
|
deliveryId: string;
|
|
@@ -3269,6 +3416,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3269
3416
|
* for events that write no text, such as a push or a label.
|
|
3270
3417
|
*/
|
|
3271
3418
|
mentions: string[];
|
|
3419
|
+
/**
|
|
3420
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
3421
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
3422
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
3423
|
+
* skips them, so the agent doesn't answer itself.
|
|
3424
|
+
*/
|
|
3425
|
+
fromApp: boolean;
|
|
3272
3426
|
} | {
|
|
3273
3427
|
key: "check_suite.completed";
|
|
3274
3428
|
deliveryId: string;
|
|
@@ -3330,6 +3484,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3330
3484
|
* for events that write no text, such as a push or a label.
|
|
3331
3485
|
*/
|
|
3332
3486
|
mentions: string[];
|
|
3487
|
+
/**
|
|
3488
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
3489
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
3490
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
3491
|
+
* skips them, so the agent doesn't answer itself.
|
|
3492
|
+
*/
|
|
3493
|
+
fromApp: boolean;
|
|
3333
3494
|
} | {
|
|
3334
3495
|
key: "workflow_run.completed";
|
|
3335
3496
|
deliveryId: string;
|
|
@@ -3390,6 +3551,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3390
3551
|
* for events that write no text, such as a push or a label.
|
|
3391
3552
|
*/
|
|
3392
3553
|
mentions: string[];
|
|
3554
|
+
/**
|
|
3555
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
3556
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
3557
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
3558
|
+
* skips them, so the agent doesn't answer itself.
|
|
3559
|
+
*/
|
|
3560
|
+
fromApp: boolean;
|
|
3393
3561
|
} | {
|
|
3394
3562
|
key: "merge_group.checks_requested";
|
|
3395
3563
|
deliveryId: string;
|
|
@@ -3451,6 +3619,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3451
3619
|
* for events that write no text, such as a push or a label.
|
|
3452
3620
|
*/
|
|
3453
3621
|
mentions: string[];
|
|
3622
|
+
/**
|
|
3623
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
3624
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
3625
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
3626
|
+
* skips them, so the agent doesn't answer itself.
|
|
3627
|
+
*/
|
|
3628
|
+
fromApp: boolean;
|
|
3454
3629
|
} | {
|
|
3455
3630
|
key: "merge_group.destroyed";
|
|
3456
3631
|
deliveryId: string;
|
|
@@ -3513,6 +3688,13 @@ export declare const githubEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3513
3688
|
* for events that write no text, such as a push or a label.
|
|
3514
3689
|
*/
|
|
3515
3690
|
mentions: string[];
|
|
3691
|
+
/**
|
|
3692
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
3693
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
3694
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
3695
|
+
* skips them, so the agent doesn't answer itself.
|
|
3696
|
+
*/
|
|
3697
|
+
fromApp: boolean;
|
|
3516
3698
|
}, {
|
|
3517
3699
|
key: "issues.opened";
|
|
3518
3700
|
deliveryId: string;
|
|
@@ -1 +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
|
190
190
|
"sender",
|
|
191
191
|
"actor",
|
|
192
192
|
"mentions",
|
|
193
|
+
"fromApp",
|
|
193
194
|
];
|
|
194
195
|
export const SUPPORTED_EVENT_KEYS = githubDispatchSchema.options.map((option) => option.shape.key.value);
|
|
195
196
|
/** A webhook's `sender`, as a channel's actor; its login is its name. */
|
|
@@ -234,5 +235,12 @@ export const githubEventSchema = githubDispatchSchema.transform((event) => ({
|
|
|
234
235
|
* for events that write no text, such as a push or a label.
|
|
235
236
|
*/
|
|
236
237
|
mentions: eventMentions(event),
|
|
238
|
+
/**
|
|
239
|
+
* Whether the channel's own App caused the event: its comment, its push, a
|
|
240
|
+
* pull request it opened. Such events reach handlers only when the channel
|
|
241
|
+
* is created with `includeOwnEvents: true`; a handler that answers comments
|
|
242
|
+
* skips them, so the agent doesn't answer itself.
|
|
243
|
+
*/
|
|
244
|
+
fromApp: false,
|
|
237
245
|
}));
|
|
238
246
|
//# sourceMappingURL=schema.js.map
|