chief-clancy 0.7.0 → 0.7.1
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 +1 -1
- package/dist/bundle/clancy-once.js +50 -50
- package/package.json +5 -2
- package/src/templates/.env.example.github +19 -1
- package/src/templates/.env.example.jira +25 -1
- package/src/templates/.env.example.linear +19 -1
- package/dist/schemas/bitbucket-pr.d.ts +0 -137
- package/dist/schemas/bitbucket-pr.d.ts.map +0 -1
- package/dist/schemas/bitbucket-pr.js +0 -75
- package/dist/schemas/bitbucket-pr.js.map +0 -1
- package/dist/schemas/env.d.ts +0 -170
- package/dist/schemas/env.d.ts.map +0 -1
- package/dist/schemas/env.js +0 -69
- package/dist/schemas/env.js.map +0 -1
- package/dist/schemas/github-issues.d.ts +0 -105
- package/dist/schemas/github-issues.d.ts.map +0 -1
- package/dist/schemas/github-issues.js +0 -54
- package/dist/schemas/github-issues.js.map +0 -1
- package/dist/schemas/gitlab-mr.d.ts +0 -73
- package/dist/schemas/gitlab-mr.d.ts.map +0 -1
- package/dist/schemas/gitlab-mr.js +0 -33
- package/dist/schemas/gitlab-mr.js.map +0 -1
- package/dist/schemas/jira.d.ts +0 -59
- package/dist/schemas/jira.d.ts.map +0 -1
- package/dist/schemas/jira.js +0 -56
- package/dist/schemas/jira.js.map +0 -1
- package/dist/schemas/linear.d.ts +0 -108
- package/dist/schemas/linear.d.ts.map +0 -1
- package/dist/schemas/linear.js +0 -84
- package/dist/schemas/linear.js.map +0 -1
- package/dist/scripts/afk/afk.d.ts +0 -21
- package/dist/scripts/afk/afk.d.ts.map +0 -1
- package/dist/scripts/afk/afk.js +0 -145
- package/dist/scripts/afk/afk.js.map +0 -1
- package/dist/scripts/afk/report/report.d.ts +0 -47
- package/dist/scripts/afk/report/report.d.ts.map +0 -1
- package/dist/scripts/afk/report/report.js +0 -194
- package/dist/scripts/afk/report/report.js.map +0 -1
- package/dist/scripts/board/github/github.d.ts +0 -104
- package/dist/scripts/board/github/github.d.ts.map +0 -1
- package/dist/scripts/board/github/github.js +0 -291
- package/dist/scripts/board/github/github.js.map +0 -1
- package/dist/scripts/board/jira/jira.d.ts +0 -139
- package/dist/scripts/board/jira/jira.d.ts.map +0 -1
- package/dist/scripts/board/jira/jira.js +0 -378
- package/dist/scripts/board/jira/jira.js.map +0 -1
- package/dist/scripts/board/linear/linear.d.ts +0 -129
- package/dist/scripts/board/linear/linear.d.ts.map +0 -1
- package/dist/scripts/board/linear/linear.js +0 -393
- package/dist/scripts/board/linear/linear.js.map +0 -1
- package/dist/scripts/once/board-ops/board-ops.d.ts +0 -26
- package/dist/scripts/once/board-ops/board-ops.d.ts.map +0 -1
- package/dist/scripts/once/board-ops/board-ops.js +0 -113
- package/dist/scripts/once/board-ops/board-ops.js.map +0 -1
- package/dist/scripts/once/cost/cost.d.ts +0 -10
- package/dist/scripts/once/cost/cost.d.ts.map +0 -1
- package/dist/scripts/once/cost/cost.js +0 -23
- package/dist/scripts/once/cost/cost.js.map +0 -1
- package/dist/scripts/once/deliver/deliver.d.ts +0 -37
- package/dist/scripts/once/deliver/deliver.d.ts.map +0 -1
- package/dist/scripts/once/deliver/deliver.js +0 -253
- package/dist/scripts/once/deliver/deliver.js.map +0 -1
- package/dist/scripts/once/fetch-ticket/fetch-ticket.d.ts +0 -22
- package/dist/scripts/once/fetch-ticket/fetch-ticket.d.ts.map +0 -1
- package/dist/scripts/once/fetch-ticket/fetch-ticket.js +0 -123
- package/dist/scripts/once/fetch-ticket/fetch-ticket.js.map +0 -1
- package/dist/scripts/once/git-token/git-token.d.ts +0 -13
- package/dist/scripts/once/git-token/git-token.d.ts.map +0 -1
- package/dist/scripts/once/git-token/git-token.js +0 -30
- package/dist/scripts/once/git-token/git-token.js.map +0 -1
- package/dist/scripts/once/lock/lock.d.ts +0 -17
- package/dist/scripts/once/lock/lock.d.ts.map +0 -1
- package/dist/scripts/once/lock/lock.js +0 -70
- package/dist/scripts/once/lock/lock.js.map +0 -1
- package/dist/scripts/once/once.d.ts +0 -12
- package/dist/scripts/once/once.d.ts.map +0 -1
- package/dist/scripts/once/once.js +0 -452
- package/dist/scripts/once/once.js.map +0 -1
- package/dist/scripts/once/pr-creation/pr-creation.d.ts +0 -11
- package/dist/scripts/once/pr-creation/pr-creation.d.ts.map +0 -1
- package/dist/scripts/once/pr-creation/pr-creation.js +0 -50
- package/dist/scripts/once/pr-creation/pr-creation.js.map +0 -1
- package/dist/scripts/once/resume/resume.d.ts +0 -24
- package/dist/scripts/once/resume/resume.d.ts.map +0 -1
- package/dist/scripts/once/resume/resume.js +0 -159
- package/dist/scripts/once/resume/resume.js.map +0 -1
- package/dist/scripts/once/rework/rework.d.ts +0 -32
- package/dist/scripts/once/rework/rework.d.ts.map +0 -1
- package/dist/scripts/once/rework/rework.js +0 -208
- package/dist/scripts/once/rework/rework.js.map +0 -1
- package/dist/scripts/once/types/types.d.ts +0 -13
- package/dist/scripts/once/types/types.d.ts.map +0 -1
- package/dist/scripts/once/types/types.js +0 -2
- package/dist/scripts/once/types/types.js.map +0 -1
- package/dist/scripts/shared/branch/branch.d.ts +0 -50
- package/dist/scripts/shared/branch/branch.d.ts.map +0 -1
- package/dist/scripts/shared/branch/branch.js +0 -61
- package/dist/scripts/shared/branch/branch.js.map +0 -1
- package/dist/scripts/shared/claude-cli/claude-cli.d.ts +0 -31
- package/dist/scripts/shared/claude-cli/claude-cli.d.ts.map +0 -1
- package/dist/scripts/shared/claude-cli/claude-cli.js +0 -60
- package/dist/scripts/shared/claude-cli/claude-cli.js.map +0 -1
- package/dist/scripts/shared/env-schema/env-schema.d.ts +0 -27
- package/dist/scripts/shared/env-schema/env-schema.d.ts.map +0 -1
- package/dist/scripts/shared/env-schema/env-schema.js +0 -47
- package/dist/scripts/shared/env-schema/env-schema.js.map +0 -1
- package/dist/scripts/shared/feasibility/feasibility.d.ts +0 -30
- package/dist/scripts/shared/feasibility/feasibility.d.ts.map +0 -1
- package/dist/scripts/shared/feasibility/feasibility.js +0 -68
- package/dist/scripts/shared/feasibility/feasibility.js.map +0 -1
- package/dist/scripts/shared/format/format.d.ts +0 -11
- package/dist/scripts/shared/format/format.d.ts.map +0 -1
- package/dist/scripts/shared/format/format.js +0 -23
- package/dist/scripts/shared/format/format.js.map +0 -1
- package/dist/scripts/shared/git-ops/git-ops.d.ts +0 -90
- package/dist/scripts/shared/git-ops/git-ops.d.ts.map +0 -1
- package/dist/scripts/shared/git-ops/git-ops.js +0 -190
- package/dist/scripts/shared/git-ops/git-ops.js.map +0 -1
- package/dist/scripts/shared/http/http.d.ts +0 -54
- package/dist/scripts/shared/http/http.d.ts.map +0 -1
- package/dist/scripts/shared/http/http.js +0 -76
- package/dist/scripts/shared/http/http.js.map +0 -1
- package/dist/scripts/shared/notify/notify.d.ts +0 -46
- package/dist/scripts/shared/notify/notify.d.ts.map +0 -1
- package/dist/scripts/shared/notify/notify.js +0 -88
- package/dist/scripts/shared/notify/notify.js.map +0 -1
- package/dist/scripts/shared/preflight/preflight.d.ts +0 -40
- package/dist/scripts/shared/preflight/preflight.d.ts.map +0 -1
- package/dist/scripts/shared/preflight/preflight.js +0 -96
- package/dist/scripts/shared/preflight/preflight.js.map +0 -1
- package/dist/scripts/shared/progress/progress.d.ts +0 -88
- package/dist/scripts/shared/progress/progress.d.ts.map +0 -1
- package/dist/scripts/shared/progress/progress.js +0 -210
- package/dist/scripts/shared/progress/progress.js.map +0 -1
- package/dist/scripts/shared/prompt/prompt.d.ts +0 -58
- package/dist/scripts/shared/prompt/prompt.d.ts.map +0 -1
- package/dist/scripts/shared/prompt/prompt.js +0 -123
- package/dist/scripts/shared/prompt/prompt.js.map +0 -1
- package/dist/scripts/shared/pull-request/bitbucket/bitbucket.d.ts +0 -82
- package/dist/scripts/shared/pull-request/bitbucket/bitbucket.d.ts.map +0 -1
- package/dist/scripts/shared/pull-request/bitbucket/bitbucket.js +0 -301
- package/dist/scripts/shared/pull-request/bitbucket/bitbucket.js.map +0 -1
- package/dist/scripts/shared/pull-request/github/github.d.ts +0 -72
- package/dist/scripts/shared/pull-request/github/github.d.ts.map +0 -1
- package/dist/scripts/shared/pull-request/github/github.js +0 -226
- package/dist/scripts/shared/pull-request/github/github.js.map +0 -1
- package/dist/scripts/shared/pull-request/gitlab/gitlab.d.ts +0 -74
- package/dist/scripts/shared/pull-request/gitlab/gitlab.d.ts.map +0 -1
- package/dist/scripts/shared/pull-request/gitlab/gitlab.js +0 -220
- package/dist/scripts/shared/pull-request/gitlab/gitlab.js.map +0 -1
- package/dist/scripts/shared/pull-request/post-pr/post-pr.d.ts +0 -31
- package/dist/scripts/shared/pull-request/post-pr/post-pr.d.ts.map +0 -1
- package/dist/scripts/shared/pull-request/post-pr/post-pr.js +0 -61
- package/dist/scripts/shared/pull-request/post-pr/post-pr.js.map +0 -1
- package/dist/scripts/shared/pull-request/pr-body/pr-body.d.ts +0 -41
- package/dist/scripts/shared/pull-request/pr-body/pr-body.d.ts.map +0 -1
- package/dist/scripts/shared/pull-request/pr-body/pr-body.js +0 -93
- package/dist/scripts/shared/pull-request/pr-body/pr-body.js.map +0 -1
- package/dist/scripts/shared/pull-request/rework-comment/rework-comment.d.ts +0 -23
- package/dist/scripts/shared/pull-request/rework-comment/rework-comment.d.ts.map +0 -1
- package/dist/scripts/shared/pull-request/rework-comment/rework-comment.js +0 -30
- package/dist/scripts/shared/pull-request/rework-comment/rework-comment.js.map +0 -1
- package/dist/scripts/shared/remote/remote.d.ts +0 -41
- package/dist/scripts/shared/remote/remote.d.ts.map +0 -1
- package/dist/scripts/shared/remote/remote.js +0 -227
- package/dist/scripts/shared/remote/remote.js.map +0 -1
- package/dist/types/board.d.ts +0 -13
- package/dist/types/board.d.ts.map +0 -1
- package/dist/types/board.js +0 -5
- package/dist/types/board.js.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
- package/dist/types/remote.d.ts +0 -55
- package/dist/types/remote.d.ts.map +0 -1
- package/dist/types/remote.js +0 -5
- package/dist/types/remote.js.map +0 -1
- package/dist/utils/parse-json/parse-json.d.ts +0 -20
- package/dist/utils/parse-json/parse-json.d.ts.map +0 -1
- package/dist/utils/parse-json/parse-json.js +0 -27
- package/dist/utils/parse-json/parse-json.js.map +0 -1
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schemas for GitHub Issues REST API responses.
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod/mini';
|
|
5
|
-
/** A single GitHub issue from the list endpoint. */
|
|
6
|
-
export declare const githubIssueSchema: z.ZodMiniObject<{
|
|
7
|
-
number: z.ZodMiniNumber<number>;
|
|
8
|
-
title: z.ZodMiniString<string>;
|
|
9
|
-
body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
10
|
-
pull_request: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
11
|
-
milestone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
12
|
-
title: z.ZodMiniString<string>;
|
|
13
|
-
}, z.core.$strip>>>;
|
|
14
|
-
labels: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
15
|
-
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
16
|
-
}, z.core.$strip>>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
/** Response from `GET /repos/{owner}/{repo}/issues` (array of issues). */
|
|
19
|
-
export declare const githubIssuesResponseSchema: z.ZodMiniArray<z.ZodMiniObject<{
|
|
20
|
-
number: z.ZodMiniNumber<number>;
|
|
21
|
-
title: z.ZodMiniString<string>;
|
|
22
|
-
body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
23
|
-
pull_request: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
24
|
-
milestone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
25
|
-
title: z.ZodMiniString<string>;
|
|
26
|
-
}, z.core.$strip>>>;
|
|
27
|
-
labels: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
28
|
-
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
29
|
-
}, z.core.$strip>>>;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
/** A single GitHub issue comment from the comments endpoint. */
|
|
32
|
-
export declare const githubCommentSchema: z.ZodMiniObject<{
|
|
33
|
-
id: z.ZodMiniNumber<number>;
|
|
34
|
-
body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
35
|
-
created_at: z.ZodMiniString<string>;
|
|
36
|
-
user: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
37
|
-
login: z.ZodMiniString<string>;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
|
-
/** Response from `GET /repos/{owner}/{repo}/issues/{number}/comments` (array of comments). */
|
|
41
|
-
export declare const githubCommentsResponseSchema: z.ZodMiniArray<z.ZodMiniObject<{
|
|
42
|
-
id: z.ZodMiniNumber<number>;
|
|
43
|
-
body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
44
|
-
created_at: z.ZodMiniString<string>;
|
|
45
|
-
user: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
46
|
-
login: z.ZodMiniString<string>;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
}, z.core.$strip>>;
|
|
49
|
-
/** A single PR from the list endpoint. */
|
|
50
|
-
export declare const githubPrSchema: z.ZodMiniObject<{
|
|
51
|
-
number: z.ZodMiniNumber<number>;
|
|
52
|
-
html_url: z.ZodMiniString<string>;
|
|
53
|
-
state: z.ZodMiniString<string>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
/** Response from `GET /repos/{owner}/{repo}/pulls` (array of PRs). */
|
|
56
|
-
export declare const githubPrListSchema: z.ZodMiniArray<z.ZodMiniObject<{
|
|
57
|
-
number: z.ZodMiniNumber<number>;
|
|
58
|
-
html_url: z.ZodMiniString<string>;
|
|
59
|
-
state: z.ZodMiniString<string>;
|
|
60
|
-
}, z.core.$strip>>;
|
|
61
|
-
/** A single review on a PR. */
|
|
62
|
-
export declare const githubReviewSchema: z.ZodMiniObject<{
|
|
63
|
-
state: z.ZodMiniString<string>;
|
|
64
|
-
user: z.ZodMiniObject<{
|
|
65
|
-
login: z.ZodMiniString<string>;
|
|
66
|
-
}, z.core.$strip>;
|
|
67
|
-
submitted_at: z.ZodMiniString<string>;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
/** Response from `GET /repos/{owner}/{repo}/pulls/{number}/reviews` (array). */
|
|
70
|
-
export declare const githubReviewListSchema: z.ZodMiniArray<z.ZodMiniObject<{
|
|
71
|
-
state: z.ZodMiniString<string>;
|
|
72
|
-
user: z.ZodMiniObject<{
|
|
73
|
-
login: z.ZodMiniString<string>;
|
|
74
|
-
}, z.core.$strip>;
|
|
75
|
-
submitted_at: z.ZodMiniString<string>;
|
|
76
|
-
}, z.core.$strip>>;
|
|
77
|
-
/** A single inline (pull request) comment. */
|
|
78
|
-
export declare const githubPrCommentSchema: z.ZodMiniObject<{
|
|
79
|
-
body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
80
|
-
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
81
|
-
created_at: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
82
|
-
user: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
83
|
-
login: z.ZodMiniString<string>;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
|
-
/** Response from `GET /repos/{owner}/{repo}/pulls/{number}/comments` (array). */
|
|
87
|
-
export declare const githubPrCommentsSchema: z.ZodMiniArray<z.ZodMiniObject<{
|
|
88
|
-
body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
89
|
-
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
90
|
-
created_at: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
91
|
-
user: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
92
|
-
login: z.ZodMiniString<string>;
|
|
93
|
-
}, z.core.$strip>>;
|
|
94
|
-
}, z.core.$strip>>;
|
|
95
|
-
export type GitHubIssue = z.infer<typeof githubIssueSchema>;
|
|
96
|
-
export type GitHubIssuesResponse = z.infer<typeof githubIssuesResponseSchema>;
|
|
97
|
-
export type GitHubComment = z.infer<typeof githubCommentSchema>;
|
|
98
|
-
export type GitHubCommentsResponse = z.infer<typeof githubCommentsResponseSchema>;
|
|
99
|
-
export type GitHubPr = z.infer<typeof githubPrSchema>;
|
|
100
|
-
export type GitHubPrList = z.infer<typeof githubPrListSchema>;
|
|
101
|
-
export type GitHubReview = z.infer<typeof githubReviewSchema>;
|
|
102
|
-
export type GitHubReviewList = z.infer<typeof githubReviewListSchema>;
|
|
103
|
-
export type GitHubPrComment = z.infer<typeof githubPrCommentSchema>;
|
|
104
|
-
export type GitHubPrComments = z.infer<typeof githubPrCommentsSchema>;
|
|
105
|
-
//# sourceMappingURL=github-issues.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github-issues.d.ts","sourceRoot":"","sources":["../../src/schemas/github-issues.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B,oDAAoD;AACpD,eAAO,MAAM,iBAAiB;;;;;;;;;;;iBAmB5B,CAAC;AAEH,0EAA0E;AAC1E,eAAO,MAAM,0BAA0B;;;;;;;;;;;kBAA6B,CAAC;AAErE,gEAAgE;AAChE,eAAO,MAAM,mBAAmB;;;;;;;iBAK9B,CAAC;AAEH,8FAA8F;AAC9F,eAAO,MAAM,4BAA4B;;;;;;;kBAA+B,CAAC;AAEzE,0CAA0C;AAC1C,eAAO,MAAM,cAAc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|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod/mini';
|
|
5
|
-
/** A single GitHub issue from the list endpoint. */
|
|
6
|
-
export const githubIssueSchema = z.object({
|
|
7
|
-
number: z.number(),
|
|
8
|
-
title: z.string(),
|
|
9
|
-
body: z.optional(z.nullable(z.string())),
|
|
10
|
-
pull_request: z.optional(z.unknown()),
|
|
11
|
-
milestone: z.optional(z.nullable(z.object({
|
|
12
|
-
title: z.string(),
|
|
13
|
-
}))),
|
|
14
|
-
labels: z.optional(z.array(z.object({
|
|
15
|
-
name: z.optional(z.string()),
|
|
16
|
-
}))),
|
|
17
|
-
});
|
|
18
|
-
/** Response from `GET /repos/{owner}/{repo}/issues` (array of issues). */
|
|
19
|
-
export const githubIssuesResponseSchema = z.array(githubIssueSchema);
|
|
20
|
-
/** A single GitHub issue comment from the comments endpoint. */
|
|
21
|
-
export const githubCommentSchema = z.object({
|
|
22
|
-
id: z.number(),
|
|
23
|
-
body: z.optional(z.nullable(z.string())),
|
|
24
|
-
created_at: z.string(),
|
|
25
|
-
user: z.optional(z.object({ login: z.string() })),
|
|
26
|
-
});
|
|
27
|
-
/** Response from `GET /repos/{owner}/{repo}/issues/{number}/comments` (array of comments). */
|
|
28
|
-
export const githubCommentsResponseSchema = z.array(githubCommentSchema);
|
|
29
|
-
/** A single PR from the list endpoint. */
|
|
30
|
-
export const githubPrSchema = z.object({
|
|
31
|
-
number: z.number(),
|
|
32
|
-
html_url: z.string(),
|
|
33
|
-
state: z.string(),
|
|
34
|
-
});
|
|
35
|
-
/** Response from `GET /repos/{owner}/{repo}/pulls` (array of PRs). */
|
|
36
|
-
export const githubPrListSchema = z.array(githubPrSchema);
|
|
37
|
-
/** A single review on a PR. */
|
|
38
|
-
export const githubReviewSchema = z.object({
|
|
39
|
-
state: z.string(),
|
|
40
|
-
user: z.object({ login: z.string() }),
|
|
41
|
-
submitted_at: z.string(),
|
|
42
|
-
});
|
|
43
|
-
/** Response from `GET /repos/{owner}/{repo}/pulls/{number}/reviews` (array). */
|
|
44
|
-
export const githubReviewListSchema = z.array(githubReviewSchema);
|
|
45
|
-
/** A single inline (pull request) comment. */
|
|
46
|
-
export const githubPrCommentSchema = z.object({
|
|
47
|
-
body: z.optional(z.nullable(z.string())),
|
|
48
|
-
path: z.optional(z.string()),
|
|
49
|
-
created_at: z.optional(z.string()),
|
|
50
|
-
user: z.optional(z.object({ login: z.string() })),
|
|
51
|
-
});
|
|
52
|
-
/** Response from `GET /repos/{owner}/{repo}/pulls/{number}/comments` (array). */
|
|
53
|
-
export const githubPrCommentsSchema = z.array(githubPrCommentSchema);
|
|
54
|
-
//# sourceMappingURL=github-issues.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github-issues.js","sourceRoot":"","sources":["../../src/schemas/github-issues.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B,oDAAoD;AACpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACxC,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACrC,SAAS,EAAE,CAAC,CAAC,QAAQ,CACnB,CAAC,CAAC,QAAQ,CACR,CAAC,CAAC,MAAM,CAAC;QACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;KAClB,CAAC,CACH,CACF;IACD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,KAAK,CACL,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;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CAAC,CAAC;AAEH,gFAAgF;AAChF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAElE,8CAA8C;AAC9C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;CAClD,CAAC,CAAC;AAEH,iFAAiF;AACjF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schemas for GitLab Merge Request API responses.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from 'zod/mini';
|
|
5
|
-
/** A single MR from the list endpoint. */
|
|
6
|
-
export declare const gitlabMrSchema: z.ZodMiniObject<{
|
|
7
|
-
iid: z.ZodMiniNumber<number>;
|
|
8
|
-
web_url: z.ZodMiniString<string>;
|
|
9
|
-
detailed_merge_status: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
/** Response from `GET /projects/:id/merge_requests` (array of MRs). */
|
|
12
|
-
export declare const gitlabMrListSchema: z.ZodMiniArray<z.ZodMiniObject<{
|
|
13
|
-
iid: z.ZodMiniNumber<number>;
|
|
14
|
-
web_url: z.ZodMiniString<string>;
|
|
15
|
-
detailed_merge_status: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
/** A single note within an MR discussion. */
|
|
18
|
-
export declare const gitlabNoteSchema: z.ZodMiniObject<{
|
|
19
|
-
body: z.ZodMiniString<string>;
|
|
20
|
-
resolvable: z.ZodMiniBoolean<boolean>;
|
|
21
|
-
resolved: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
22
|
-
system: z.ZodMiniBoolean<boolean>;
|
|
23
|
-
type: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
24
|
-
created_at: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
25
|
-
position: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
26
|
-
new_path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
author: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
29
|
-
username: z.ZodMiniString<string>;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
/** A single MR discussion (contains one or more notes). */
|
|
33
|
-
export declare const gitlabDiscussionSchema: z.ZodMiniObject<{
|
|
34
|
-
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
35
|
-
notes: z.ZodMiniArray<z.ZodMiniObject<{
|
|
36
|
-
body: z.ZodMiniString<string>;
|
|
37
|
-
resolvable: z.ZodMiniBoolean<boolean>;
|
|
38
|
-
resolved: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
39
|
-
system: z.ZodMiniBoolean<boolean>;
|
|
40
|
-
type: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
41
|
-
created_at: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
42
|
-
position: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
43
|
-
new_path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
44
|
-
}, z.core.$strip>>;
|
|
45
|
-
author: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
46
|
-
username: z.ZodMiniString<string>;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
}, z.core.$strip>>;
|
|
49
|
-
}, z.core.$strip>;
|
|
50
|
-
/** Response from `GET /projects/:id/merge_requests/:iid/discussions` (array). */
|
|
51
|
-
export declare const gitlabDiscussionsSchema: z.ZodMiniArray<z.ZodMiniObject<{
|
|
52
|
-
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
53
|
-
notes: z.ZodMiniArray<z.ZodMiniObject<{
|
|
54
|
-
body: z.ZodMiniString<string>;
|
|
55
|
-
resolvable: z.ZodMiniBoolean<boolean>;
|
|
56
|
-
resolved: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
57
|
-
system: z.ZodMiniBoolean<boolean>;
|
|
58
|
-
type: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
59
|
-
created_at: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
60
|
-
position: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
61
|
-
new_path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
62
|
-
}, z.core.$strip>>;
|
|
63
|
-
author: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
64
|
-
username: z.ZodMiniString<string>;
|
|
65
|
-
}, z.core.$strip>>;
|
|
66
|
-
}, z.core.$strip>>;
|
|
67
|
-
}, z.core.$strip>>;
|
|
68
|
-
export type GitLabMr = z.infer<typeof gitlabMrSchema>;
|
|
69
|
-
export type GitLabMrList = z.infer<typeof gitlabMrListSchema>;
|
|
70
|
-
export type GitLabNote = z.infer<typeof gitlabNoteSchema>;
|
|
71
|
-
export type GitLabDiscussion = z.infer<typeof gitlabDiscussionSchema>;
|
|
72
|
-
export type GitLabDiscussions = z.infer<typeof gitlabDiscussionsSchema>;
|
|
73
|
-
//# sourceMappingURL=gitlab-mr.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gitlab-mr.d.ts","sourceRoot":"","sources":["../../src/schemas/gitlab-mr.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,0CAA0C;AAC1C,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC;AAEH,uEAAuE;AACvE,eAAO,MAAM,kBAAkB;;;;kBAA0B,CAAC;AAE1D,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;iBAa3B,CAAC;AAEH,2DAA2D;AAC3D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;iBAGjC,CAAC;AAEH,iFAAiF;AACjF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;kBAAkC,CAAC;AAEvE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schemas for GitLab Merge Request API responses.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from 'zod/mini';
|
|
5
|
-
/** A single MR from the list endpoint. */
|
|
6
|
-
export const gitlabMrSchema = z.object({
|
|
7
|
-
iid: z.number(),
|
|
8
|
-
web_url: z.string(),
|
|
9
|
-
detailed_merge_status: z.optional(z.string()),
|
|
10
|
-
});
|
|
11
|
-
/** Response from `GET /projects/:id/merge_requests` (array of MRs). */
|
|
12
|
-
export const gitlabMrListSchema = z.array(gitlabMrSchema);
|
|
13
|
-
/** A single note within an MR discussion. */
|
|
14
|
-
export const gitlabNoteSchema = z.object({
|
|
15
|
-
body: z.string(),
|
|
16
|
-
resolvable: z.boolean(),
|
|
17
|
-
resolved: z.optional(z.boolean()),
|
|
18
|
-
system: z.boolean(),
|
|
19
|
-
type: z.optional(z.nullable(z.string())),
|
|
20
|
-
created_at: z.optional(z.string()),
|
|
21
|
-
position: z.optional(z.object({
|
|
22
|
-
new_path: z.optional(z.string()),
|
|
23
|
-
})),
|
|
24
|
-
author: z.optional(z.object({ username: z.string() })),
|
|
25
|
-
});
|
|
26
|
-
/** A single MR discussion (contains one or more notes). */
|
|
27
|
-
export const gitlabDiscussionSchema = z.object({
|
|
28
|
-
id: z.optional(z.string()),
|
|
29
|
-
notes: z.array(gitlabNoteSchema),
|
|
30
|
-
});
|
|
31
|
-
/** Response from `GET /projects/:id/merge_requests/:iid/discussions` (array). */
|
|
32
|
-
export const gitlabDiscussionsSchema = z.array(gitlabDiscussionSchema);
|
|
33
|
-
//# sourceMappingURL=gitlab-mr.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gitlab-mr.js","sourceRoot":"","sources":["../../src/schemas/gitlab-mr.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,0CAA0C;AAC1C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC9C,CAAC,CAAC;AAEH,uEAAuE;AACvE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,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import { z } from 'zod/mini';
|
|
5
|
-
/** Response from `POST /rest/api/3/search/jql`. */
|
|
6
|
-
export declare const jiraSearchResponseSchema: z.ZodMiniObject<{
|
|
7
|
-
total: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
8
|
-
isLast: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
9
|
-
issues: z.ZodMiniArray<z.ZodMiniObject<{
|
|
10
|
-
key: z.ZodMiniString<string>;
|
|
11
|
-
fields: z.ZodMiniObject<{
|
|
12
|
-
summary: z.ZodMiniString<string>;
|
|
13
|
-
description: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
14
|
-
issuelinks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
15
|
-
type: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
16
|
-
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
17
|
-
}, z.core.$strip>>;
|
|
18
|
-
inwardIssue: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
19
|
-
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
20
|
-
}, z.core.$strip>>;
|
|
21
|
-
}, z.core.$strip>>>;
|
|
22
|
-
parent: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
23
|
-
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
24
|
-
}, z.core.$strip>>;
|
|
25
|
-
customfield_10014: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
/** Response from `GET /rest/api/3/issue/{key}/transitions`. */
|
|
30
|
-
export declare const jiraTransitionsResponseSchema: z.ZodMiniObject<{
|
|
31
|
-
transitions: z.ZodMiniArray<z.ZodMiniObject<{
|
|
32
|
-
id: z.ZodMiniString<string>;
|
|
33
|
-
name: z.ZodMiniString<string>;
|
|
34
|
-
}, z.core.$strip>>;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
/** Response from `GET /rest/api/3/issue/{key}?fields=issuelinks`. */
|
|
37
|
-
export declare const jiraIssueLinksResponseSchema: z.ZodMiniObject<{
|
|
38
|
-
fields: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
39
|
-
issuelinks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
40
|
-
type: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
41
|
-
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
|
-
inwardIssue: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
44
|
-
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
45
|
-
fields: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
46
|
-
status: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
47
|
-
statusCategory: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
48
|
-
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
}, z.core.$strip>>;
|
|
51
|
-
}, z.core.$strip>>;
|
|
52
|
-
}, z.core.$strip>>;
|
|
53
|
-
}, z.core.$strip>>>;
|
|
54
|
-
}, z.core.$strip>>;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
export type JiraSearchResponse = z.infer<typeof jiraSearchResponseSchema>;
|
|
57
|
-
export type JiraTransitionsResponse = z.infer<typeof jiraTransitionsResponseSchema>;
|
|
58
|
-
export type JiraIssueLinksResponse = z.infer<typeof jiraIssueLinksResponseSchema>;
|
|
59
|
-
//# sourceMappingURL=jira.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jira.d.ts","sourceRoot":"","sources":["../../src/schemas/jira.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAuB7B,mDAAmD;AACnD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;iBAInC,CAAC;AAQH,+DAA+D;AAC/D,eAAO,MAAM,6BAA6B;;;;;iBAExC,CAAC;AAuBH,qEAAqE;AACrE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;iBAMvC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
|
package/dist/schemas/jira.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schemas for Jira Cloud REST API responses.
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod/mini';
|
|
5
|
-
/** A single issue link in a Jira issue. */
|
|
6
|
-
const jiraIssueLinkSchema = z.object({
|
|
7
|
-
type: z.optional(z.object({ name: z.optional(z.string()) })),
|
|
8
|
-
inwardIssue: z.optional(z.object({ key: z.optional(z.string()) })),
|
|
9
|
-
});
|
|
10
|
-
/** The fields returned for a single Jira issue. */
|
|
11
|
-
const jiraIssueFieldsSchema = z.object({
|
|
12
|
-
summary: z.string(),
|
|
13
|
-
description: z.optional(z.unknown()),
|
|
14
|
-
issuelinks: z.optional(z.array(jiraIssueLinkSchema)),
|
|
15
|
-
parent: z.optional(z.object({ key: z.optional(z.string()) })),
|
|
16
|
-
customfield_10014: z.optional(z.nullable(z.string())),
|
|
17
|
-
});
|
|
18
|
-
/** A single Jira issue from the search response. */
|
|
19
|
-
const jiraIssueSchema = z.object({
|
|
20
|
-
key: z.string(),
|
|
21
|
-
fields: jiraIssueFieldsSchema,
|
|
22
|
-
});
|
|
23
|
-
/** Response from `POST /rest/api/3/search/jql`. */
|
|
24
|
-
export const jiraSearchResponseSchema = z.object({
|
|
25
|
-
total: z.optional(z.number()),
|
|
26
|
-
isLast: z.optional(z.boolean()),
|
|
27
|
-
issues: z.array(jiraIssueSchema),
|
|
28
|
-
});
|
|
29
|
-
/** A single transition from `GET /rest/api/3/issue/{key}/transitions`. */
|
|
30
|
-
const jiraTransitionSchema = z.object({
|
|
31
|
-
id: z.string(),
|
|
32
|
-
name: z.string(),
|
|
33
|
-
});
|
|
34
|
-
/** Response from `GET /rest/api/3/issue/{key}/transitions`. */
|
|
35
|
-
export const jiraTransitionsResponseSchema = z.object({
|
|
36
|
-
transitions: z.array(jiraTransitionSchema),
|
|
37
|
-
});
|
|
38
|
-
/** Schema for a single issue link with full status info (used by fetchBlockerStatus). */
|
|
39
|
-
const jiraBlockerIssueLinkSchema = z.object({
|
|
40
|
-
type: z.optional(z.object({ name: z.optional(z.string()) })),
|
|
41
|
-
inwardIssue: z.optional(z.object({
|
|
42
|
-
key: z.optional(z.string()),
|
|
43
|
-
fields: z.optional(z.object({
|
|
44
|
-
status: z.optional(z.object({
|
|
45
|
-
statusCategory: z.optional(z.object({ key: z.optional(z.string()) })),
|
|
46
|
-
})),
|
|
47
|
-
})),
|
|
48
|
-
})),
|
|
49
|
-
});
|
|
50
|
-
/** Response from `GET /rest/api/3/issue/{key}?fields=issuelinks`. */
|
|
51
|
-
export const jiraIssueLinksResponseSchema = z.object({
|
|
52
|
-
fields: z.optional(z.object({
|
|
53
|
-
issuelinks: z.optional(z.array(jiraBlockerIssueLinkSchema)),
|
|
54
|
-
})),
|
|
55
|
-
});
|
|
56
|
-
//# sourceMappingURL=jira.js.map
|
package/dist/schemas/jira.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jira.js","sourceRoot":"","sources":["../../src/schemas/jira.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B,2CAA2C;AAC3C,MAAM,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BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;KAC5D,CAAC,CACH;CACF,CAAC,CAAC"}
|
package/dist/schemas/linear.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schemas for Linear GraphQL API responses.
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod/mini';
|
|
5
|
-
/** A single Linear issue node from the assignedIssues query. */
|
|
6
|
-
declare const linearIssueNodeSchema: z.ZodMiniObject<{
|
|
7
|
-
id: z.ZodMiniString<string>;
|
|
8
|
-
identifier: z.ZodMiniString<string>;
|
|
9
|
-
title: z.ZodMiniString<string>;
|
|
10
|
-
description: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
11
|
-
parent: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
12
|
-
identifier: z.ZodMiniString<string>;
|
|
13
|
-
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
14
|
-
}, z.core.$strip>>>;
|
|
15
|
-
labels: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
16
|
-
nodes: z.ZodMiniArray<z.ZodMiniObject<{
|
|
17
|
-
name: z.ZodMiniString<string>;
|
|
18
|
-
}, z.core.$strip>>;
|
|
19
|
-
}, z.core.$strip>>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
/** Response from the `viewer.assignedIssues` GraphQL query. */
|
|
22
|
-
export declare const linearIssuesResponseSchema: z.ZodMiniObject<{
|
|
23
|
-
data: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
24
|
-
viewer: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
25
|
-
assignedIssues: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
26
|
-
nodes: z.ZodMiniArray<z.ZodMiniObject<{
|
|
27
|
-
id: z.ZodMiniString<string>;
|
|
28
|
-
identifier: z.ZodMiniString<string>;
|
|
29
|
-
title: z.ZodMiniString<string>;
|
|
30
|
-
description: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
31
|
-
parent: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
32
|
-
identifier: z.ZodMiniString<string>;
|
|
33
|
-
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
34
|
-
}, z.core.$strip>>>;
|
|
35
|
-
labels: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
36
|
-
nodes: z.ZodMiniArray<z.ZodMiniObject<{
|
|
37
|
-
name: z.ZodMiniString<string>;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
}, z.core.$strip>>;
|
|
41
|
-
}, z.core.$strip>>;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
/** Response from the `viewer` ping query. */
|
|
46
|
-
export declare const linearViewerResponseSchema: z.ZodMiniObject<{
|
|
47
|
-
data: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
48
|
-
viewer: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
49
|
-
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
50
|
-
}, z.core.$strip>>;
|
|
51
|
-
}, z.core.$strip>>;
|
|
52
|
-
}, z.core.$strip>;
|
|
53
|
-
/** Response from the `workflowStates` query. */
|
|
54
|
-
export declare const linearWorkflowStatesResponseSchema: z.ZodMiniObject<{
|
|
55
|
-
data: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
56
|
-
workflowStates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
57
|
-
nodes: z.ZodMiniArray<z.ZodMiniObject<{
|
|
58
|
-
id: z.ZodMiniString<string>;
|
|
59
|
-
}, z.core.$strip>>;
|
|
60
|
-
}, z.core.$strip>>;
|
|
61
|
-
}, z.core.$strip>>;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
/** Response from the `issueUpdate` mutation. */
|
|
64
|
-
export declare const linearIssueUpdateResponseSchema: z.ZodMiniObject<{
|
|
65
|
-
data: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
66
|
-
issueUpdate: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
67
|
-
success: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
68
|
-
}, z.core.$strip>>;
|
|
69
|
-
}, z.core.$strip>>;
|
|
70
|
-
}, z.core.$strip>;
|
|
71
|
-
/** Response from the `issue(id) { relations { ... } }` query. */
|
|
72
|
-
export declare const linearIssueRelationsResponseSchema: z.ZodMiniObject<{
|
|
73
|
-
data: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
74
|
-
issue: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
75
|
-
relations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
76
|
-
nodes: z.ZodMiniArray<z.ZodMiniObject<{
|
|
77
|
-
type: z.ZodMiniString<string>;
|
|
78
|
-
relatedIssue: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
79
|
-
state: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
80
|
-
type: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
81
|
-
}, z.core.$strip>>;
|
|
82
|
-
}, z.core.$strip>>;
|
|
83
|
-
}, z.core.$strip>>;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
}, z.core.$strip>>;
|
|
86
|
-
}, z.core.$strip>>;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
/** Response from the `issueSearch` query. */
|
|
89
|
-
export declare const linearIssueSearchResponseSchema: z.ZodMiniObject<{
|
|
90
|
-
data: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
91
|
-
issueSearch: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
92
|
-
nodes: z.ZodMiniArray<z.ZodMiniObject<{
|
|
93
|
-
state: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
94
|
-
type: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
95
|
-
}, z.core.$strip>>;
|
|
96
|
-
}, z.core.$strip>>;
|
|
97
|
-
}, z.core.$strip>>;
|
|
98
|
-
}, z.core.$strip>>;
|
|
99
|
-
}, z.core.$strip>;
|
|
100
|
-
export type LinearIssueNode = z.infer<typeof linearIssueNodeSchema>;
|
|
101
|
-
export type LinearIssuesResponse = z.infer<typeof linearIssuesResponseSchema>;
|
|
102
|
-
export type LinearViewerResponse = z.infer<typeof linearViewerResponseSchema>;
|
|
103
|
-
export type LinearWorkflowStatesResponse = z.infer<typeof linearWorkflowStatesResponseSchema>;
|
|
104
|
-
export type LinearIssueUpdateResponse = z.infer<typeof linearIssueUpdateResponseSchema>;
|
|
105
|
-
export type LinearIssueRelationsResponse = z.infer<typeof linearIssueRelationsResponseSchema>;
|
|
106
|
-
export type LinearIssueSearchResponse = z.infer<typeof linearIssueSearchResponseSchema>;
|
|
107
|
-
export {};
|
|
108
|
-
//# sourceMappingURL=linear.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linear.d.ts","sourceRoot":"","sources":["../../src/schemas/linear.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B,gEAAgE;AAChE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;iBAsBzB,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;iBAcrC,CAAC;AAEH,6CAA6C;AAC7C,eAAO,MAAM,0BAA0B;;;;;;iBAUrC,CAAC;AAEH,gDAAgD;AAChD,eAAO,MAAM,kCAAkC;;;;;;;;iBAU7C,CAAC;AAEH,gDAAgD;AAChD,eAAO,MAAM,+BAA+B;;;;;;iBAU1C,CAAC;AAYH,iEAAiE;AACjE,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;iBAc7C,CAAC;AAOH,6CAA6C;AAC7C,eAAO,MAAM,+BAA+B;;;;;;;;;;iBAU1C,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC"}
|
package/dist/schemas/linear.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schemas for Linear GraphQL API responses.
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod/mini';
|
|
5
|
-
/** A single Linear issue node from the assignedIssues query. */
|
|
6
|
-
const linearIssueNodeSchema = z.object({
|
|
7
|
-
id: z.string(),
|
|
8
|
-
identifier: z.string(),
|
|
9
|
-
title: z.string(),
|
|
10
|
-
description: z.optional(z.nullable(z.string())),
|
|
11
|
-
parent: z.optional(z.nullable(z.object({
|
|
12
|
-
identifier: z.string(),
|
|
13
|
-
title: z.optional(z.string()),
|
|
14
|
-
}))),
|
|
15
|
-
labels: z.optional(z.object({
|
|
16
|
-
nodes: z.array(z.object({
|
|
17
|
-
name: z.string(),
|
|
18
|
-
})),
|
|
19
|
-
})),
|
|
20
|
-
});
|
|
21
|
-
/** Response from the `viewer.assignedIssues` GraphQL query. */
|
|
22
|
-
export const linearIssuesResponseSchema = z.object({
|
|
23
|
-
data: z.optional(z.object({
|
|
24
|
-
viewer: z.optional(z.object({
|
|
25
|
-
assignedIssues: z.optional(z.object({
|
|
26
|
-
nodes: z.array(linearIssueNodeSchema),
|
|
27
|
-
})),
|
|
28
|
-
})),
|
|
29
|
-
})),
|
|
30
|
-
});
|
|
31
|
-
/** Response from the `viewer` ping query. */
|
|
32
|
-
export const linearViewerResponseSchema = z.object({
|
|
33
|
-
data: z.optional(z.object({
|
|
34
|
-
viewer: z.optional(z.object({
|
|
35
|
-
id: z.optional(z.string()),
|
|
36
|
-
})),
|
|
37
|
-
})),
|
|
38
|
-
});
|
|
39
|
-
/** Response from the `workflowStates` query. */
|
|
40
|
-
export const linearWorkflowStatesResponseSchema = z.object({
|
|
41
|
-
data: z.optional(z.object({
|
|
42
|
-
workflowStates: z.optional(z.object({
|
|
43
|
-
nodes: z.array(z.object({ id: z.string() })),
|
|
44
|
-
})),
|
|
45
|
-
})),
|
|
46
|
-
});
|
|
47
|
-
/** Response from the `issueUpdate` mutation. */
|
|
48
|
-
export const linearIssueUpdateResponseSchema = z.object({
|
|
49
|
-
data: z.optional(z.object({
|
|
50
|
-
issueUpdate: z.optional(z.object({
|
|
51
|
-
success: z.optional(z.boolean()),
|
|
52
|
-
})),
|
|
53
|
-
})),
|
|
54
|
-
});
|
|
55
|
-
/** A single relation node from the `issue.relations` query. */
|
|
56
|
-
const linearRelationNodeSchema = z.object({
|
|
57
|
-
type: z.string(),
|
|
58
|
-
relatedIssue: z.optional(z.object({
|
|
59
|
-
state: z.optional(z.object({ type: z.optional(z.string()) })),
|
|
60
|
-
})),
|
|
61
|
-
});
|
|
62
|
-
/** Response from the `issue(id) { relations { ... } }` query. */
|
|
63
|
-
export const linearIssueRelationsResponseSchema = z.object({
|
|
64
|
-
data: z.optional(z.object({
|
|
65
|
-
issue: z.optional(z.object({
|
|
66
|
-
relations: z.optional(z.object({
|
|
67
|
-
nodes: z.array(linearRelationNodeSchema),
|
|
68
|
-
})),
|
|
69
|
-
})),
|
|
70
|
-
})),
|
|
71
|
-
});
|
|
72
|
-
/** A single search result node with state info. */
|
|
73
|
-
const linearSearchNodeSchema = z.object({
|
|
74
|
-
state: z.optional(z.object({ type: z.optional(z.string()) })),
|
|
75
|
-
});
|
|
76
|
-
/** Response from the `issueSearch` query. */
|
|
77
|
-
export const linearIssueSearchResponseSchema = z.object({
|
|
78
|
-
data: z.optional(z.object({
|
|
79
|
-
issueSearch: z.optional(z.object({
|
|
80
|
-
nodes: z.array(linearSearchNodeSchema),
|
|
81
|
-
})),
|
|
82
|
-
})),
|
|
83
|
-
});
|
|
84
|
-
//# sourceMappingURL=linear.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linear.js","sourceRoot":"","sources":["../../src/schemas/linear.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B,gEAAgE;AAChE,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,QAAQ,CACR,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KAC9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;AACnD,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;CAC9D,CAAC,CAAC;AAEH,6CAA6C;AAC7C,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,CAAC,CAAC,QAAQ,CACd,CAAC,CAAC,MAAM,CAAC;QACP,WAAW,EAAE,CAAC,CAAC,QAAQ,CACrB,CAAC,CAAC,MAAM,CAAC;YACP,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC;SACvC,CAAC,CACH;KACF,CAAC,CACH;CACF,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check whether the script output contains a stop condition.
|
|
3
|
-
*
|
|
4
|
-
* @param output - The captured stdout from a `clancy-once` run.
|
|
5
|
-
* @returns An object with `stop` flag and optional `reason`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function checkStopCondition(output: string): {
|
|
8
|
-
stop: boolean;
|
|
9
|
-
reason?: string;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Run the AFK loop.
|
|
13
|
-
*
|
|
14
|
-
* Executes the `clancy-once` script repeatedly up to `maxIterations` times,
|
|
15
|
-
* checking for stop conditions after each run.
|
|
16
|
-
*
|
|
17
|
-
* @param scriptDir - The directory containing `clancy-once.js`.
|
|
18
|
-
* @param maxIterations - Maximum number of iterations (default: 5).
|
|
19
|
-
*/
|
|
20
|
-
export declare function runAfkLoop(scriptDir: string, maxIterations?: number): Promise<void>;
|
|
21
|
-
//# sourceMappingURL=afk.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"afk.d.ts","sourceRoot":"","sources":["../../../src/scripts/afk/afk.ts"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG;IAClD,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAiBA;AAED;;;;;;;;GAQG;AACH,wBAAsB,UAAU,CAC9B,SAAS,EAAE,MAAM,EACjB,aAAa,SAAI,GAChB,OAAO,CAAC,IAAI,CAAC,CA0Ff"}
|