@getpaseo/protocol 0.6.1 → 0.7.0-beta.2
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/dist/check-traits.d.ts +11 -0
- package/dist/check-traits.js +10 -0
- package/dist/client-capabilities.d.ts +1 -0
- package/dist/client-capabilities.js +3 -0
- package/dist/generated/validation/ws-outbound.aot.js +33775 -33330
- package/dist/gitea-status.d.ts +10 -0
- package/dist/gitea-status.js +23 -0
- package/dist/gitlab-pipeline.d.ts +10 -0
- package/dist/gitlab-pipeline.js +17 -0
- package/dist/messages.d.ts +579 -24
- package/dist/messages.js +150 -40
- package/dist/ssh-transport.d.ts +11 -0
- package/dist/ssh-transport.js +72 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +116 -4
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maps a Gitea/Forgejo commit-status state (individual status or the combined
|
|
3
|
+
* aggregate, e.g. a forge fact's ciStatus) onto the neutral check status.
|
|
4
|
+
* Shared by the daemon's Gitea adapter and the app's Gitea forge module so the
|
|
5
|
+
* "warning is terminal and non-passing" rule lives in one place: upstream
|
|
6
|
+
* treats warning as IsSuccess() == false, so it blocks merges and must not
|
|
7
|
+
* render as a plain pass or hang as pending.
|
|
8
|
+
*/
|
|
9
|
+
export declare function mapGiteaCommitState(state: string): "success" | "failure" | "pending" | "skipped";
|
|
10
|
+
//# sourceMappingURL=gitea-status.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maps a Gitea/Forgejo commit-status state (individual status or the combined
|
|
3
|
+
* aggregate, e.g. a forge fact's ciStatus) onto the neutral check status.
|
|
4
|
+
* Shared by the daemon's Gitea adapter and the app's Gitea forge module so the
|
|
5
|
+
* "warning is terminal and non-passing" rule lives in one place: upstream
|
|
6
|
+
* treats warning as IsSuccess() == false, so it blocks merges and must not
|
|
7
|
+
* render as a plain pass or hang as pending.
|
|
8
|
+
*/
|
|
9
|
+
export function mapGiteaCommitState(state) {
|
|
10
|
+
switch (state.toLowerCase()) {
|
|
11
|
+
case "success":
|
|
12
|
+
return "success";
|
|
13
|
+
case "failure":
|
|
14
|
+
case "error":
|
|
15
|
+
case "warning":
|
|
16
|
+
return "failure";
|
|
17
|
+
case "skipped":
|
|
18
|
+
return "skipped";
|
|
19
|
+
default:
|
|
20
|
+
return "pending";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=gitea-status.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical set of GitLab pipeline/job statuses that count as "still active"
|
|
3
|
+
* (not yet terminal). Shared by the daemon (merge-capability facts, checks
|
|
4
|
+
* aggregation) and the app (pipeline presentation) so a new GitLab transitional
|
|
5
|
+
* status only needs to be added in one place.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GITLAB_ACTIVE_PIPELINE_STATUSES: readonly ["created", "waiting_for_resource", "preparing", "pending", "running", "canceling", "scheduled"];
|
|
8
|
+
export type GitLabActivePipelineStatus = (typeof GITLAB_ACTIVE_PIPELINE_STATUSES)[number];
|
|
9
|
+
export declare const GITLAB_ACTIVE_PIPELINE_STATUS_SET: Set<string>;
|
|
10
|
+
//# sourceMappingURL=gitlab-pipeline.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical set of GitLab pipeline/job statuses that count as "still active"
|
|
3
|
+
* (not yet terminal). Shared by the daemon (merge-capability facts, checks
|
|
4
|
+
* aggregation) and the app (pipeline presentation) so a new GitLab transitional
|
|
5
|
+
* status only needs to be added in one place.
|
|
6
|
+
*/
|
|
7
|
+
export const GITLAB_ACTIVE_PIPELINE_STATUSES = [
|
|
8
|
+
"created",
|
|
9
|
+
"waiting_for_resource",
|
|
10
|
+
"preparing",
|
|
11
|
+
"pending",
|
|
12
|
+
"running",
|
|
13
|
+
"canceling",
|
|
14
|
+
"scheduled",
|
|
15
|
+
];
|
|
16
|
+
export const GITLAB_ACTIVE_PIPELINE_STATUS_SET = new Set(GITLAB_ACTIVE_PIPELINE_STATUSES);
|
|
17
|
+
//# sourceMappingURL=gitlab-pipeline.js.map
|