@hasna/infinity 0.1.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.
Files changed (112) hide show
  1. package/LICENSE +3 -0
  2. package/README.md +331 -0
  3. package/dist/cli.js +2965 -0
  4. package/dist/http-api.js +6448 -0
  5. package/dist/index.js +28536 -0
  6. package/dist/migrate.js +346 -0
  7. package/dist/self-hosted-migrate.js +2064 -0
  8. package/dist/self-hosted.js +13180 -0
  9. package/dist/types/authcapsules/codewith-local.d.ts +109 -0
  10. package/dist/types/authcapsules/infinity-agent-policy.d.ts +57 -0
  11. package/dist/types/authcapsules/os-isolated-runner.d.ts +87 -0
  12. package/dist/types/authority/authority.d.ts +342 -0
  13. package/dist/types/authority/effect-journal.d.ts +205 -0
  14. package/dist/types/authority/mutation-journal.d.ts +163 -0
  15. package/dist/types/authority/mutation-tuple.d.ts +26 -0
  16. package/dist/types/authority/state.d.ts +75 -0
  17. package/dist/types/authority/store.d.ts +15 -0
  18. package/dist/types/brokers/checkpoint/archive.d.ts +21 -0
  19. package/dist/types/brokers/checkpoint/bundle.d.ts +22 -0
  20. package/dist/types/brokers/checkpoint/bytes.d.ts +4 -0
  21. package/dist/types/brokers/checkpoint/clean-verifier-finalization.d.ts +62 -0
  22. package/dist/types/brokers/checkpoint/clean-verifier.d.ts +145 -0
  23. package/dist/types/brokers/checkpoint/final-trust-authority.d.ts +55 -0
  24. package/dist/types/brokers/checkpoint/idempotency.d.ts +25 -0
  25. package/dist/types/brokers/checkpoint/journaled-store.d.ts +9 -0
  26. package/dist/types/brokers/checkpoint/manifest-signature.d.ts +135 -0
  27. package/dist/types/brokers/checkpoint/manifest.d.ts +57 -0
  28. package/dist/types/brokers/checkpoint/s3-store.d.ts +215 -0
  29. package/dist/types/brokers/checkpoint/seal-authority.d.ts +86 -0
  30. package/dist/types/brokers/checkpoint/service.d.ts +198 -0
  31. package/dist/types/brokers/checkpoint/signing-message.d.ts +22 -0
  32. package/dist/types/brokers/checkpoint/store.d.ts +76 -0
  33. package/dist/types/brokers/checkpoint/verifier-cleanup-authority.d.ts +108 -0
  34. package/dist/types/brokers/checkpoint/verifier-cleanup.d.ts +391 -0
  35. package/dist/types/brokers/checkpoint/verifier.d.ts +225 -0
  36. package/dist/types/brokers/composition.d.ts +86 -0
  37. package/dist/types/brokers/git/github-app.d.ts +216 -0
  38. package/dist/types/brokers/git/promotion.d.ts +418 -0
  39. package/dist/types/brokers/persistence/contracts.d.ts +77 -0
  40. package/dist/types/brokers/persistence/memory.d.ts +5 -0
  41. package/dist/types/brokers/persistence/migration.d.ts +6 -0
  42. package/dist/types/brokers/persistence/postgres.d.ts +74 -0
  43. package/dist/types/cli/main.d.ts +2 -0
  44. package/dist/types/cli/operation-journal.d.ts +47 -0
  45. package/dist/types/cli/run.d.ts +15 -0
  46. package/dist/types/client/operator-client.d.ts +100 -0
  47. package/dist/types/contracts/dtos.d.ts +198 -0
  48. package/dist/types/contracts/events.d.ts +45 -0
  49. package/dist/types/contracts/fence.d.ts +39 -0
  50. package/dist/types/contracts/operations.d.ts +91 -0
  51. package/dist/types/contracts/runspec.d.ts +75 -0
  52. package/dist/types/contracts/validators.d.ts +8 -0
  53. package/dist/types/core/clock.d.ts +12 -0
  54. package/dist/types/core/errors.d.ts +18 -0
  55. package/dist/types/core/ids.d.ts +10 -0
  56. package/dist/types/core/int64.d.ts +7 -0
  57. package/dist/types/core/strict-json.d.ts +8 -0
  58. package/dist/types/core/validation.d.ts +25 -0
  59. package/dist/types/golden/disposable-task.d.ts +108 -0
  60. package/dist/types/golden/source-pins.d.ts +77 -0
  61. package/dist/types/http/api.d.ts +52 -0
  62. package/dist/types/http/bearer-auth.d.ts +8 -0
  63. package/dist/types/http/main.d.ts +3 -0
  64. package/dist/types/http/self-hosted-main.d.ts +17 -0
  65. package/dist/types/index.d.ts +65 -0
  66. package/dist/types/mcp/schema.d.ts +7 -0
  67. package/dist/types/node-agent/agent.d.ts +174 -0
  68. package/dist/types/node-agent/contracts.d.ts +119 -0
  69. package/dist/types/node-agent/macos-service.d.ts +33 -0
  70. package/dist/types/node-agent/service-cli.d.ts +26 -0
  71. package/dist/types/persistence/composition.d.ts +49 -0
  72. package/dist/types/persistence/migrate-main.d.ts +2 -0
  73. package/dist/types/persistence/migrations.d.ts +30 -0
  74. package/dist/types/persistence/postgres-accounts-operation.d.ts +26 -0
  75. package/dist/types/persistence/postgres-authority.d.ts +69 -0
  76. package/dist/types/persistence/postgres-external-mutation-journal.d.ts +22 -0
  77. package/dist/types/persistence/postgres-json.d.ts +1 -0
  78. package/dist/types/persistence/postgres-mutation-journal.d.ts +31 -0
  79. package/dist/types/persistence/postgres-reconciler.d.ts +34 -0
  80. package/dist/types/persistence/postgres-sandbox-dispatch-authority.d.ts +9 -0
  81. package/dist/types/persistence/self-hosted-migrate-main.d.ts +2 -0
  82. package/dist/types/ports/accounts-operation.d.ts +336 -0
  83. package/dist/types/ports/accounts.d.ts +293 -0
  84. package/dist/types/ports/sandbox-dispatch-authority.d.ts +154 -0
  85. package/dist/types/ports/sandboxes.d.ts +40 -0
  86. package/dist/types/providers/sandbox-dispatch.d.ts +143 -0
  87. package/dist/types/runtime/config.d.ts +61 -0
  88. package/dist/types/runtime/postgres.d.ts +18 -0
  89. package/dist/types/runtime/provider-activation.d.ts +45 -0
  90. package/dist/types/runtime/server.d.ts +68 -0
  91. package/dist/types/testing/accounts-fake.d.ts +31 -0
  92. package/dist/types/testing/fakes.d.ts +2 -0
  93. package/dist/types/testing/node-control-plane-fake.d.ts +20 -0
  94. package/dist/types/testing/reference.d.ts +27 -0
  95. package/dist/types/testing/sandboxes-fake.d.ts +22 -0
  96. package/evidence/provider-live-daytona-v3.json +1 -0
  97. package/evidence/provider-live-e2b-v3.json +1 -0
  98. package/evidence/provider-production-route-daytona-v1.json +1 -0
  99. package/evidence/provider-production-route-e2b-v1.json +1 -0
  100. package/migrations/0001_authority.sql +689 -0
  101. package/migrations/0002_effect_step_global_owner.sql +2 -0
  102. package/migrations/0003_effect_journal_observed_head.sql +34 -0
  103. package/migrations/0004_authority_mutation_journal_binding.sql +15 -0
  104. package/migrations/20260710_checkpoint_broker_v1.sql +163 -0
  105. package/migrations/20260711_accounts_operation_v1.sql +137 -0
  106. package/migrations/20260711_checkpoint_trust_v2.sql +17 -0
  107. package/migrations/20260711_verifier_cleanup_v2.sql +169 -0
  108. package/migrations/20260711_z_accounts_claim_authority_v2.sql +172 -0
  109. package/migrations/20260711_zz_sandbox_dispatch_authority_v1.sql +143 -0
  110. package/migrations/20260712_sandbox_dispatch_authority_v2.sql +58 -0
  111. package/migrations/external-journal/0001_external_authority_mutation_journal.sql +175 -0
  112. package/package.json +47 -0
@@ -0,0 +1,86 @@
1
+ import { CheckpointBroker, type CheckpointProvenanceVerifierPort, type CheckpointProvenanceReceiptCryptographyPort, type FenceAuthorityPort, type ManifestSignerPort } from "./checkpoint/service";
2
+ import { CleanCheckpointVerifier, type CleanCheckpointVerifierLimits, type ManagedVerifierResultAttestationPort, type ManagedVerifierSandboxPort, type SandboxesVerifierAllocationReceiptVerifierPort, type SandboxesVerifierCleanupReceiptVerifierPort, type SandboxesVerifierQuarantineReceiptVerifierPort, type VerifierCleanupGrantAuthorityPort, type VerifierEvidenceLoaderPort } from "./checkpoint/clean-verifier";
3
+ import type { CheckpointManifestSignatureVerifierPort, CheckpointManifestSigningTrustHeadResolverPort, CheckpointManifestSigningTrustHeadVerifierPort, CheckpointManifestSigningTrustResolverPort } from "./checkpoint/manifest-signature";
4
+ import type { VersionedObjectStore } from "./checkpoint/store";
5
+ import { S3VersionedObjectStore, type S3EvidenceClient, type S3VersionedObjectStoreConfig } from "./checkpoint/s3-store";
6
+ import { type AuthorityReceiptCryptographyPort } from "./checkpoint/seal-authority";
7
+ import { type VerificationReceiptCryptographyPort, type VerificationReceiptFinalTrustCryptographyPort } from "./checkpoint/verifier";
8
+ import { GitPromotionBroker, type ExpectedBaseGitPort, type PromotionApprovalAuthorityPort, type PromotionResultAuthorityPort, type PromotionSecretScannerPort, type PromotionFenceAuthorityPort } from "./git/promotion";
9
+ import { GitHubAppExpectedBaseGitPort, type GitHubAppCredentialBrokerPort, type GitHubAppExpectedBaseConfig, type GitHubSessionAuthorityPort, type RepositoryAutomationAdmissionPort } from "./git/github-app";
10
+ import { type PostgresLedgerOptions, type ProviderEffectJournalAuthorityPort, type SqlExecutor } from "./persistence/postgres";
11
+ export interface DurableCheckpointBrokerDependencies {
12
+ sql: SqlExecutor;
13
+ authority: FenceAuthorityPort;
14
+ store: VersionedObjectStore;
15
+ manifestSigner: ManifestSignerPort;
16
+ manifestSignatureVerifier: CheckpointManifestSignatureVerifierPort;
17
+ manifestSigningTrustHeadResolver: CheckpointManifestSigningTrustHeadResolverPort;
18
+ manifestSigningTrustHeadVerifier: CheckpointManifestSigningTrustHeadVerifierPort;
19
+ authorityCryptography: AuthorityReceiptCryptographyPort;
20
+ verificationReceiptFinalTrustCryptography: VerificationReceiptFinalTrustCryptographyPort;
21
+ provenanceVerifier: CheckpointProvenanceVerifierPort;
22
+ provenanceReceiptCryptography: CheckpointProvenanceReceiptCryptographyPort;
23
+ providerEffectJournal: ProviderEffectJournalAuthorityPort;
24
+ ledgerOptions?: PostgresLedgerOptions;
25
+ }
26
+ export declare function createDurableCheckpointBroker(dependencies: DurableCheckpointBrokerDependencies): CheckpointBroker;
27
+ export interface DurableGitPromotionBrokerDependencies {
28
+ sql: SqlExecutor;
29
+ authority: PromotionFenceAuthorityPort;
30
+ git: ExpectedBaseGitPort;
31
+ secretScanner: PromotionSecretScannerPort;
32
+ approvalAuthority: PromotionApprovalAuthorityPort;
33
+ resultAuthority: PromotionResultAuthorityPort;
34
+ verificationReceiptCryptography: VerificationReceiptCryptographyPort;
35
+ verificationReceiptFinalTrustCryptography: VerificationReceiptFinalTrustCryptographyPort;
36
+ providerEffectJournal: ProviderEffectJournalAuthorityPort;
37
+ ledgerOptions?: PostgresLedgerOptions;
38
+ }
39
+ export declare function createDurableGitPromotionBroker(dependencies: DurableGitPromotionBrokerDependencies): GitPromotionBroker;
40
+ /**
41
+ * Constructor-only production wiring for the checkpoint -> clean verification ->
42
+ * GitHub App promotion path. Provider clients and authority ports remain explicit
43
+ * so this package never reads ambient credentials or creates live clients itself.
44
+ */
45
+ export interface ProductionCheckpointGitBrokerStackDependencies {
46
+ sql: SqlExecutor;
47
+ checkpointAuthority: FenceAuthorityPort;
48
+ checkpointProvenanceVerifier: CheckpointProvenanceVerifierPort;
49
+ promotionAuthority: PromotionFenceAuthorityPort;
50
+ gitHubSessionAuthority: GitHubSessionAuthorityPort;
51
+ manifestSigner: ManifestSignerPort;
52
+ manifestSigningTrustResolver: CheckpointManifestSigningTrustResolverPort;
53
+ manifestSigningTrustHeadResolver: CheckpointManifestSigningTrustHeadResolverPort;
54
+ manifestSigningTrustHeadVerifier: CheckpointManifestSigningTrustHeadVerifierPort;
55
+ authorityCryptography: AuthorityReceiptCryptographyPort;
56
+ verificationReceiptFinalTrustCryptography: VerificationReceiptFinalTrustCryptographyPort;
57
+ checkpointProvenanceReceiptCryptography: CheckpointProvenanceReceiptCryptographyPort;
58
+ verificationReceiptCryptography: VerificationReceiptCryptographyPort;
59
+ manifestSignatureVerifier: CheckpointManifestSignatureVerifierPort;
60
+ verifierEvidence: VerifierEvidenceLoaderPort;
61
+ verifierSandbox: ManagedVerifierSandboxPort;
62
+ verifierResultAttestation: ManagedVerifierResultAttestationPort;
63
+ verifierCleanupGrantAuthority: VerifierCleanupGrantAuthorityPort;
64
+ sandboxesAllocationReceiptVerifier: SandboxesVerifierAllocationReceiptVerifierPort;
65
+ sandboxesCleanupReceiptVerifier: SandboxesVerifierCleanupReceiptVerifierPort;
66
+ sandboxesQuarantineReceiptVerifier: SandboxesVerifierQuarantineReceiptVerifierPort;
67
+ verifierLimits: CleanCheckpointVerifierLimits;
68
+ promotionSecretScanner: PromotionSecretScannerPort;
69
+ promotionApprovalAuthority: PromotionApprovalAuthorityPort;
70
+ promotionResultAuthority: PromotionResultAuthorityPort;
71
+ s3Client: S3EvidenceClient;
72
+ s3Config: S3VersionedObjectStoreConfig;
73
+ gitHubCredentials: GitHubAppCredentialBrokerPort;
74
+ repositoryAdmission: RepositoryAutomationAdmissionPort;
75
+ providerEffectJournal: ProviderEffectJournalAuthorityPort;
76
+ gitHubConfig: GitHubAppExpectedBaseConfig;
77
+ ledgerOptions?: PostgresLedgerOptions;
78
+ }
79
+ export interface ProductionCheckpointGitBrokerStack {
80
+ readonly checkpointBroker: CheckpointBroker;
81
+ readonly cleanVerifier: CleanCheckpointVerifier;
82
+ readonly gitPromotionBroker: GitPromotionBroker;
83
+ readonly evidenceStore: S3VersionedObjectStore;
84
+ readonly gitHubAdapter: GitHubAppExpectedBaseGitPort;
85
+ }
86
+ export declare function createProductionCheckpointGitBrokerStack(dependencies: ProductionCheckpointGitBrokerStackDependencies): ProductionCheckpointGitBrokerStack;
@@ -0,0 +1,216 @@
1
+ import { type BrokerFence } from "../../contracts/fence";
2
+ import { type ExpectedBaseGitPort, type GitBranchCasReceipt, type GitBranchCreateReceipt, type GitCandidateObjectSource, type GitPullRequestCreateReceipt, type GitPullRequestReadReceipt, type GitPullRequestRecord, type GitRefReadReceipt } from "./promotion";
3
+ import type { VersionedObjectStore } from "../checkpoint/store";
4
+ export interface RepositoryAutomationAdmission {
5
+ repositoryId: string;
6
+ installationId: string;
7
+ automationPolicySha256: string;
8
+ namespaceRulesetSha256: string;
9
+ integrationInventoryComplete: boolean;
10
+ infinityNamespaceRestrictedToApp: boolean;
11
+ namespaceHistoryRewriteDenied: boolean;
12
+ namespaceDeletionDenied: boolean;
13
+ namespaceTargetBypassDenied: boolean;
14
+ defaultAndTargetBranchWritesDenied: boolean;
15
+ candidateTriggeredAutomationSecretless: boolean;
16
+ candidateControlFilesPolicyPassed: boolean;
17
+ oidcMintingDenied: boolean;
18
+ workflowWriteTokensDenied: boolean;
19
+ privilegedSelfHostedRunnersDenied: boolean;
20
+ webhookAndAppTriggersBounded: boolean;
21
+ environmentsPagesAndMergeQueuesBounded: boolean;
22
+ productionSideEffectsDenied: boolean;
23
+ evidenceLinksAuthenticated: boolean;
24
+ checkedAt: string;
25
+ validUntil: string;
26
+ }
27
+ export interface RepositoryAutomationAdmissionPort {
28
+ readCurrent(input: {
29
+ repositoryId: string;
30
+ installationId: string;
31
+ }): Promise<RepositoryAutomationAdmission>;
32
+ }
33
+ export interface GitHubAppSessionContext {
34
+ repositoryId: string;
35
+ installationId: string;
36
+ appPrincipal: string;
37
+ operationId: string;
38
+ operationDigest: string;
39
+ canonicalHost: "api.github.com";
40
+ redirectsAllowed: false;
41
+ repositoryVerifiedAfterAuthentication: true;
42
+ isolatedOneOperationWorkload: true;
43
+ credentialMaterialExposed: false;
44
+ genericCredentialHelperEnabled: false;
45
+ permissions: Readonly<{
46
+ metadata: "read";
47
+ contents: "write";
48
+ pullRequests: "write";
49
+ }>;
50
+ expiresAt: string;
51
+ }
52
+ export interface GitHubRawRefReceipt {
53
+ oid: string | null;
54
+ providerRequestId: string;
55
+ }
56
+ export interface GitHubRawBranchWriteReceipt {
57
+ status: "created" | "updated" | "conflict";
58
+ previousOid: string | null;
59
+ oid: string | null;
60
+ providerRequestId: string;
61
+ }
62
+ export interface GitHubBranchWriteEvidence {
63
+ repositoryId: string;
64
+ installationId: string;
65
+ appPrincipal: string;
66
+ namespaceRulesetSha256: string;
67
+ operationId: string;
68
+ action: "anchor_branch" | "cas_candidate";
69
+ ref: string;
70
+ previousOid: string | null;
71
+ oid: string;
72
+ ambiguousProviderRequestId: string;
73
+ providerWriteRequestId: string;
74
+ reconciliationRequestId: string;
75
+ }
76
+ export interface GitHubRepositorySession {
77
+ readRef(input: {
78
+ ref: string;
79
+ }): Promise<GitHubRawRefReceipt>;
80
+ compareAndCreateRef(input: {
81
+ ref: string;
82
+ oid: string;
83
+ expectedAbsent: true;
84
+ operationId: string;
85
+ }): Promise<GitHubRawBranchWriteReceipt>;
86
+ receivePackCompareAndSwap(input: {
87
+ ref: string;
88
+ expectedOldOid: string;
89
+ candidateOid: string;
90
+ objectFormat: "sha1" | "sha256";
91
+ gitBundleBytes: Uint8Array;
92
+ gitBundleSha256: string;
93
+ operationId: string;
94
+ }): Promise<GitHubRawBranchWriteReceipt>;
95
+ reconcileBranchWrite(input: {
96
+ operationId: string;
97
+ action: "anchor_branch" | "cas_candidate";
98
+ ref: string;
99
+ }): Promise<{
100
+ evidence: GitHubBranchWriteEvidence | null;
101
+ providerRequestId: string;
102
+ }>;
103
+ createDraftPullRequest(input: {
104
+ baseRef: string;
105
+ baseOid: string;
106
+ headRef: string;
107
+ headOid: string;
108
+ marker: string;
109
+ titleDigest: string;
110
+ bodyDigest: string;
111
+ operationId: string;
112
+ }): Promise<{
113
+ pullRequest: GitPullRequestRecord;
114
+ providerRequestId: string;
115
+ }>;
116
+ findExactPullRequests(input: {
117
+ repositoryId: string;
118
+ installationId: string;
119
+ baseRef: string;
120
+ baseOid: string;
121
+ headRef: string;
122
+ headOid: string;
123
+ marker: string;
124
+ titleDigest: string;
125
+ bodyDigest: string;
126
+ appPrincipal: string;
127
+ }): Promise<{
128
+ matches: readonly GitPullRequestRecord[];
129
+ providerRequestId: string;
130
+ }>;
131
+ readPullRequest(input: {
132
+ providerPullRequestId: string;
133
+ }): Promise<{
134
+ pullRequest: GitPullRequestRecord | null;
135
+ providerRequestId: string;
136
+ }>;
137
+ }
138
+ export interface GitHubAppCredentialBrokerPort {
139
+ withInstallationSession<T>(input: {
140
+ repositoryId: string;
141
+ installationId: string;
142
+ operationId: string;
143
+ operationDigest: string;
144
+ fence: BrokerFence;
145
+ authorizationExpiresAt: string;
146
+ permissions: Readonly<{
147
+ metadata: "read";
148
+ contents: "write";
149
+ pullRequests: "write";
150
+ }>;
151
+ }, effect: (session: GitHubRepositorySession, context: GitHubAppSessionContext) => Promise<T>): Promise<T>;
152
+ }
153
+ export interface GitPromotionCandidateObjectLoaderPort {
154
+ loadExact(source: GitCandidateObjectSource): Promise<Uint8Array>;
155
+ }
156
+ export interface GitHubSessionAuthorityPort {
157
+ revalidate(fence: BrokerFence): Promise<{
158
+ fence: BrokerFence;
159
+ databaseTime: Date;
160
+ }>;
161
+ }
162
+ export interface GitHubAppExpectedBaseConfig {
163
+ repositoryId: string;
164
+ installationId: string;
165
+ targetRef: string;
166
+ automationPolicySha256: string;
167
+ namespaceRulesetSha256: string;
168
+ appPrincipal: string;
169
+ }
170
+ export declare class GitHubAmbiguousCreateError extends Error {
171
+ readonly providerRequestId: string;
172
+ constructor(providerRequestId: string, options?: {
173
+ cause?: unknown;
174
+ });
175
+ }
176
+ export declare class GitHubAmbiguousBranchWriteError extends Error {
177
+ readonly providerRequestId: string;
178
+ constructor(providerRequestId: string, options?: {
179
+ cause?: unknown;
180
+ });
181
+ }
182
+ export declare class GitHubAppExpectedBaseGitPort implements ExpectedBaseGitPort {
183
+ private readonly dependencies;
184
+ private readonly config;
185
+ private readonly operationSession;
186
+ constructor(dependencies: {
187
+ credentials: GitHubAppCredentialBrokerPort;
188
+ admission: RepositoryAutomationAdmissionPort;
189
+ candidateObjects: GitPromotionCandidateObjectLoaderPort;
190
+ authority: GitHubSessionAuthorityPort;
191
+ }, config: GitHubAppExpectedBaseConfig);
192
+ withOperation<T>(input: Parameters<ExpectedBaseGitPort["withOperation"]>[0], effect: () => Promise<T>): Promise<T>;
193
+ readRef(input: {
194
+ repositoryId: string;
195
+ ref: string;
196
+ fence: BrokerFence;
197
+ }): Promise<GitRefReadReceipt>;
198
+ compareAndCreateBranch(input: Parameters<ExpectedBaseGitPort["compareAndCreateBranch"]>[0]): Promise<GitBranchCreateReceipt>;
199
+ compareAndSwapBranch(input: Parameters<ExpectedBaseGitPort["compareAndSwapBranch"]>[0]): Promise<GitBranchCasReceipt>;
200
+ createDraftPullRequest(input: Parameters<ExpectedBaseGitPort["createDraftPullRequest"]>[0]): Promise<GitPullRequestCreateReceipt>;
201
+ readPullRequest(input: Parameters<ExpectedBaseGitPort["readPullRequest"]>[0]): Promise<GitPullRequestReadReceipt>;
202
+ private withSession;
203
+ private requireOperationSession;
204
+ private revalidateImmediatelyBeforeGit;
205
+ private revalidateAuthority;
206
+ private assertAdmission;
207
+ private assertCall;
208
+ private assertOperation;
209
+ private assertTransition;
210
+ private assertRecoveredBranchWrite;
211
+ }
212
+ export declare class VersionedGitCandidateObjectLoader implements GitPromotionCandidateObjectLoaderPort {
213
+ private readonly store;
214
+ constructor(store: VersionedObjectStore);
215
+ loadExact(source: GitCandidateObjectSource): Promise<Uint8Array>;
216
+ }