@fabrika/provider-cloudflare 0.0.3 → 0.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabrika/provider-cloudflare",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,11 +36,11 @@
36
36
  "test": "bun test"
37
37
  },
38
38
  "dependencies": {
39
- "@fabrika/auth": "^0.0.3",
40
- "@fabrika/engine": "^0.0.3",
41
- "@fabrika/proxy-core": "^0.0.3",
42
- "@fabrika/proxy-contract": "^0.0.3",
43
- "@fabrika/provider-contract": "^0.0.3",
39
+ "@fabrika/auth": "^0.0.5",
40
+ "@fabrika/engine": "^0.0.5",
41
+ "@fabrika/proxy-core": "^0.0.5",
42
+ "@fabrika/proxy-contract": "^0.0.5",
43
+ "@fabrika/provider-contract": "^0.0.5",
44
44
  "oblaka-iac": "^0.0.18"
45
45
  }
46
46
  }
package/src/command.ts CHANGED
@@ -78,6 +78,7 @@ export const deployCloudflareConfig = async (options: CloudflareCommandDeployOpt
78
78
  const events: ProviderRunEvents = {
79
79
  log: options.log ?? ((line) => console.log(line)),
80
80
  externalId: async () => {},
81
+ checkpoint: async () => {},
81
82
  }
82
83
  const domain = environmentValue('FABRIKA_CONTROL_DOMAIN')
83
84
  const iamUrl = environmentValue('FABRIKA_IAM_URL')
package/src/control.ts CHANGED
@@ -148,7 +148,7 @@ export interface CloudflareControlOptions {
148
148
  readonly apiToken: string
149
149
  readonly propustkaUrl?: string
150
150
  readonly propustkaProvisioningKey?: string
151
- resolveSource(source: ProviderSource): Promise<ResolvedCloudflareSource>
151
+ resolveSource(source: ProviderSource, signal: AbortSignal): Promise<ResolvedCloudflareSource>
152
152
  startRun(job: CloudflareRunnerJob): Promise<ProviderTerminalOutcome>
153
153
  cancelRun(runId: string): Promise<void>
154
154
  }
@@ -186,7 +186,7 @@ const normalizeRegistration = (input: ProviderRegistrationInput): ProviderRegist
186
186
  }
187
187
 
188
188
  const buildJob = async (options: CloudflareControlOptions, input: ProviderDeployInput): Promise<CloudflareRunnerJob> => {
189
- const source = await options.resolveSource(input.app.source)
189
+ const source = await options.resolveSource(input.app.source, input.signal)
190
190
  const storedTarget = decodeEnvelope('target', input.environment.target, cloudflareStoredTargetCodec)
191
191
  const artifact = decodeEnvelope('artifact', input.environment.artifact, cloudflareArtifactCodec)
192
192
  const managedEnvironment: Record<string, string> = {}