@blogic-cz/agent-tools 1.7.5 → 1.9.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 +2 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/types.d.ts +1 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/credential-guard/index.d.ts.map +1 -1
- package/dist/db-tool/service.d.ts.map +1 -1
- package/dist/gh-tool/branch.d.ts +2 -3
- package/dist/gh-tool/branch.d.ts.map +1 -1
- package/dist/gh-tool/environment.d.ts +1 -1
- package/dist/gh-tool/environment.d.ts.map +1 -1
- package/dist/gh-tool/gist.d.ts +8 -28
- package/dist/gh-tool/gist.d.ts.map +1 -1
- package/dist/gh-tool/issue/commands.d.ts +11 -9
- package/dist/gh-tool/issue/commands.d.ts.map +1 -1
- package/dist/gh-tool/issue/core.d.ts +116 -9
- package/dist/gh-tool/issue/core.d.ts.map +1 -1
- package/dist/gh-tool/issue/triage.d.ts +6 -6
- package/dist/gh-tool/issue/triage.d.ts.map +1 -1
- package/dist/gh-tool/label.d.ts +20 -0
- package/dist/gh-tool/label.d.ts.map +1 -0
- package/dist/gh-tool/pr/commands.d.ts +53 -46
- package/dist/gh-tool/pr/commands.d.ts.map +1 -1
- package/dist/gh-tool/pr/core.d.ts +156 -86
- package/dist/gh-tool/pr/core.d.ts.map +1 -1
- package/dist/gh-tool/pr/review.d.ts +16 -16
- package/dist/gh-tool/pr/review.d.ts.map +1 -1
- package/dist/gh-tool/pr/snapshot.d.ts +9 -0
- package/dist/gh-tool/pr/snapshot.d.ts.map +1 -0
- package/dist/gh-tool/pr/stack-read.d.ts +1 -6
- package/dist/gh-tool/pr/stack-read.d.ts.map +1 -1
- package/dist/gh-tool/pr/stack.d.ts +3 -3
- package/dist/gh-tool/pr/stack.d.ts.map +1 -1
- package/dist/gh-tool/{api.d.ts → read/api.d.ts} +9 -3
- package/dist/gh-tool/read/api.d.ts.map +1 -0
- package/dist/gh-tool/read/cache.d.ts +44 -0
- package/dist/gh-tool/read/cache.d.ts.map +1 -0
- package/dist/gh-tool/read/catalog.d.ts +170 -0
- package/dist/gh-tool/read/catalog.d.ts.map +1 -0
- package/dist/gh-tool/read/classes.d.ts +98 -0
- package/dist/gh-tool/read/classes.d.ts.map +1 -0
- package/dist/gh-tool/read/commands.d.ts +3 -0
- package/dist/gh-tool/read/commands.d.ts.map +1 -0
- package/dist/gh-tool/read/commits.d.ts +10 -0
- package/dist/gh-tool/read/commits.d.ts.map +1 -0
- package/dist/gh-tool/read/gated.d.ts +14 -0
- package/dist/gh-tool/read/gated.d.ts.map +1 -0
- package/dist/gh-tool/read/index.d.ts +5 -0
- package/dist/gh-tool/read/index.d.ts.map +1 -0
- package/dist/gh-tool/read/issues.d.ts +80 -0
- package/dist/gh-tool/read/issues.d.ts.map +1 -0
- package/dist/gh-tool/read/keys.d.ts +64 -0
- package/dist/gh-tool/read/keys.d.ts.map +1 -0
- package/dist/gh-tool/read/porcelain.d.ts +68 -0
- package/dist/gh-tool/read/porcelain.d.ts.map +1 -0
- package/dist/gh-tool/read/pulls.d.ts +137 -0
- package/dist/gh-tool/read/pulls.d.ts.map +1 -0
- package/dist/gh-tool/read/reads.d.ts +220 -0
- package/dist/gh-tool/read/reads.d.ts.map +1 -0
- package/dist/gh-tool/read/rest.d.ts +49 -0
- package/dist/gh-tool/read/rest.d.ts.map +1 -0
- package/dist/gh-tool/read/review-guards.d.ts +20 -0
- package/dist/gh-tool/read/review-guards.d.ts.map +1 -0
- package/dist/gh-tool/read/review-model.d.ts +190 -0
- package/dist/gh-tool/read/review-model.d.ts.map +1 -0
- package/dist/gh-tool/read/reviews.d.ts +9 -0
- package/dist/gh-tool/read/reviews.d.ts.map +1 -0
- package/dist/gh-tool/read/stacks.d.ts +7 -0
- package/dist/gh-tool/read/stacks.d.ts.map +1 -0
- package/dist/gh-tool/read/store.d.ts +70 -0
- package/dist/gh-tool/read/store.d.ts.map +1 -0
- package/dist/gh-tool/{service.d.ts → read/transport.d.ts} +5 -3
- package/dist/gh-tool/read/transport.d.ts.map +1 -0
- package/dist/gh-tool/read/waits.d.ts +22 -0
- package/dist/gh-tool/read/waits.d.ts.map +1 -0
- package/dist/gh-tool/read/writes.d.ts +16 -0
- package/dist/gh-tool/read/writes.d.ts.map +1 -0
- package/dist/gh-tool/release.d.ts +10 -26
- package/dist/gh-tool/release.d.ts.map +1 -1
- package/dist/gh-tool/repo.d.ts +9 -4
- package/dist/gh-tool/repo.d.ts.map +1 -1
- package/dist/gh-tool/types.d.ts +1 -1
- package/dist/gh-tool/types.d.ts.map +1 -1
- package/dist/gh-tool/workflow.d.ts +43 -21
- package/dist/gh-tool/workflow.d.ts.map +1 -1
- package/dist/observability-tool/shared.d.ts.map +1 -1
- package/dist/shared/content-security.d.ts +2 -0
- package/dist/shared/content-security.d.ts.map +1 -1
- package/package.json +7 -6
- package/schemas/agent-tools.schema.json +5 -0
- package/src/api-tool/proxy-entry.ts +3 -1
- package/src/config/loader.ts +1 -0
- package/src/config/types.ts +1 -0
- package/src/credential-guard/index.ts +169 -1
- package/src/db-tool/service.ts +4 -1
- package/src/gh-tool/branch.ts +5 -8
- package/src/gh-tool/environment.ts +2 -1
- package/src/gh-tool/gist.ts +8 -35
- package/src/gh-tool/issue/commands.ts +12 -2
- package/src/gh-tool/issue/core.ts +58 -122
- package/src/gh-tool/issue/triage.ts +4 -26
- package/src/gh-tool/label.ts +57 -0
- package/src/gh-tool/main.ts +24 -4
- package/src/gh-tool/pr/commands.ts +17 -15
- package/src/gh-tool/pr/core.ts +486 -582
- package/src/gh-tool/pr/review.ts +106 -454
- package/src/gh-tool/pr/snapshot.ts +23 -0
- package/src/gh-tool/pr/stack-read.ts +1 -73
- package/src/gh-tool/pr/stack.ts +37 -36
- package/src/gh-tool/{api.ts → read/api.ts} +40 -7
- package/src/gh-tool/read/cache.ts +192 -0
- package/src/gh-tool/read/catalog.ts +310 -0
- package/src/gh-tool/read/classes.ts +31 -0
- package/src/gh-tool/read/commands.ts +25 -0
- package/src/gh-tool/read/commits.ts +28 -0
- package/src/gh-tool/read/gated.ts +56 -0
- package/src/gh-tool/read/index.ts +4 -0
- package/src/gh-tool/read/issues.ts +124 -0
- package/src/gh-tool/read/keys.ts +104 -0
- package/src/gh-tool/read/porcelain.ts +58 -0
- package/src/gh-tool/read/pulls.ts +266 -0
- package/src/gh-tool/read/reads.ts +306 -0
- package/src/gh-tool/read/rest.ts +111 -0
- package/src/gh-tool/read/review-guards.ts +61 -0
- package/src/gh-tool/read/review-model.ts +286 -0
- package/src/gh-tool/read/reviews.ts +114 -0
- package/src/gh-tool/read/stacks.ts +73 -0
- package/src/gh-tool/read/store.ts +504 -0
- package/src/gh-tool/{service.ts → read/transport.ts} +26 -6
- package/src/gh-tool/read/waits.ts +52 -0
- package/src/gh-tool/read/writes.ts +37 -0
- package/src/gh-tool/release.ts +15 -168
- package/src/gh-tool/repo.ts +26 -78
- package/src/gh-tool/types.ts +1 -1
- package/src/gh-tool/workflow.ts +123 -214
- package/src/observability-tool/shared.ts +2 -1
- package/src/shared/content-security.ts +10 -1
- package/src/shared/credential-patterns.ts +1 -1
- package/dist/gh-tool/api.d.ts.map +0 -1
- package/dist/gh-tool/pr/check-status-cache.d.ts +0 -6
- package/dist/gh-tool/pr/check-status-cache.d.ts.map +0 -1
- package/dist/gh-tool/service.d.ts.map +0 -1
- package/src/gh-tool/pr/check-status-cache.ts +0 -142
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Context, Effect } from "effect";
|
|
2
|
+
import type { ReadKey, RepoRef, Tag } from "./keys";
|
|
3
|
+
import type { CacheClass } from "./classes";
|
|
4
|
+
import { FileStore } from "./store";
|
|
5
|
+
import type { ReadFence } from "./store";
|
|
6
|
+
type CacheSession = {
|
|
7
|
+
store: FileStore | null;
|
|
8
|
+
warned: boolean;
|
|
9
|
+
staleWarned?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const ReadCache: Context.Reference<CacheSession | null>;
|
|
12
|
+
export declare const withReadCache: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
13
|
+
export type Fetched<A> = {
|
|
14
|
+
readonly kind: "fresh";
|
|
15
|
+
readonly value: A;
|
|
16
|
+
readonly etag?: string;
|
|
17
|
+
} | {
|
|
18
|
+
readonly kind: "unchanged";
|
|
19
|
+
};
|
|
20
|
+
export declare const cachedRead: <A, E, R>(opts: {
|
|
21
|
+
readonly key: ReadKey;
|
|
22
|
+
readonly policy: CacheClass;
|
|
23
|
+
readonly decode: (value: unknown) => A;
|
|
24
|
+
readonly fetch: (previous: {
|
|
25
|
+
value: A;
|
|
26
|
+
etag?: string;
|
|
27
|
+
valid: boolean;
|
|
28
|
+
} | null) => Effect.Effect<Fetched<A>, E, R>;
|
|
29
|
+
readonly immutableWhen?: (value: A) => boolean;
|
|
30
|
+
readonly policyForValue?: (value: A) => CacheClass;
|
|
31
|
+
readonly consistency?: "cached" | "origin";
|
|
32
|
+
readonly validateOrigin?: boolean;
|
|
33
|
+
readonly cacheableWhen?: (value: A) => boolean;
|
|
34
|
+
}) => Effect.Effect<A, E, R>;
|
|
35
|
+
export declare const readFence: Effect.Effect<{
|
|
36
|
+
readonly resetId: string;
|
|
37
|
+
readonly generation: number;
|
|
38
|
+
} | null, never, never>;
|
|
39
|
+
export declare const seedRead: <A>(key: ReadKey, value: A, clock: ReadFence | null) => Effect.Effect<void, never, never>;
|
|
40
|
+
export declare const invalidate: (tags: readonly Tag[]) => Effect.Effect<void, never, never>;
|
|
41
|
+
export declare const cacheStats: Effect.Effect<import("./store").StoreStats, never, never>;
|
|
42
|
+
export declare const clearCache: (repo: RepoRef | null) => Effect.Effect<boolean, never, never>;
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/read/cache.ts"],"names":[],"mappings":"A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AAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,KACzD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC;IAC/C,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,UAAU,CAAC;IACnD,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3C,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC;CAChD,KAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAmFrB,CAAC;AAEL,eAAO,MAAM,SAAS;;;uBAKpB,CAAC;AAEH,eAAO,MAAM,QAAQ,GAAI,CAAC,OAAO,OAAO,SAAS,CAAC,SAAS,SAAS,GAAG,IAAI,sCAoBvE,CAAC;AAEL,eAAO,MAAM,UAAU,SAAU,SAAS,GAAG,EAAE,sCAM3C,CAAC;AAEL,eAAO,MAAM,UAAU,2DAKrB,CAAC;AAEH,eAAO,MAAM,UAAU,SAAU,OAAO,GAAG,IAAI,yCAM3C,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
import { GitHubService } from "#gh/read/transport";
|
|
3
|
+
type OrgRepo = {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string | null;
|
|
6
|
+
visibility: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
url: string;
|
|
9
|
+
isArchived: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const listOrgRepos: (opts: {
|
|
12
|
+
org: string;
|
|
13
|
+
limit: number;
|
|
14
|
+
visibility: string | null;
|
|
15
|
+
}) => Effect.Effect<OrgRepo[], import("#gh/read/transport").GhError, GitHubService>;
|
|
16
|
+
export declare const searchOrgCode: (opts: {
|
|
17
|
+
org: string;
|
|
18
|
+
query: string;
|
|
19
|
+
limit: number;
|
|
20
|
+
}) => Effect.Effect<{
|
|
21
|
+
repo: string;
|
|
22
|
+
path: string;
|
|
23
|
+
url: string;
|
|
24
|
+
}[], import("#gh/read/transport").GhError, GitHubService>;
|
|
25
|
+
export type ReleaseListItem = {
|
|
26
|
+
tagName: string;
|
|
27
|
+
name: string;
|
|
28
|
+
isDraft: boolean;
|
|
29
|
+
isPrerelease: boolean;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
publishedAt: string | null;
|
|
32
|
+
};
|
|
33
|
+
export type ReleaseAuthor = {
|
|
34
|
+
login: string;
|
|
35
|
+
};
|
|
36
|
+
export type ReleaseAsset = {
|
|
37
|
+
name: string;
|
|
38
|
+
size: number;
|
|
39
|
+
downloadCount: number;
|
|
40
|
+
contentType: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
url: string;
|
|
44
|
+
};
|
|
45
|
+
export type ReleaseDetail = {
|
|
46
|
+
tagName: string;
|
|
47
|
+
name: string;
|
|
48
|
+
isDraft: boolean;
|
|
49
|
+
isPrerelease: boolean;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
publishedAt: string | null;
|
|
52
|
+
url: string;
|
|
53
|
+
body: string;
|
|
54
|
+
targetCommitish: string;
|
|
55
|
+
author: ReleaseAuthor | null;
|
|
56
|
+
assets: ReleaseAsset[];
|
|
57
|
+
};
|
|
58
|
+
export type ReleaseCreateResult = {
|
|
59
|
+
created: true;
|
|
60
|
+
tagName: string;
|
|
61
|
+
name: string;
|
|
62
|
+
url: string;
|
|
63
|
+
isDraft: boolean;
|
|
64
|
+
isPrerelease: boolean;
|
|
65
|
+
};
|
|
66
|
+
export type ReleaseEditResult = {
|
|
67
|
+
edited: true;
|
|
68
|
+
tagName: string;
|
|
69
|
+
name: string;
|
|
70
|
+
url: string;
|
|
71
|
+
isDraft: boolean;
|
|
72
|
+
isPrerelease: boolean;
|
|
73
|
+
};
|
|
74
|
+
export type ReleaseDeleteResult = {
|
|
75
|
+
deleted: boolean;
|
|
76
|
+
tagName: string;
|
|
77
|
+
tagCleaned: boolean;
|
|
78
|
+
dryRun?: true;
|
|
79
|
+
message?: string;
|
|
80
|
+
};
|
|
81
|
+
export type LatestRelease = {
|
|
82
|
+
tagName: string;
|
|
83
|
+
name: string;
|
|
84
|
+
createdAt: string;
|
|
85
|
+
publishedAt: string | null;
|
|
86
|
+
isLatest: boolean;
|
|
87
|
+
};
|
|
88
|
+
export type ReleaseStatusResult = {
|
|
89
|
+
latestRelease: LatestRelease | null;
|
|
90
|
+
repo: {
|
|
91
|
+
owner: string;
|
|
92
|
+
name: string;
|
|
93
|
+
defaultBranch: string;
|
|
94
|
+
url: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export declare const listReleases: (opts: {
|
|
98
|
+
limit: number;
|
|
99
|
+
repo: string | null;
|
|
100
|
+
}) => Effect.Effect<ReleaseListItem[], import("#gh/read/transport").GhError, GitHubService>;
|
|
101
|
+
export declare const viewRelease: (opts: {
|
|
102
|
+
tag: string;
|
|
103
|
+
repo: string | null;
|
|
104
|
+
}) => Effect.Effect<ReleaseDetail, import("#gh/read/transport").GhError, GitHubService>;
|
|
105
|
+
export declare const releaseStatus: (repo: string | null) => Effect.Effect<ReleaseStatusResult, import("#gh/read/transport").GhError, GitHubService>;
|
|
106
|
+
export type GistApiFile = {
|
|
107
|
+
filename: string;
|
|
108
|
+
language: string | null;
|
|
109
|
+
type: string;
|
|
110
|
+
size: number;
|
|
111
|
+
truncated?: boolean;
|
|
112
|
+
content?: string;
|
|
113
|
+
};
|
|
114
|
+
export type GistApi = {
|
|
115
|
+
id: string;
|
|
116
|
+
description: string | null;
|
|
117
|
+
public: boolean;
|
|
118
|
+
html_url: string;
|
|
119
|
+
created_at: string;
|
|
120
|
+
updated_at: string;
|
|
121
|
+
owner: {
|
|
122
|
+
login: string;
|
|
123
|
+
} | null;
|
|
124
|
+
files: Record<string, GistApiFile>;
|
|
125
|
+
};
|
|
126
|
+
export type AsyncMergeResult = {
|
|
127
|
+
status: "pending" | "merged" | "enqueued" | "failed";
|
|
128
|
+
details?: {
|
|
129
|
+
message?: string;
|
|
130
|
+
uuid?: string;
|
|
131
|
+
sha?: string;
|
|
132
|
+
merge_method?: "squash" | "merge" | "rebase";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
export declare const passthrough: {
|
|
136
|
+
repoInfo: () => Effect.Effect<import("../types").RepoInfo, import("#gh/read/transport").GhError, GitHubService>;
|
|
137
|
+
listOrgRepos: (opts: {
|
|
138
|
+
org: string;
|
|
139
|
+
limit: number;
|
|
140
|
+
visibility: string | null;
|
|
141
|
+
}) => Effect.Effect<OrgRepo[], import("#gh/read/transport").GhError, GitHubService>;
|
|
142
|
+
searchOrgCode: (opts: {
|
|
143
|
+
org: string;
|
|
144
|
+
query: string;
|
|
145
|
+
limit: number;
|
|
146
|
+
}) => Effect.Effect<{
|
|
147
|
+
repo: string;
|
|
148
|
+
path: string;
|
|
149
|
+
url: string;
|
|
150
|
+
}[], import("#gh/read/transport").GhError, GitHubService>;
|
|
151
|
+
listReleases: (opts: {
|
|
152
|
+
limit: number;
|
|
153
|
+
repo: string | null;
|
|
154
|
+
}) => Effect.Effect<ReleaseListItem[], import("#gh/read/transport").GhError, GitHubService>;
|
|
155
|
+
viewRelease: (opts: {
|
|
156
|
+
tag: string;
|
|
157
|
+
repo: string | null;
|
|
158
|
+
}) => Effect.Effect<ReleaseDetail, import("#gh/read/transport").GhError, GitHubService>;
|
|
159
|
+
releaseStatus: (repo: string | null) => Effect.Effect<ReleaseStatusResult, import("#gh/read/transport").GhError, GitHubService>;
|
|
160
|
+
gistList: (limit: number) => Effect.Effect<GistApi[], import("#gh/read/transport").GhError, GitHubService>;
|
|
161
|
+
gistView: (id: string) => Effect.Effect<GistApi, import("#gh/read/transport").GhError, GitHubService>;
|
|
162
|
+
baseSha: (repo: {
|
|
163
|
+
owner: string;
|
|
164
|
+
name: string;
|
|
165
|
+
}, pr: number) => Effect.Effect<import("#gh/read/transport").GhResult, import("#gh/read/transport").GhError, GitHubService>;
|
|
166
|
+
asyncMergeStatus: (path: string) => Effect.Effect<AsyncMergeResult, import("#gh/read/transport").GhError, GitHubService>;
|
|
167
|
+
stackMergeStatus: (path: string) => Effect.Effect<import("./api").GitHubApiResponse<AsyncMergeResult>, import("#gh/read/transport").GhError, GitHubService>;
|
|
168
|
+
};
|
|
169
|
+
export {};
|
|
170
|
+
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/read/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAgBF,eAAO,MAAM,YAAY;SAClB,MAAM;WACJ,MAAM;gBACD,MAAM,GAAG,IAAI;mFAmBzB,CAAC;AAEH,eAAO,MAAM,aAAa;SACnB,MAAM;WACJ,MAAM;WACN,MAAM;;;;;yDAwBb,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAA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,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACpC,CAAC;AAUF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;IACrD,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;KAC9C,CAAC;CACH,CAAC;AAyBF,eAAO,MAAM,WAAW;;;aA7QjB,MAAM;eACJ,MAAM;oBACD,MAAM,GAAG,IAAI;;;aAsBpB,MAAM;eACJ,MAAM;eACN,MAAM;;;;;;;eA4GN,MAAM;cACP,MAAM,GAAG,IAAI;;;aAqBd,MAAM;cACL,MAAM,GAAG,IAAI;;;;;;eAyFJ,MAAM;cAAQ,MAAM;;;;CAmCpC,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export type CacheClass = {
|
|
2
|
+
readonly kind: "immutable";
|
|
3
|
+
} | {
|
|
4
|
+
readonly kind: "ttl" | "etag";
|
|
5
|
+
readonly ttlMs: number;
|
|
6
|
+
} | {
|
|
7
|
+
readonly kind: "gated";
|
|
8
|
+
readonly ttlMs: number;
|
|
9
|
+
readonly maxAgeMs: number;
|
|
10
|
+
} | {
|
|
11
|
+
readonly kind: "passthrough";
|
|
12
|
+
};
|
|
13
|
+
export declare const OPS: {
|
|
14
|
+
readonly prHead: {
|
|
15
|
+
readonly kind: "etag";
|
|
16
|
+
readonly ttlMs: 5000;
|
|
17
|
+
};
|
|
18
|
+
readonly checkSignal: {
|
|
19
|
+
readonly kind: "etag";
|
|
20
|
+
readonly ttlMs: 5000;
|
|
21
|
+
};
|
|
22
|
+
readonly prView: {
|
|
23
|
+
readonly kind: "gated";
|
|
24
|
+
readonly ttlMs: 5000;
|
|
25
|
+
readonly maxAgeMs: 15000;
|
|
26
|
+
};
|
|
27
|
+
readonly prChecks: {
|
|
28
|
+
readonly kind: "gated";
|
|
29
|
+
readonly ttlMs: 5000;
|
|
30
|
+
readonly maxAgeMs: 60000;
|
|
31
|
+
};
|
|
32
|
+
readonly prList: {
|
|
33
|
+
readonly kind: "ttl";
|
|
34
|
+
readonly ttlMs: 15000;
|
|
35
|
+
};
|
|
36
|
+
readonly prComments: {
|
|
37
|
+
readonly kind: "etag";
|
|
38
|
+
readonly ttlMs: 15000;
|
|
39
|
+
};
|
|
40
|
+
readonly prReviews: {
|
|
41
|
+
readonly kind: "etag";
|
|
42
|
+
readonly ttlMs: 15000;
|
|
43
|
+
};
|
|
44
|
+
readonly reviewThreads: {
|
|
45
|
+
readonly kind: "gated";
|
|
46
|
+
readonly ttlMs: 5000;
|
|
47
|
+
readonly maxAgeMs: 60000;
|
|
48
|
+
};
|
|
49
|
+
readonly lastHumanReviewer: {
|
|
50
|
+
readonly kind: "ttl";
|
|
51
|
+
readonly ttlMs: 15000;
|
|
52
|
+
};
|
|
53
|
+
readonly issueView: {
|
|
54
|
+
readonly kind: "ttl";
|
|
55
|
+
readonly ttlMs: 30000;
|
|
56
|
+
};
|
|
57
|
+
readonly issueList: {
|
|
58
|
+
readonly kind: "ttl";
|
|
59
|
+
readonly ttlMs: 15000;
|
|
60
|
+
};
|
|
61
|
+
readonly issueComments: {
|
|
62
|
+
readonly kind: "etag";
|
|
63
|
+
readonly ttlMs: 15000;
|
|
64
|
+
};
|
|
65
|
+
readonly runList: {
|
|
66
|
+
readonly kind: "ttl";
|
|
67
|
+
readonly ttlMs: 15000;
|
|
68
|
+
};
|
|
69
|
+
readonly runView: {
|
|
70
|
+
readonly kind: "ttl";
|
|
71
|
+
readonly ttlMs: 15000;
|
|
72
|
+
};
|
|
73
|
+
readonly runJobs: {
|
|
74
|
+
readonly kind: "ttl";
|
|
75
|
+
readonly ttlMs: 15000;
|
|
76
|
+
};
|
|
77
|
+
readonly completedAttemptJobs: {
|
|
78
|
+
readonly kind: "immutable";
|
|
79
|
+
};
|
|
80
|
+
readonly runLog: {
|
|
81
|
+
readonly kind: "ttl";
|
|
82
|
+
readonly ttlMs: 15000;
|
|
83
|
+
};
|
|
84
|
+
readonly jobLog: {
|
|
85
|
+
readonly kind: "passthrough";
|
|
86
|
+
};
|
|
87
|
+
readonly annotations: {
|
|
88
|
+
readonly kind: "passthrough";
|
|
89
|
+
};
|
|
90
|
+
readonly jobIdentity: {
|
|
91
|
+
readonly kind: "immutable";
|
|
92
|
+
};
|
|
93
|
+
readonly commitAuthor: {
|
|
94
|
+
readonly kind: "ttl";
|
|
95
|
+
readonly ttlMs: 300000;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=classes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/read/classes.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAClB;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,GAC9B;IAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACzD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC7E;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC;AAErC,eAAO,MAAM,GAAG;;iBACJ,IAAI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,MAAM,YAAY,CAAC;AAoB3C,eAAO,MAAM,YAAY,2GAGxB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
import { GitHubService } from "./transport";
|
|
3
|
+
import type { RepoRef } from "./keys";
|
|
4
|
+
export declare const commitAuthor: (repo: RepoRef, sha: string) => Effect.Effect<{
|
|
5
|
+
sha: string;
|
|
6
|
+
author: {
|
|
7
|
+
login: string;
|
|
8
|
+
} | null;
|
|
9
|
+
}, import("./transport").GhError, GitHubService>;
|
|
10
|
+
//# sourceMappingURL=commits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commits.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/read/commits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAQtC,eAAO,MAAM,YAAY;;;;;gDAavB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
import type { ReadKey } from "./keys";
|
|
3
|
+
export declare const gatedRead: <A, E, R, E2, R2>(opts: {
|
|
4
|
+
readonly key: ReadKey & {
|
|
5
|
+
op: "prView" | "prChecks" | "reviewThreads";
|
|
6
|
+
};
|
|
7
|
+
readonly decode: (value: unknown) => A;
|
|
8
|
+
readonly fetch: Effect.Effect<A, E, R>;
|
|
9
|
+
readonly signal: Effect.Effect<string, E2, R2>;
|
|
10
|
+
readonly maxAgeMs: (value: A) => number;
|
|
11
|
+
readonly consistency?: "cached" | "origin";
|
|
12
|
+
readonly cacheableWhen?: (value: A) => boolean;
|
|
13
|
+
}) => Effect.Effect<A, E, R | R2>;
|
|
14
|
+
//# sourceMappingURL=gated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gated.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/read/gated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AAGxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAUtC,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,QAAQ;IAC/C,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG;QAAE,EAAE,EAAE,QAAQ,GAAG,UAAU,GAAG,eAAe,CAAA;KAAE,CAAC;IACxE,QAAQ,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;IACxC,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3C,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC;CAChD,gCAkCG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/read/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Effect, Schema } from "effect";
|
|
2
|
+
import { GitHubService } from "#gh/read/transport";
|
|
3
|
+
import type { RepoRef } from "./keys";
|
|
4
|
+
declare const IssueView: Schema.Struct<{
|
|
5
|
+
readonly number: Schema.Number;
|
|
6
|
+
readonly title: Schema.String;
|
|
7
|
+
readonly state: Schema.String;
|
|
8
|
+
readonly url: Schema.String;
|
|
9
|
+
readonly labels: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
10
|
+
readonly name: Schema.String;
|
|
11
|
+
}>>>;
|
|
12
|
+
readonly createdAt: Schema.String;
|
|
13
|
+
readonly assignees: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
14
|
+
readonly login: Schema.String;
|
|
15
|
+
}>>>;
|
|
16
|
+
readonly author: Schema.Struct<{
|
|
17
|
+
readonly login: Schema.String;
|
|
18
|
+
}>;
|
|
19
|
+
readonly body: Schema.String;
|
|
20
|
+
readonly closedAt: Schema.NullOr<Schema.String>;
|
|
21
|
+
}>;
|
|
22
|
+
export type IssueView = typeof IssueView.Type;
|
|
23
|
+
export type IssueListFilter = {
|
|
24
|
+
state: string;
|
|
25
|
+
labels: string | null;
|
|
26
|
+
limit: number;
|
|
27
|
+
includeBody?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export declare const ISSUE_LIST_FIELDS = "number,title,state,url,labels,createdAt";
|
|
30
|
+
export declare const ISSUE_VIEW_FIELDS = "number,title,state,url,labels,assignees,author,body,createdAt,closedAt";
|
|
31
|
+
export declare const issueView: (repo: RepoRef, issue: number, consistency?: "cached" | "origin" | undefined) => Effect.Effect<{
|
|
32
|
+
readonly number: number;
|
|
33
|
+
readonly title: string;
|
|
34
|
+
readonly state: string;
|
|
35
|
+
readonly url: string;
|
|
36
|
+
readonly labels: {
|
|
37
|
+
readonly name: string;
|
|
38
|
+
}[];
|
|
39
|
+
readonly createdAt: string;
|
|
40
|
+
readonly assignees: {
|
|
41
|
+
readonly login: string;
|
|
42
|
+
}[];
|
|
43
|
+
readonly author: {
|
|
44
|
+
readonly login: string;
|
|
45
|
+
};
|
|
46
|
+
readonly body: string;
|
|
47
|
+
readonly closedAt: string | null;
|
|
48
|
+
}, import("#gh/read/transport").GhError, GitHubService>;
|
|
49
|
+
export declare const issueList: (repo: RepoRef, filter: IssueListFilter, consistency?: "cached" | "origin" | undefined) => Effect.Effect<({
|
|
50
|
+
readonly number: number;
|
|
51
|
+
readonly title: string;
|
|
52
|
+
readonly state: string;
|
|
53
|
+
readonly url: string;
|
|
54
|
+
readonly labels: {
|
|
55
|
+
readonly name: string;
|
|
56
|
+
}[];
|
|
57
|
+
readonly createdAt: string;
|
|
58
|
+
readonly body: string;
|
|
59
|
+
} | {
|
|
60
|
+
readonly body?: string | undefined;
|
|
61
|
+
readonly number: number;
|
|
62
|
+
readonly title: string;
|
|
63
|
+
readonly state: string;
|
|
64
|
+
readonly url: string;
|
|
65
|
+
readonly labels: {
|
|
66
|
+
readonly name: string;
|
|
67
|
+
}[];
|
|
68
|
+
readonly createdAt: string;
|
|
69
|
+
})[], import("#gh/read/transport").GhError, GitHubService>;
|
|
70
|
+
export declare const issueComments: (repo: RepoRef, issue: number) => Effect.Effect<{
|
|
71
|
+
readonly id: number;
|
|
72
|
+
readonly user: {
|
|
73
|
+
readonly login: string;
|
|
74
|
+
};
|
|
75
|
+
readonly body: string;
|
|
76
|
+
readonly created_at: string;
|
|
77
|
+
readonly html_url: string;
|
|
78
|
+
}[], import("#gh/read/transport").GhError, GitHubService>;
|
|
79
|
+
export {};
|
|
80
|
+
//# sourceMappingURL=issues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/read/issues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AActC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;EAMb,CAAC;AAQH,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAC;AAC9C,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AACF,eAAO,MAAM,iBAAiB,4CAA4C,CAAC;AAC3E,eAAO,MAAM,iBAAiB,2EAC4C,CAAC;AAE3E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;uDAwBpB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;0DAsCpB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;yDAYxB,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type RepoRef = {
|
|
2
|
+
readonly owner: string;
|
|
3
|
+
readonly name: string;
|
|
4
|
+
};
|
|
5
|
+
export type RunFilter = {
|
|
6
|
+
readonly workflow: string | null;
|
|
7
|
+
readonly branch: string | null;
|
|
8
|
+
readonly status: string | null;
|
|
9
|
+
readonly event: string | null;
|
|
10
|
+
readonly limit: number;
|
|
11
|
+
};
|
|
12
|
+
export type ReadKey = {
|
|
13
|
+
readonly repo: RepoRef;
|
|
14
|
+
} & ({
|
|
15
|
+
readonly op: "prView" | "prHead" | "prComments" | "prReviews" | "reviewThreads" | "lastHumanReviewer";
|
|
16
|
+
readonly pr: number;
|
|
17
|
+
} | {
|
|
18
|
+
readonly op: "prChecks";
|
|
19
|
+
readonly pr: number;
|
|
20
|
+
readonly headSha: string;
|
|
21
|
+
} | {
|
|
22
|
+
readonly op: "checkSignal";
|
|
23
|
+
readonly sha: string;
|
|
24
|
+
} | {
|
|
25
|
+
readonly op: "commitAuthor";
|
|
26
|
+
readonly sha: string;
|
|
27
|
+
} | {
|
|
28
|
+
readonly op: "prList" | "issueList";
|
|
29
|
+
readonly filter: Readonly<Record<string, string | number | boolean | null>>;
|
|
30
|
+
} | {
|
|
31
|
+
readonly op: "issueView" | "issueComments";
|
|
32
|
+
readonly issue: number;
|
|
33
|
+
} | {
|
|
34
|
+
readonly op: "runList";
|
|
35
|
+
readonly filter: RunFilter;
|
|
36
|
+
} | {
|
|
37
|
+
readonly op: "runView";
|
|
38
|
+
readonly runId: number;
|
|
39
|
+
readonly attempt?: number;
|
|
40
|
+
} | {
|
|
41
|
+
readonly op: "runJobs";
|
|
42
|
+
readonly runId: number;
|
|
43
|
+
readonly attempt: number;
|
|
44
|
+
} | {
|
|
45
|
+
readonly op: "completedAttemptJobs";
|
|
46
|
+
readonly runId: number;
|
|
47
|
+
readonly attempt: number;
|
|
48
|
+
} | {
|
|
49
|
+
readonly op: "runLog";
|
|
50
|
+
readonly runId: number;
|
|
51
|
+
readonly attempt: number;
|
|
52
|
+
readonly failedOnly: boolean;
|
|
53
|
+
readonly jobId: number | null;
|
|
54
|
+
} | {
|
|
55
|
+
readonly op: "jobLog" | "annotations" | "jobIdentity";
|
|
56
|
+
readonly jobId: number;
|
|
57
|
+
});
|
|
58
|
+
export type Op = ReadKey["op"];
|
|
59
|
+
export type Tag = `${"pr" | "reviews" | "review-comments" | "threads" | "issue" | "issue-comments" | "run" | "checks" | "pulls" | "issues" | "runs" | "repo"}:${string}`;
|
|
60
|
+
export declare const digest: (value: string) => string;
|
|
61
|
+
export declare const repoSlug: (repo: RepoRef) => string;
|
|
62
|
+
export declare const entryKey: (identity: string, key: ReadKey) => string;
|
|
63
|
+
export declare const tagsFor: (key: ReadKey) => readonly Tag[];
|
|
64
|
+
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/read/keys.ts"],"names":[],"mappings":"AAEA,MAA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G,MAAM,IAAI,MAAM,EAAE,CAAC;AAYzJ,eAAO,MAAM,MAAM,UAAW,MAAM,KAAG,MAA0D,CAAC;AAClG,eAAO,MAAM,QAAQ,SAAU,OAAO,KAAG,MAAoD,CAAC;AAC9F,eAAO,MAAM,QAAQ,aAAc,MAAM,OAAO,OAAO,KAAG,MACoC,CAAC;AAC/F,eAAO,MAAM,OAAO,QAAS,OAAO,KAAG,SAAS,GAAG,EA2ClD,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const WorkflowJob: Schema.Struct<{
|
|
3
|
+
readonly databaseId: Schema.Number;
|
|
4
|
+
readonly name: Schema.String;
|
|
5
|
+
readonly status: Schema.String;
|
|
6
|
+
readonly conclusion: Schema.NullOr<Schema.String>;
|
|
7
|
+
readonly startedAt: Schema.String;
|
|
8
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
9
|
+
readonly url: Schema.String;
|
|
10
|
+
readonly steps: Schema.$Array<Schema.Struct<{
|
|
11
|
+
readonly name: Schema.String;
|
|
12
|
+
readonly status: Schema.String;
|
|
13
|
+
readonly conclusion: Schema.NullOr<Schema.String>;
|
|
14
|
+
readonly number: Schema.Number;
|
|
15
|
+
readonly startedAt: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
16
|
+
readonly completedAt: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
17
|
+
}>>;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const WorkflowRun: Schema.Struct<{
|
|
20
|
+
readonly databaseId: Schema.Number;
|
|
21
|
+
readonly displayTitle: Schema.String;
|
|
22
|
+
readonly status: Schema.String;
|
|
23
|
+
readonly conclusion: Schema.NullOr<Schema.String>;
|
|
24
|
+
readonly headBranch: Schema.String;
|
|
25
|
+
readonly headSha: Schema.String;
|
|
26
|
+
readonly createdAt: Schema.String;
|
|
27
|
+
readonly event: Schema.String;
|
|
28
|
+
readonly url: Schema.String;
|
|
29
|
+
readonly workflowName: Schema.String;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const WorkflowRunDetail: Schema.Struct<{
|
|
32
|
+
readonly databaseId: Schema.Number;
|
|
33
|
+
readonly displayTitle: Schema.String;
|
|
34
|
+
readonly status: Schema.String;
|
|
35
|
+
readonly conclusion: Schema.NullOr<Schema.String>;
|
|
36
|
+
readonly headBranch: Schema.String;
|
|
37
|
+
readonly headSha: Schema.String;
|
|
38
|
+
readonly createdAt: Schema.String;
|
|
39
|
+
readonly event: Schema.String;
|
|
40
|
+
readonly url: Schema.String;
|
|
41
|
+
readonly workflowName: Schema.String;
|
|
42
|
+
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
43
|
+
readonly databaseId: Schema.Number;
|
|
44
|
+
readonly name: Schema.String;
|
|
45
|
+
readonly status: Schema.String;
|
|
46
|
+
readonly conclusion: Schema.NullOr<Schema.String>;
|
|
47
|
+
readonly startedAt: Schema.String;
|
|
48
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
49
|
+
readonly url: Schema.String;
|
|
50
|
+
readonly steps: Schema.$Array<Schema.Struct<{
|
|
51
|
+
readonly name: Schema.String;
|
|
52
|
+
readonly status: Schema.String;
|
|
53
|
+
readonly conclusion: Schema.NullOr<Schema.String>;
|
|
54
|
+
readonly number: Schema.Number;
|
|
55
|
+
readonly startedAt: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
56
|
+
readonly completedAt: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
57
|
+
}>>;
|
|
58
|
+
}>>;
|
|
59
|
+
readonly attempt: Schema.Number;
|
|
60
|
+
}>;
|
|
61
|
+
export type WorkflowJob = typeof WorkflowJob.Type;
|
|
62
|
+
export type WorkflowRun = typeof WorkflowRun.Type;
|
|
63
|
+
export type WorkflowRunDetail = typeof WorkflowRunDetail.Type;
|
|
64
|
+
export declare const RUN_LIST_FIELDS = "databaseId,displayTitle,status,conclusion,headBranch,headSha,createdAt,event,url,workflowName";
|
|
65
|
+
export declare const RUN_VIEW_FIELDS = "databaseId,displayTitle,status,conclusion,headBranch,headSha,createdAt,event,url,workflowName,jobs,attempt";
|
|
66
|
+
export declare const parsePreserving: <A>(schema: Schema.Codec<A>) => (value: unknown) => A;
|
|
67
|
+
export declare const project: <A extends object, K extends keyof A>(value: A, fields: readonly K[]) => Pick<A, K>;
|
|
68
|
+
//# sourceMappingURL=porcelain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"porcelain.d.ts","sourceRoot":"","sources":["../../../src/gh-tool/read/porcelain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAUhC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;EAStB,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;EAWtB,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;AAClD,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;AAClD,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAC9D,eAAO,MAAM,eAAe,kGACqE,CAAC;AAClG,eAAO,MAAM,eAAe,+GAAoC,CAAC;AAEjE,eAAO,MAAM,eAAe,GACzB,CAAC,UAAU,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,aACnB,OAAO,KAAG,CAGjB,CAAC;AAEJ,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,SAClD,CAAC,UACA,SAAS,CAAC,EAAE,KACnB,IAAI,CAAC,CAAC,EAAE,CAAC,CAGK,CAAC"}
|