@blogic-cz/agent-tools 0.15.14 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/audit-tool/index.d.ts +3 -0
- package/dist/audit-tool/index.d.ts.map +1 -0
- package/dist/az-tool/build.d.ts +47 -0
- package/dist/az-tool/build.d.ts.map +1 -0
- package/dist/az-tool/config.d.ts +13 -0
- package/dist/az-tool/config.d.ts.map +1 -0
- package/dist/az-tool/errors.d.ts +43 -0
- package/dist/az-tool/errors.d.ts.map +1 -0
- package/dist/az-tool/extract-option-value.d.ts +2 -0
- package/dist/az-tool/extract-option-value.d.ts.map +1 -0
- package/dist/az-tool/index.d.ts +3 -0
- package/dist/az-tool/index.d.ts.map +1 -0
- package/dist/az-tool/security.d.ts +4 -0
- package/dist/az-tool/security.d.ts.map +1 -0
- package/dist/az-tool/service.d.ts +15 -0
- package/dist/az-tool/service.d.ts.map +1 -0
- package/dist/az-tool/transformers.d.ts +10 -0
- package/dist/az-tool/transformers.d.ts.map +1 -0
- package/dist/az-tool/types.d.ts +64 -0
- package/dist/az-tool/types.d.ts.map +1 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/loader.d.ts +22 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/types.d.ts +189 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/credential-guard/claude-hook.d.ts +13 -0
- package/dist/credential-guard/claude-hook.d.ts.map +1 -0
- package/dist/credential-guard/index.d.ts +77 -0
- package/dist/credential-guard/index.d.ts.map +1 -0
- package/dist/db-tool/config-service.d.ts +25 -0
- package/dist/db-tool/config-service.d.ts.map +1 -0
- package/dist/db-tool/errors.d.ts +41 -0
- package/dist/db-tool/errors.d.ts.map +1 -0
- package/dist/db-tool/index.d.ts +3 -0
- package/dist/db-tool/index.d.ts.map +1 -0
- package/dist/db-tool/schema.d.ts +21 -0
- package/dist/db-tool/schema.d.ts.map +1 -0
- package/dist/db-tool/security.d.ts +23 -0
- package/dist/db-tool/security.d.ts.map +1 -0
- package/dist/db-tool/service.d.ts +18 -0
- package/dist/db-tool/service.d.ts.map +1 -0
- package/dist/db-tool/sql-client.d.ts +24 -0
- package/dist/db-tool/sql-client.d.ts.map +1 -0
- package/dist/db-tool/transformers.d.ts +10 -0
- package/dist/db-tool/transformers.d.ts.map +1 -0
- package/dist/db-tool/types.d.ts +37 -0
- package/dist/db-tool/types.d.ts.map +1 -0
- package/dist/gh-tool/branch.d.ts +18 -0
- package/dist/gh-tool/branch.d.ts.map +1 -0
- package/dist/gh-tool/config.d.ts +7 -0
- package/dist/gh-tool/config.d.ts.map +1 -0
- package/dist/gh-tool/errors.d.ts +51 -0
- package/dist/gh-tool/errors.d.ts.map +1 -0
- package/dist/gh-tool/index.d.ts +3 -0
- package/dist/gh-tool/index.d.ts.map +1 -0
- package/dist/gh-tool/issue/commands.d.ts +68 -0
- package/dist/gh-tool/issue/commands.d.ts.map +1 -0
- package/dist/gh-tool/issue/core.d.ts +82 -0
- package/dist/gh-tool/issue/core.d.ts.map +1 -0
- package/dist/gh-tool/issue/index.d.ts +3 -0
- package/dist/gh-tool/issue/index.d.ts.map +1 -0
- package/dist/gh-tool/issue/triage.d.ts +89 -0
- package/dist/gh-tool/issue/triage.d.ts.map +1 -0
- package/dist/gh-tool/pr/commands.d.ts +384 -0
- package/dist/gh-tool/pr/commands.d.ts.map +1 -0
- package/dist/gh-tool/pr/core.d.ts +236 -0
- package/dist/gh-tool/pr/core.d.ts.map +1 -0
- package/dist/gh-tool/pr/helpers.d.ts +27 -0
- package/dist/gh-tool/pr/helpers.d.ts.map +1 -0
- package/dist/gh-tool/pr/index.d.ts +2 -0
- package/dist/gh-tool/pr/index.d.ts.map +1 -0
- package/dist/gh-tool/pr/review.d.ts +90 -0
- package/dist/gh-tool/pr/review.d.ts.map +1 -0
- package/dist/gh-tool/release.d.ts +52 -0
- package/dist/gh-tool/release.d.ts.map +1 -0
- package/dist/gh-tool/repo.d.ts +21 -0
- package/dist/gh-tool/repo.d.ts.map +1 -0
- package/dist/gh-tool/service.d.ts +25 -0
- package/dist/gh-tool/service.d.ts.map +1 -0
- package/dist/gh-tool/text-input.d.ts +22 -0
- package/dist/gh-tool/text-input.d.ts.map +1 -0
- package/dist/gh-tool/types.d.ts +271 -0
- package/dist/gh-tool/types.d.ts.map +1 -0
- package/dist/gh-tool/workflow.d.ts +157 -0
- package/dist/gh-tool/workflow.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/k8s-tool/errors.d.ts +43 -0
- package/dist/k8s-tool/errors.d.ts.map +1 -0
- package/dist/k8s-tool/index.d.ts +3 -0
- package/dist/k8s-tool/index.d.ts.map +1 -0
- package/dist/k8s-tool/profile.d.ts +3 -0
- package/dist/k8s-tool/profile.d.ts.map +1 -0
- package/dist/k8s-tool/security.d.ts +14 -0
- package/dist/k8s-tool/security.d.ts.map +1 -0
- package/dist/k8s-tool/service.d.ts +16 -0
- package/dist/k8s-tool/service.d.ts.map +1 -0
- package/dist/k8s-tool/transformers.d.ts +23 -0
- package/dist/k8s-tool/transformers.d.ts.map +1 -0
- package/dist/k8s-tool/types.d.ts +13 -0
- package/dist/k8s-tool/types.d.ts.map +1 -0
- package/dist/logs-tool/errors.d.ts +40 -0
- package/dist/logs-tool/errors.d.ts.map +1 -0
- package/dist/logs-tool/index.d.ts +21 -0
- package/dist/logs-tool/index.d.ts.map +1 -0
- package/dist/logs-tool/service.d.ts +23 -0
- package/dist/logs-tool/service.d.ts.map +1 -0
- package/dist/logs-tool/transformers.d.ts +2 -0
- package/dist/logs-tool/transformers.d.ts.map +1 -0
- package/dist/logs-tool/types.d.ts +39 -0
- package/dist/logs-tool/types.d.ts.map +1 -0
- package/dist/observability-tool/errors.d.ts +8 -0
- package/dist/observability-tool/errors.d.ts.map +1 -0
- package/dist/observability-tool/index.d.ts +3 -0
- package/dist/observability-tool/index.d.ts.map +1 -0
- package/dist/observability-tool/logs.d.ts +22 -0
- package/dist/observability-tool/logs.d.ts.map +1 -0
- package/dist/observability-tool/metrics.d.ts +3 -0
- package/dist/observability-tool/metrics.d.ts.map +1 -0
- package/dist/observability-tool/shared.d.ts +18 -0
- package/dist/observability-tool/shared.d.ts.map +1 -0
- package/dist/observability-tool/trace.d.ts +3 -0
- package/dist/observability-tool/trace.d.ts.map +1 -0
- package/dist/observability-tool/types.d.ts +171 -0
- package/dist/observability-tool/types.d.ts.map +1 -0
- package/dist/session-tool/claude-code.d.ts +46 -0
- package/dist/session-tool/claude-code.d.ts.map +1 -0
- package/dist/session-tool/codex.d.ts +44 -0
- package/dist/session-tool/codex.d.ts.map +1 -0
- package/dist/session-tool/config.d.ts +29 -0
- package/dist/session-tool/config.d.ts.map +1 -0
- package/dist/session-tool/errors.d.ts +27 -0
- package/dist/session-tool/errors.d.ts.map +1 -0
- package/dist/session-tool/index.d.ts +13 -0
- package/dist/session-tool/index.d.ts.map +1 -0
- package/dist/session-tool/pi.d.ts +40 -0
- package/dist/session-tool/pi.d.ts.map +1 -0
- package/dist/session-tool/service.d.ts +18 -0
- package/dist/session-tool/service.d.ts.map +1 -0
- package/dist/session-tool/summaries.d.ts +5 -0
- package/dist/session-tool/summaries.d.ts.map +1 -0
- package/dist/session-tool/types.d.ts +38 -0
- package/dist/session-tool/types.d.ts.map +1 -0
- package/dist/shared/audit.d.ts +40 -0
- package/dist/shared/audit.d.ts.map +1 -0
- package/dist/shared/binary-preflight.d.ts +27 -0
- package/dist/shared/binary-preflight.d.ts.map +1 -0
- package/dist/shared/bun.d.ts +5 -0
- package/dist/shared/bun.d.ts.map +1 -0
- package/dist/shared/cli.d.ts +18 -0
- package/dist/shared/cli.d.ts.map +1 -0
- package/dist/shared/env-template.d.ts +9 -0
- package/dist/shared/env-template.d.ts.map +1 -0
- package/dist/shared/error-renderer.d.ts +4 -0
- package/dist/shared/error-renderer.d.ts.map +1 -0
- package/dist/shared/exec.d.ts +23 -0
- package/dist/shared/exec.d.ts.map +1 -0
- package/dist/shared/format.d.ts +7 -0
- package/dist/shared/format.d.ts.map +1 -0
- package/dist/shared/index.d.ts +12 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/k8s-probe.d.ts +11 -0
- package/dist/shared/k8s-probe.d.ts.map +1 -0
- package/dist/shared/log-transform.d.ts +2 -0
- package/dist/shared/log-transform.d.ts.map +1 -0
- package/dist/shared/path.d.ts +2 -0
- package/dist/shared/path.d.ts.map +1 -0
- package/dist/shared/prerequisites/config.d.ts +6 -0
- package/dist/shared/prerequisites/config.d.ts.map +1 -0
- package/dist/shared/prerequisites/driver-commands.d.ts +19 -0
- package/dist/shared/prerequisites/driver-commands.d.ts.map +1 -0
- package/dist/shared/prerequisites/errors.d.ts +10 -0
- package/dist/shared/prerequisites/errors.d.ts.map +1 -0
- package/dist/shared/prerequisites/guardian-entry.d.ts +2 -0
- package/dist/shared/prerequisites/guardian-entry.d.ts.map +1 -0
- package/dist/shared/prerequisites/guardian.d.ts +41 -0
- package/dist/shared/prerequisites/guardian.d.ts.map +1 -0
- package/dist/shared/prerequisites/index.d.ts +6 -0
- package/dist/shared/prerequisites/index.d.ts.map +1 -0
- package/dist/shared/prerequisites/runtime.d.ts +26 -0
- package/dist/shared/prerequisites/runtime.d.ts.map +1 -0
- package/dist/shared/prerequisites/store.d.ts +99 -0
- package/dist/shared/prerequisites/store.d.ts.map +1 -0
- package/dist/shared/prerequisites/types.d.ts +39 -0
- package/dist/shared/prerequisites/types.d.ts.map +1 -0
- package/dist/shared/prerequisites/vpn.d.ts +5 -0
- package/dist/shared/prerequisites/vpn.d.ts.map +1 -0
- package/dist/shared/schema-dump.d.ts +27 -0
- package/dist/shared/schema-dump.d.ts.map +1 -0
- package/dist/shared/throttle.d.ts +17 -0
- package/dist/shared/throttle.d.ts.map +1 -0
- package/dist/shared/transform.d.ts +49 -0
- package/dist/shared/transform.d.ts.map +1 -0
- package/dist/shared/types.d.ts +30 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/package.json +85 -25
- package/src/az-tool/errors.ts +4 -4
- package/src/db-tool/errors.ts +4 -4
- package/src/gh-tool/errors.ts +11 -14
- package/src/k8s-tool/errors.ts +4 -4
- package/src/logs-tool/errors.ts +11 -14
- package/src/observability-tool/errors.ts +1 -1
- package/src/session-tool/errors.ts +7 -10
- package/src/shared/env-template.ts +1 -1
- package/src/shared/exec.ts +1 -1
- package/src/shared/prerequisites/errors.ts +1 -1
- package/src/shared/throttle.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/pr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,0BAA0B,EAC1B,aAAa,EACb,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,cAAc,GACf,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
import type { IssueComment, PullRequestReview, ReviewComment, ReviewThread } from "#gh/types";
|
|
3
|
+
import { GitHubCommandError } from "#gh/errors";
|
|
4
|
+
import { GitHubService } from "#gh/service";
|
|
5
|
+
/**
|
|
6
|
+
* Fetch review threads for a PR via GraphQL.
|
|
7
|
+
* Filters to unresolved threads when unresolvedOnly is true.
|
|
8
|
+
*/
|
|
9
|
+
export declare const fetchThreads: (pr: number | null, unresolvedOnly: boolean, visibleOpenOnly?: any, currentHeadSha?: string | null | undefined) => Effect.Effect<ReviewThread[], GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
10
|
+
/**
|
|
11
|
+
* Fetch review comments for a PR via REST API.
|
|
12
|
+
* Optionally filters to comments created at or after `since` timestamp.
|
|
13
|
+
*/
|
|
14
|
+
export declare const fetchComments: (pr: number | null, since: string | null, currentHeadSha?: string | null | undefined) => Effect.Effect<ReviewComment[], GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
15
|
+
/**
|
|
16
|
+
* Fetch general PR discussion comments (issue comments) via REST API.
|
|
17
|
+
* Supports optional filtering by timestamp, author, and body substring.
|
|
18
|
+
*/
|
|
19
|
+
export declare const fetchIssueComments: (pr: number | null, since: string | null, author: string | null, bodyContains: string | null) => Effect.Effect<IssueComment[], GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
20
|
+
/**
|
|
21
|
+
* Fetch submitted review summaries (state + top-level body) for a PR via REST API.
|
|
22
|
+
* Complements `comments` (inline review comments) and `issue-comments` (discussion),
|
|
23
|
+
* which never expose the submitted review body. Optional author/state/body filters.
|
|
24
|
+
*/
|
|
25
|
+
export declare const fetchReviews: (pr: number | null, author: string | null, bodyContains: string | null, state: string | null, currentHeadSha?: string | null | undefined) => Effect.Effect<PullRequestReview[], GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
26
|
+
/**
|
|
27
|
+
* Full review-response inventory for a PR in one call: submitted review summaries,
|
|
28
|
+
* all review threads with resolution state, inline review comments, and issue
|
|
29
|
+
* (discussion) comments. Collapses the four separate fetches agents otherwise stitch.
|
|
30
|
+
*/
|
|
31
|
+
export declare const fetchFeedback: (pr: number | null, currentHeadSha?: string | null | undefined) => Effect.Effect<{
|
|
32
|
+
reviews: PullRequestReview[];
|
|
33
|
+
threads: ReviewThread[];
|
|
34
|
+
inlineComments: ReviewComment[];
|
|
35
|
+
issueComments: IssueComment[];
|
|
36
|
+
}, GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
37
|
+
export declare const fetchLatestIssueComment: (pr: number | null, author: string | null, bodyContains: string | null) => Effect.Effect<IssueComment | null, GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
38
|
+
export declare const postIssueComment: (pr: number | null, body: string) => Effect.Effect<IssueComment, GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
39
|
+
export declare const fetchDiscussionSummary: (pr: number | null) => Effect.Effect<{
|
|
40
|
+
issueCommentsCount: number;
|
|
41
|
+
latestIssueComment: IssueComment | null;
|
|
42
|
+
reviewCommentsCount: number;
|
|
43
|
+
reviewThreadsCount: number;
|
|
44
|
+
visibleOpenReviewThreadsCount: number;
|
|
45
|
+
repliedReviewThreadsCount: number;
|
|
46
|
+
unrepliedReviewThreadsCount: number;
|
|
47
|
+
resolvedUnrepliedReviewThreadsCount: number;
|
|
48
|
+
unresolvedReviewThreadsCount: number;
|
|
49
|
+
unresolvedUnrepliedReviewThreadsCount: number;
|
|
50
|
+
}, GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
51
|
+
/**
|
|
52
|
+
* Reply to an inline review comment via REST API.
|
|
53
|
+
*/
|
|
54
|
+
export declare const replyToComment: (pr: number | null, commentId: number, body: string) => Effect.Effect<{
|
|
55
|
+
success: true;
|
|
56
|
+
commentId: number;
|
|
57
|
+
}, GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
58
|
+
/**
|
|
59
|
+
* Reply to a review comment, infer and validate its PR and thread, then resolve that thread.
|
|
60
|
+
*/
|
|
61
|
+
export declare const replyAndResolveComment: (pr: number | null, commentId: number, threadId: string | null, body: string) => Effect.Effect<{
|
|
62
|
+
reply: {
|
|
63
|
+
success: true;
|
|
64
|
+
commentId: number;
|
|
65
|
+
};
|
|
66
|
+
resolve: {
|
|
67
|
+
resolved: boolean;
|
|
68
|
+
threadId: string;
|
|
69
|
+
};
|
|
70
|
+
pr: number;
|
|
71
|
+
threadId: string;
|
|
72
|
+
}, GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
73
|
+
/**
|
|
74
|
+
* Resolve a review thread via GraphQL mutation.
|
|
75
|
+
*/
|
|
76
|
+
export declare const resolveThread: (threadId: string) => Effect.Effect<{
|
|
77
|
+
resolved: boolean;
|
|
78
|
+
threadId: string;
|
|
79
|
+
}, GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
80
|
+
export declare const submitPendingReview: (pr: number | null, reviewId: string | null, body: string | null) => Effect.Effect<{
|
|
81
|
+
submitted: true;
|
|
82
|
+
reviewId: string;
|
|
83
|
+
state: string;
|
|
84
|
+
}, GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
85
|
+
export declare const fetchLastHumanReviewer: (pr: number | null) => Effect.Effect<{
|
|
86
|
+
currentRequestedReviewers: string[];
|
|
87
|
+
lastHumanReviewer: string | null;
|
|
88
|
+
lastHumanReviewAt: string | null;
|
|
89
|
+
}, GitHubCommandError | import("#gh/errors").GitHubNotFoundError | import("#gh/errors").GitHubAuthError, GitHubService>;
|
|
90
|
+
//# sourceMappingURL=review.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/pr/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,KAAK,EAEV,YAAY,EAGZ,iBAAiB,EACjB,aAAa,EACb,YAAY,EAEb,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA2b5C;;;GAGG;AACH,eAAO,MAAM,YAAY,uQAcvB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,aAAa,8OAkCxB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,qPAmC7B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,YAAY,sSA+CvB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;uHAaxB,CAAC;AAEH,eAAO,MAAM,uBAAuB,oOAgBlC,CAAC;AAEH,eAAO,MAAM,gBAAgB,uLA0C3B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;uHA4CjC,CAAC;AAeH;;GAEG;AACH,eAAO,MAAM,cAAc;;;uHA4FzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;uHA0FjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;uHAWxB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;uHAiD9B,CAAC;AAeH,eAAO,MAAM,sBAAsB;;;;uHA8CjC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Command } from "effect/unstable/cli";
|
|
2
|
+
import { Option } from "effect";
|
|
3
|
+
import { GitHubService } from "./service";
|
|
4
|
+
export declare const releaseCreateCommand: Command.Command<"create", {
|
|
5
|
+
readonly body: Option.Option<string>;
|
|
6
|
+
readonly bodyFile: Option.Option<string>;
|
|
7
|
+
readonly draft: boolean;
|
|
8
|
+
readonly format: "json" | "toon";
|
|
9
|
+
readonly generateNotes: boolean;
|
|
10
|
+
readonly latest: Option.Option<boolean>;
|
|
11
|
+
readonly notesFile: Option.Option<string>;
|
|
12
|
+
readonly notesStartTag: Option.Option<string>;
|
|
13
|
+
readonly prerelease: boolean;
|
|
14
|
+
readonly repo: Option.Option<string>;
|
|
15
|
+
readonly tag: string;
|
|
16
|
+
readonly target: Option.Option<string>;
|
|
17
|
+
readonly title: Option.Option<string>;
|
|
18
|
+
readonly verifyTag: boolean;
|
|
19
|
+
}, {}, import("./errors").GitHubCommandError | import("./errors").GitHubNotFoundError | import("./errors").GitHubAuthError, GitHubService>;
|
|
20
|
+
export declare const releaseListCommand: Command.Command<"list", {
|
|
21
|
+
readonly format: "json" | "toon";
|
|
22
|
+
readonly limit: number;
|
|
23
|
+
readonly repo: Option.Option<string>;
|
|
24
|
+
}, {}, import("./errors").GitHubCommandError | import("./errors").GitHubNotFoundError | import("./errors").GitHubAuthError, GitHubService>;
|
|
25
|
+
export declare const releaseViewCommand: Command.Command<"view", {
|
|
26
|
+
readonly format: "json" | "toon";
|
|
27
|
+
readonly repo: Option.Option<string>;
|
|
28
|
+
readonly tag: string;
|
|
29
|
+
}, {}, import("./errors").GitHubCommandError | import("./errors").GitHubNotFoundError | import("./errors").GitHubAuthError, GitHubService>;
|
|
30
|
+
export declare const releaseEditCommand: Command.Command<"edit", {
|
|
31
|
+
readonly body: Option.Option<string>;
|
|
32
|
+
readonly bodyFile: Option.Option<string>;
|
|
33
|
+
readonly draft: Option.Option<boolean>;
|
|
34
|
+
readonly format: "json" | "toon";
|
|
35
|
+
readonly latest: Option.Option<boolean>;
|
|
36
|
+
readonly prerelease: Option.Option<boolean>;
|
|
37
|
+
readonly repo: Option.Option<string>;
|
|
38
|
+
readonly tag: string;
|
|
39
|
+
readonly title: Option.Option<string>;
|
|
40
|
+
}, {}, import("./errors").GitHubCommandError | import("./errors").GitHubNotFoundError | import("./errors").GitHubAuthError, GitHubService>;
|
|
41
|
+
export declare const releaseDeleteCommand: Command.Command<"delete", {
|
|
42
|
+
readonly cleanupTag: boolean;
|
|
43
|
+
readonly confirm: boolean;
|
|
44
|
+
readonly format: "json" | "toon";
|
|
45
|
+
readonly repo: Option.Option<string>;
|
|
46
|
+
readonly tag: string;
|
|
47
|
+
}, {}, import("./errors").GitHubCommandError | import("./errors").GitHubNotFoundError | import("./errors").GitHubAuthError, GitHubService>;
|
|
48
|
+
export declare const releaseStatusCommand: Command.Command<"status", {
|
|
49
|
+
readonly format: "json" | "toon";
|
|
50
|
+
readonly repo: Option.Option<string>;
|
|
51
|
+
}, {}, import("./errors").GitHubCommandError | import("./errors").GitHubNotFoundError | import("./errors").GitHubAuthError, GitHubService>;
|
|
52
|
+
//# sourceMappingURL=release.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../src/gh-tool/release.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIxC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAsV1C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;0IAqGhC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;0IAsBiB,CAAC;AAEjD,eAAO,MAAM,kBAAkB;;;;0IAmB+B,CAAC;AAE/D,eAAO,MAAM,kBAAkB;;;;;;;;;;0IAsD4B,CAAC;AAE5D,eAAO,MAAM,oBAAoB;;;;;;0IA6BiE,CAAC;AAEnG,eAAO,MAAM,oBAAoB;;;0IAckE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Command } from "effect/unstable/cli";
|
|
2
|
+
import { Option } from "effect";
|
|
3
|
+
import { GitHubCommandError } from "./errors";
|
|
4
|
+
import { GitHubService } from "./service";
|
|
5
|
+
export declare const repoInfoCommand: Command.Command<"info", {
|
|
6
|
+
readonly format: "json" | "toon";
|
|
7
|
+
readonly repo: Option.Option<string>;
|
|
8
|
+
}, {}, GitHubCommandError | import("./errors").GitHubNotFoundError | import("./errors").GitHubAuthError, GitHubService>;
|
|
9
|
+
export declare const repoListCommand: Command.Command<"list", {
|
|
10
|
+
readonly format: "json" | "toon";
|
|
11
|
+
readonly limit: number;
|
|
12
|
+
readonly org: string;
|
|
13
|
+
readonly visibility: Option.Option<"public" | "all" | "private">;
|
|
14
|
+
}, {}, GitHubCommandError | import("./errors").GitHubNotFoundError | import("./errors").GitHubAuthError, GitHubService>;
|
|
15
|
+
export declare const repoSearchCodeCommand: Command.Command<"search-code", {
|
|
16
|
+
readonly format: "json" | "toon";
|
|
17
|
+
readonly limit: number;
|
|
18
|
+
readonly org: string;
|
|
19
|
+
readonly query: string;
|
|
20
|
+
}, {}, GitHubCommandError | import("./errors").GitHubNotFoundError | import("./errors").GitHubAuthError, GitHubService>;
|
|
21
|
+
//# sourceMappingURL=repo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repo.d.ts","sourceRoot":"","sources":["../../src/gh-tool/repo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AA2F1C,eAAO,MAAM,eAAe;;;uHAcqE,CAAC;AAElG,eAAO,MAAM,eAAe;;;;;uHAyB3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;uHAoB6C,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChildProcessSpawner } from "effect/unstable/process";
|
|
2
|
+
import { Context, Effect, Layer } from "effect";
|
|
3
|
+
import type { GitHubRepoConfig } from "#config";
|
|
4
|
+
import type { RepoInfo } from "./types";
|
|
5
|
+
import { GitHubAuthError, GitHubCommandError, GitHubNotFoundError } from "./errors";
|
|
6
|
+
import { ConfigService } from "#config";
|
|
7
|
+
type GhResult = {
|
|
8
|
+
stdout: string;
|
|
9
|
+
stderr: string;
|
|
10
|
+
exitCode: number;
|
|
11
|
+
};
|
|
12
|
+
type GhError = GitHubCommandError | GitHubAuthError | GitHubNotFoundError;
|
|
13
|
+
declare const GitHubService_base: Context.ServiceClass<GitHubService, "@agent-tools/GitHubService", {
|
|
14
|
+
readonly runGh: (args: string[]) => Effect.Effect<GhResult, GhError>;
|
|
15
|
+
readonly runGhJson: <T>(args: string[]) => Effect.Effect<T, GhError>;
|
|
16
|
+
readonly runGraphQL: (query: string, variables: Record<string, string | number | null>) => Effect.Effect<unknown, GhError>;
|
|
17
|
+
readonly getRepoConfig: () => Effect.Effect<GitHubRepoConfig | undefined, never>;
|
|
18
|
+
readonly getRepoInfo: () => Effect.Effect<RepoInfo, GhError>;
|
|
19
|
+
readonly withRepoTarget: <A, E, R>(target: string | null, effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E | GitHubCommandError, R>;
|
|
20
|
+
}>;
|
|
21
|
+
export declare class GitHubService extends GitHubService_base {
|
|
22
|
+
static readonly layer: Layer.Layer<GitHubService, never, ConfigService | ChildProcessSpawner.ChildProcessSpawner>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/gh-tool/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAY,MAAM,EAAE,KAAK,EAAU,MAAM,QAAQ,CAAC;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpF,OAAO,EAAE,aAAa,EAA4C,MAAM,SAAS,CAAC;AAsDlF,KAAK,QAAQ,GAAG;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,OAAO,GAAG,kBAAkB,GAAG,eAAe,GAAG,mBAAmB,CAAC;;oBAKtD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC;wBAChD,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC;yBAC/C,CACnB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,KAC9C,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC;4BACZ,MAAM,MAAM,CAAC,MAAM,CAAC,gBAAgB,GAAG,SAAS,EAAE,KAAK,CAAC;0BAC1D,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC;6BACnC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAC3B,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,kBAAkB,EAAE,CAAC,CAAC;;AAdpD,qBAAa,aAAc,SAAQ,kBAgBF;IAC/B,MAAM,CAAC,QAAQ,CAAC,KAAK,6FAsRnB;CACH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Effect, Schema } from "effect";
|
|
2
|
+
import { GitHubCommandError } from "#gh/errors";
|
|
3
|
+
declare const MissingMode: Schema.Literals<readonly ["error", "null", "default"]>;
|
|
4
|
+
type ResolveTextInputOptions = {
|
|
5
|
+
command: string;
|
|
6
|
+
value: string | null;
|
|
7
|
+
fileValue: string | null;
|
|
8
|
+
stdin?: boolean;
|
|
9
|
+
valueFlag: string;
|
|
10
|
+
fileFlag: string;
|
|
11
|
+
stdinFlag?: string;
|
|
12
|
+
missingMode: Schema.Schema.Type<typeof MissingMode>;
|
|
13
|
+
missingValue?: string;
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const resolveRequiredTextInput: (options: Omit<ResolveTextInputOptions, "missingMode" | "missingValue">) => Effect.Effect<string, GitHubCommandError>;
|
|
17
|
+
export declare const resolveOptionalTextInput: (options: Omit<ResolveTextInputOptions, "missingMode" | "missingValue">) => Effect.Effect<string | null, GitHubCommandError>;
|
|
18
|
+
export declare const resolveDefaultTextInput: (options: Omit<ResolveTextInputOptions, "missingMode" | "missingValue"> & {
|
|
19
|
+
defaultValue: string;
|
|
20
|
+
}) => Effect.Effect<string, GitHubCommandError>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=text-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-input.d.ts","sourceRoot":"","sources":["../../src/gh-tool/text-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIhD,QAAA,MAAM,WAAW,wDAAgD,CAAC;AAoBlE,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAsFF,eAAO,MAAM,wBAAwB,GACnC,SAAS,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,cAAc,CAAC,KACrE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAIuD,CAAC;AAEnG,eAAO,MAAM,wBAAwB,GACnC,SAAS,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,cAAc,CAAC,KACrE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,EAAE,kBAAkB,CAI9C,CAAC;AAEL,eAAO,MAAM,uBAAuB,GAClC,SAAS,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,cAAc,CAAC,GAAG;IACvE,YAAY,EAAE,MAAM,CAAC;CACtB,KACA,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAKsD,CAAC"}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export type MergeStrategy = "squash" | "merge" | "rebase";
|
|
3
|
+
export type PRInfo = {
|
|
4
|
+
number: number;
|
|
5
|
+
url: string;
|
|
6
|
+
title: string;
|
|
7
|
+
headRefName: string;
|
|
8
|
+
baseRefName: string;
|
|
9
|
+
state: string;
|
|
10
|
+
isDraft: boolean;
|
|
11
|
+
mergeable: "MERGEABLE" | "CONFLICTING" | "UNKNOWN";
|
|
12
|
+
};
|
|
13
|
+
export type ReviewRequest = {
|
|
14
|
+
__typename: "User";
|
|
15
|
+
login: string;
|
|
16
|
+
} | {
|
|
17
|
+
__typename: "Team";
|
|
18
|
+
name: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
};
|
|
21
|
+
export type PRViewInfo = PRInfo & {
|
|
22
|
+
headSha: string | null;
|
|
23
|
+
baseSha: string | null;
|
|
24
|
+
body: string;
|
|
25
|
+
author: {
|
|
26
|
+
login: string;
|
|
27
|
+
is_bot: boolean;
|
|
28
|
+
};
|
|
29
|
+
reviewDecision: "APPROVED" | "CHANGES_REQUESTED" | "REVIEW_REQUIRED" | "";
|
|
30
|
+
reviewRequests: ReviewRequest[];
|
|
31
|
+
};
|
|
32
|
+
export declare const FeedbackOrigin: Schema.Literals<readonly ["current_head", "pre_existing", "unknown"]>;
|
|
33
|
+
export type FeedbackOrigin = typeof FeedbackOrigin.Type;
|
|
34
|
+
export type ReviewThread = {
|
|
35
|
+
threadId: string;
|
|
36
|
+
commitSha: string | null;
|
|
37
|
+
feedbackOrigin: FeedbackOrigin;
|
|
38
|
+
commentId: number;
|
|
39
|
+
path: string;
|
|
40
|
+
line: number;
|
|
41
|
+
body: string;
|
|
42
|
+
isResolved: boolean;
|
|
43
|
+
hasReply: boolean;
|
|
44
|
+
replyCount: number;
|
|
45
|
+
needsHumanReply: boolean;
|
|
46
|
+
isVisibleOpen: boolean;
|
|
47
|
+
lastReplyAuthor: string | null;
|
|
48
|
+
lastReplyAt: string | null;
|
|
49
|
+
/** Thread ids of exact duplicates collapsed into this representative (encounter order). */
|
|
50
|
+
duplicateThreadIds: string[];
|
|
51
|
+
};
|
|
52
|
+
export type ReviewComment = {
|
|
53
|
+
id: number;
|
|
54
|
+
commitSha: string | null;
|
|
55
|
+
feedbackOrigin: FeedbackOrigin;
|
|
56
|
+
inReplyToId: number | null;
|
|
57
|
+
author: string;
|
|
58
|
+
body: string;
|
|
59
|
+
path: string;
|
|
60
|
+
line: number;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
};
|
|
63
|
+
export declare const IssueCommentId: Schema.brand<Schema.Int, "IssueCommentId">;
|
|
64
|
+
export type IssueCommentId = typeof IssueCommentId.Type;
|
|
65
|
+
export declare const IsoTimestamp: Schema.brand<Schema.String, "IsoTimestamp">;
|
|
66
|
+
export type IsoTimestamp = typeof IsoTimestamp.Type;
|
|
67
|
+
export declare const GitHubIssueCommentUrl: Schema.brand<Schema.String, "GitHubIssueCommentUrl">;
|
|
68
|
+
export type GitHubIssueCommentUrl = typeof GitHubIssueCommentUrl.Type;
|
|
69
|
+
export type IssueComment = {
|
|
70
|
+
id: IssueCommentId;
|
|
71
|
+
commitSha: null;
|
|
72
|
+
feedbackOrigin: "unknown";
|
|
73
|
+
author: string;
|
|
74
|
+
body: string;
|
|
75
|
+
createdAt: IsoTimestamp;
|
|
76
|
+
url: GitHubIssueCommentUrl;
|
|
77
|
+
};
|
|
78
|
+
export type PullRequestReview = {
|
|
79
|
+
id: number;
|
|
80
|
+
commitSha: string | null;
|
|
81
|
+
feedbackOrigin: FeedbackOrigin;
|
|
82
|
+
author: string;
|
|
83
|
+
state: string;
|
|
84
|
+
body: string;
|
|
85
|
+
submittedAt: IsoTimestamp | null;
|
|
86
|
+
url: string;
|
|
87
|
+
};
|
|
88
|
+
export type CheckResult = {
|
|
89
|
+
name: string;
|
|
90
|
+
state: string;
|
|
91
|
+
bucket: string;
|
|
92
|
+
link: string;
|
|
93
|
+
};
|
|
94
|
+
export type FailedCheckJob = {
|
|
95
|
+
databaseId: number;
|
|
96
|
+
jobId: number;
|
|
97
|
+
checkId: number | null;
|
|
98
|
+
name: string;
|
|
99
|
+
status: string;
|
|
100
|
+
conclusion: string | null;
|
|
101
|
+
url: string;
|
|
102
|
+
failedSteps: string[];
|
|
103
|
+
};
|
|
104
|
+
export type FailedCheckRunContext = {
|
|
105
|
+
runId: number;
|
|
106
|
+
attempt: number | null;
|
|
107
|
+
url: string | null;
|
|
108
|
+
workflowName: string | null;
|
|
109
|
+
status: string;
|
|
110
|
+
conclusion: string | null;
|
|
111
|
+
failedJobs: FailedCheckJob[];
|
|
112
|
+
};
|
|
113
|
+
export type FailedCheckDetail = CheckResult & {
|
|
114
|
+
runId: number | null;
|
|
115
|
+
run: FailedCheckRunContext | null;
|
|
116
|
+
failedStepLogs?: string;
|
|
117
|
+
diagnosis?: LogDiagnosis;
|
|
118
|
+
};
|
|
119
|
+
export declare const LogDiagnosisCategory: Schema.Literals<readonly ["infrastructure", "network", "timeout", "test_failure", "build_failure", "lint_failure", "unknown"]>;
|
|
120
|
+
export type LogDiagnosisCategory = typeof LogDiagnosisCategory.Type;
|
|
121
|
+
export type LogDiagnosis = {
|
|
122
|
+
category: LogDiagnosisCategory;
|
|
123
|
+
fingerprint: string;
|
|
124
|
+
testsStarted: boolean | null;
|
|
125
|
+
firstRelevantError: string | null;
|
|
126
|
+
};
|
|
127
|
+
export declare const RerunRetryEvidenceState: Schema.Literals<readonly ["eligible", "ineligible", "unavailable"]>;
|
|
128
|
+
export type RerunRetryEvidenceState = typeof RerunRetryEvidenceState.Type;
|
|
129
|
+
export type RerunRetryEvidence = {
|
|
130
|
+
state: "eligible";
|
|
131
|
+
diagnosis: LogDiagnosis;
|
|
132
|
+
} | {
|
|
133
|
+
state: "ineligible";
|
|
134
|
+
diagnosis: LogDiagnosis;
|
|
135
|
+
reason: string;
|
|
136
|
+
} | {
|
|
137
|
+
state: "unavailable";
|
|
138
|
+
reason: string;
|
|
139
|
+
};
|
|
140
|
+
export declare const RerunCheckStatus: Schema.Literals<readonly ["blocked", "evidence_unavailable", "escalation_required", "rerun_started", "failed", "discovery_timeout", "completed", "watch_timeout"]>;
|
|
141
|
+
export type RerunCheckStatus = typeof RerunCheckStatus.Type;
|
|
142
|
+
export type RerunCheckJob = {
|
|
143
|
+
databaseId: number;
|
|
144
|
+
name: string;
|
|
145
|
+
status: string;
|
|
146
|
+
conclusion: string | null;
|
|
147
|
+
};
|
|
148
|
+
export type RerunCheckAttempt = {
|
|
149
|
+
databaseId: number;
|
|
150
|
+
attempt?: number | null;
|
|
151
|
+
jobs: RerunCheckJob[];
|
|
152
|
+
status?: string;
|
|
153
|
+
};
|
|
154
|
+
export type RerunChecksRun = {
|
|
155
|
+
runId: string;
|
|
156
|
+
success: boolean;
|
|
157
|
+
currentAttempt: number | null;
|
|
158
|
+
currentJobIds: number[] | null;
|
|
159
|
+
evidence: RerunRetryEvidence;
|
|
160
|
+
status: RerunCheckStatus;
|
|
161
|
+
newAttempt?: number | null;
|
|
162
|
+
newJobIds?: number[] | null;
|
|
163
|
+
latestAttempt?: RerunCheckAttempt | null;
|
|
164
|
+
};
|
|
165
|
+
export type RerunChecksReport = {
|
|
166
|
+
rerun: number;
|
|
167
|
+
failed?: number;
|
|
168
|
+
message: string;
|
|
169
|
+
status?: "evidence_unavailable" | "escalation_required" | "failed" | "rerun_started";
|
|
170
|
+
runs?: RerunChecksRun[];
|
|
171
|
+
};
|
|
172
|
+
export type FailedChecksReport = {
|
|
173
|
+
evidence: {
|
|
174
|
+
headSha: string | null;
|
|
175
|
+
baseSha: string | null;
|
|
176
|
+
} | null;
|
|
177
|
+
status: "failed" | "no_failures";
|
|
178
|
+
message: string;
|
|
179
|
+
summary: {
|
|
180
|
+
total: number;
|
|
181
|
+
failed: number;
|
|
182
|
+
pending: number;
|
|
183
|
+
passed: number;
|
|
184
|
+
};
|
|
185
|
+
failedChecks: FailedCheckDetail[];
|
|
186
|
+
pendingChecks: CheckResult[];
|
|
187
|
+
hint: string;
|
|
188
|
+
nextCommands: string[];
|
|
189
|
+
};
|
|
190
|
+
export type WorkflowRunDetail = {
|
|
191
|
+
databaseId: number;
|
|
192
|
+
attempt: number | null;
|
|
193
|
+
url: string;
|
|
194
|
+
workflowName: string | null;
|
|
195
|
+
status: string;
|
|
196
|
+
conclusion: string | null;
|
|
197
|
+
jobs: Array<{
|
|
198
|
+
databaseId: number;
|
|
199
|
+
name: string;
|
|
200
|
+
status: string;
|
|
201
|
+
conclusion: string | null;
|
|
202
|
+
url: string;
|
|
203
|
+
steps: Array<{
|
|
204
|
+
name: string;
|
|
205
|
+
status: string;
|
|
206
|
+
conclusion: string | null;
|
|
207
|
+
}>;
|
|
208
|
+
}>;
|
|
209
|
+
};
|
|
210
|
+
export type MergeResult = {
|
|
211
|
+
merged: boolean;
|
|
212
|
+
strategy: MergeStrategy;
|
|
213
|
+
branchDeleted: boolean;
|
|
214
|
+
sha: string | null;
|
|
215
|
+
/** PR numbers whose base was retargeted off the deleted branch before deletion. */
|
|
216
|
+
retargetedChildren?: number[];
|
|
217
|
+
/** True when branch deletion was requested but skipped to protect dependent PRs. */
|
|
218
|
+
branchDeleteSkipped?: boolean;
|
|
219
|
+
};
|
|
220
|
+
export type RepoInfo = {
|
|
221
|
+
owner: string;
|
|
222
|
+
name: string;
|
|
223
|
+
defaultBranch: string;
|
|
224
|
+
url: string;
|
|
225
|
+
};
|
|
226
|
+
export type PRStatusSingle = {
|
|
227
|
+
mode: "single";
|
|
228
|
+
pr: PRInfo;
|
|
229
|
+
};
|
|
230
|
+
export type PRStatusMultiple = {
|
|
231
|
+
mode: "multiple";
|
|
232
|
+
prs: PRInfo[];
|
|
233
|
+
};
|
|
234
|
+
export type BranchPRDetail = {
|
|
235
|
+
branch: string;
|
|
236
|
+
remoteExists: boolean;
|
|
237
|
+
closedPr: {
|
|
238
|
+
number: number;
|
|
239
|
+
url: string;
|
|
240
|
+
state: "MERGED" | "CLOSED";
|
|
241
|
+
} | null;
|
|
242
|
+
};
|
|
243
|
+
export type PRStatusNone = {
|
|
244
|
+
mode: "none";
|
|
245
|
+
branches: BranchPRDetail[];
|
|
246
|
+
};
|
|
247
|
+
export type PRStatusResult = PRStatusSingle | PRStatusMultiple | PRStatusNone;
|
|
248
|
+
export type BranchRenameResult = {
|
|
249
|
+
renamed: boolean;
|
|
250
|
+
oldName: string;
|
|
251
|
+
newName: string;
|
|
252
|
+
dryRun?: true;
|
|
253
|
+
message?: string;
|
|
254
|
+
};
|
|
255
|
+
export type CheckRunAnnotation = {
|
|
256
|
+
path: string;
|
|
257
|
+
start_line: number;
|
|
258
|
+
end_line: number;
|
|
259
|
+
start_column: number | null;
|
|
260
|
+
end_column: number | null;
|
|
261
|
+
annotation_level: "notice" | "warning" | "failure";
|
|
262
|
+
title: string | null;
|
|
263
|
+
message: string;
|
|
264
|
+
raw_details: string | null;
|
|
265
|
+
};
|
|
266
|
+
export type JobAnnotations = {
|
|
267
|
+
jobId: number;
|
|
268
|
+
jobName: string;
|
|
269
|
+
annotations: CheckRunAnnotation[];
|
|
270
|
+
};
|
|
271
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/gh-tool/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE1D,MAAM,MAAM,MAAM,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,WAAW,GAAG,aAAa,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,aAAa,GACrB;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IAChC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC;IAC3C,cAAc,EAAE,UAAU,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,EAAE,CAAC;IAC1E,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,cAAc,uEAA+D,CA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