@snappedly-tools/shipyard 0.8.0 → 0.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 +24 -14
- package/dist/MountConfig-K5ILnfht.d.ts +26 -0
- package/dist/{MountConfig-BHnKnA4h.d.ts → SandboxProvider-oUAwYlWm.d.ts} +1 -26
- package/dist/{chunk-L6PX5QTU.js → chunk-57EEKW3R.js} +57 -55
- package/dist/chunk-57EEKW3R.js.map +1 -0
- package/dist/{chunk-JI3HDDMS.js → chunk-HXSZM52J.js} +3 -3
- package/dist/{chunk-JI3HDDMS.js.map → chunk-HXSZM52J.js.map} +1 -1
- package/dist/{chunk-44I2BL6E.js → chunk-JZUBT4WG.js} +20 -4
- package/dist/chunk-JZUBT4WG.js.map +1 -0
- package/dist/chunk-NQRFVKCU.js +1840 -0
- package/dist/chunk-NQRFVKCU.js.map +1 -0
- package/dist/chunk-Z5C4LHVP.js +137 -0
- package/dist/chunk-Z5C4LHVP.js.map +1 -0
- package/dist/createSandbox-DmbnWAZv.d.ts +739 -0
- package/dist/index.d.ts +7 -2534
- package/dist/index.js +216 -7269
- package/dist/index.js.map +1 -1
- package/dist/integrations/github.d.ts +52 -0
- package/dist/integrations/github.js +1049 -0
- package/dist/integrations/github.js.map +1 -0
- package/dist/integrations/releases.d.ts +136 -0
- package/dist/integrations/releases.js +500 -0
- package/dist/integrations/releases.js.map +1 -0
- package/dist/main.js +641 -383
- package/dist/main.js.map +1 -1
- package/dist/publication-BPoy_M9M.d.ts +1200 -0
- package/dist/sandboxes/docker.d.ts +2 -1
- package/dist/sandboxes/docker.js +2 -2
- package/dist/templates/parallel-planner/main.mts +11 -7
- package/dist/templates/parallel-planner/setup.sh +1 -0
- package/dist/templates/parallel-planner-with-review/main.mts +11 -7
- package/dist/templates/parallel-planner-with-review/setup.sh +1 -0
- package/dist/templates/sequential-reviewer/main.mts +7 -3
- package/dist/templates/sequential-reviewer/setup.sh +1 -0
- package/dist/templates/shared/setup.sh +1 -0
- package/dist/templates/simple-loop/main.mts +7 -3
- package/dist/templates/simple-loop/setup.sh +1 -0
- package/dist/workflow/coordinator/migrations/002_workflow_phase_records.sql +11 -0
- package/dist/workflow/coordinator/migrations/003_phase_record_schema_version.sql +6 -0
- package/dist/workflow.d.ts +472 -0
- package/dist/workflow.js +4345 -0
- package/dist/workflow.js.map +1 -0
- package/package.json +13 -1
- package/dist/chunk-44I2BL6E.js.map +0 -1
- package/dist/chunk-L6PX5QTU.js.map +0 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { G as GitHubDeliveryStore, a as GitHubTrackingStore, b as GitHubDeliveryRecord, c as GitHubTrackedPullRequest, d as GitHubIntegrationOptions, e as GitHubWebhookRequest, f as GitHubWebhookReceipt, g as GitHubWebhookEnvelope, h as GitHubNormalizationResult, i as GitHubReconciliationInput, j as GitHubReconciliationResult, k as GitHubBriefFactoryInput, W as WorkBrief, l as GitHubPullRequestReviewSnapshot, H as HumanReviewDecisionInput } from '../publication-BPoy_M9M.js';
|
|
2
|
+
export { m as GitHubActor, n as GitHubActorType, o as GitHubAuthorizationPolicy, p as GitHubBranchPublicationInput, q as GitHubBranchSnapshot, r as GitHubBriefDefaults, s as GitHubBriefFactory, t as GitHubBriefPublicationInput, u as GitHubCheckPublicationInput, v as GitHubCheckSnapshot, w as GitHubCommentPublicationInput, x as GitHubCommentSnapshot, y as GitHubDeliveryStatus, z as GitHubEventIgnoreReason, A as GitHubEventName, B as GitHubIgnoredEvent, C as GitHubIssueEventKind, D as GitHubIssueSnapshot, E as GitHubNormalizedEvent, F as GitHubNormalizedEventKind, I as GitHubPublication, J as GitHubPublicationOptions, K as GitHubPublicationResult, L as GitHubPullRequestPublicationInput, M as GitHubPullRequestReviewHandler, N as GitHubPullRequestReviewState, O as GitHubPullRequestSnapshot, P as GitHubReadTransport, Q as GitHubRepairIssuePublicationInput, R as GitHubRepairLinkPublicationInput, S as GitHubTrackedPullRequestEventKind, T as GitHubWriteTransport } from '../publication-BPoy_M9M.js';
|
|
3
|
+
|
|
4
|
+
interface GitHubWebhookSignatureInput {
|
|
5
|
+
readonly body: string | Uint8Array;
|
|
6
|
+
readonly signature?: string;
|
|
7
|
+
readonly secret: string | Uint8Array;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Verifies GitHub's `X-Hub-Signature-256` value without exposing the secret.
|
|
11
|
+
* Malformed values are compared against a same-sized zero buffer so the final
|
|
12
|
+
* digest comparison always uses the constant-time primitive.
|
|
13
|
+
*/
|
|
14
|
+
declare const verifyGitHubWebhookSignature: (input: GitHubWebhookSignatureInput) => boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Small in-memory adapter for tests and local development. Production callers
|
|
18
|
+
* should provide a durable adapter with the same atomic insert semantics.
|
|
19
|
+
*/
|
|
20
|
+
declare class InMemoryGitHubStore implements GitHubDeliveryStore, GitHubTrackingStore {
|
|
21
|
+
private readonly deliveries;
|
|
22
|
+
private readonly trackedPullRequests;
|
|
23
|
+
recordDeliveryIfAbsent(delivery: GitHubDeliveryRecord): Promise<{
|
|
24
|
+
readonly delivery: GitHubDeliveryRecord;
|
|
25
|
+
readonly inserted: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
getDelivery(deliveryId: string): Promise<GitHubDeliveryRecord | undefined>;
|
|
28
|
+
updateDelivery(delivery: GitHubDeliveryRecord): Promise<void>;
|
|
29
|
+
findTrackedPullRequest(repository: string, pullRequestNumber: number): Promise<GitHubTrackedPullRequest | undefined>;
|
|
30
|
+
saveTrackedPullRequest(pullRequest: GitHubTrackedPullRequest): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare const reviewDecisionFor: (review: GitHubPullRequestReviewSnapshot) => HumanReviewDecisionInput | undefined;
|
|
34
|
+
declare const createGitHubIssueBrief: (input: GitHubBriefFactoryInput) => WorkBrief;
|
|
35
|
+
declare class GitHubIntegration {
|
|
36
|
+
private readonly options;
|
|
37
|
+
private readonly now;
|
|
38
|
+
constructor(options: GitHubIntegrationOptions);
|
|
39
|
+
receiveWebhook(request: GitHubWebhookRequest): Promise<GitHubWebhookReceipt>;
|
|
40
|
+
normalize(envelope: GitHubWebhookEnvelope): Promise<GitHubNormalizationResult>;
|
|
41
|
+
reconcile(input: GitHubReconciliationInput): Promise<GitHubReconciliationResult>;
|
|
42
|
+
private processEnvelope;
|
|
43
|
+
private rejectStored;
|
|
44
|
+
private ignoreStored;
|
|
45
|
+
private briefForIssue;
|
|
46
|
+
private normalizeTrackedPullRequest;
|
|
47
|
+
private issuePayload;
|
|
48
|
+
private pullRequestPayload;
|
|
49
|
+
private toReconciliationResult;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { GitHubBriefFactoryInput, GitHubDeliveryRecord, GitHubDeliveryStore, GitHubIntegration, GitHubIntegrationOptions, GitHubNormalizationResult, GitHubPullRequestReviewSnapshot, GitHubReconciliationInput, GitHubReconciliationResult, GitHubTrackedPullRequest, GitHubTrackingStore, GitHubWebhookEnvelope, GitHubWebhookReceipt, GitHubWebhookRequest, type GitHubWebhookSignatureInput, InMemoryGitHubStore, createGitHubIssueBrief, reviewDecisionFor, verifyGitHubWebhookSignature };
|