@cloudflare/containers-shared 0.16.5 → 0.17.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/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ComplianceConfig, Logger, FetchResultFetcher, FetchPagedListResultFetcher, Config, ContainerApp } from '@cloudflare/workers-utils';
2
+ import { ParsedInputContainerConfig } from '@cloudflare/config';
2
3
  import { ComplianceConfig as ComplianceConfig$1 } from '@cloudflare/workers-utils/compliance';
3
4
  import { StdioOptions } from 'node:child_process';
4
5
 
@@ -3374,6 +3375,7 @@ type BuiltImage = {
3374
3375
  type BuiltContainerImage = BuiltImage & {
3375
3376
  container: DockerfileContainerConfig;
3376
3377
  };
3378
+ declare function normalizeContainerImageRepositoryName(value: string): string;
3377
3379
  declare function isDockerfileContainerConfig(container: ContainerNormalizedConfig): container is DockerfileContainerConfig;
3378
3380
  /**
3379
3381
  * `{ remoteDigest: string }` implies the image was pushed to, or already exists in,
@@ -3502,6 +3504,20 @@ declare function dockerBuild(dockerPath: string, options: {
3502
3504
  ready: Promise<void>;
3503
3505
  }>;
3504
3506
 
3507
+ /**
3508
+ * Builds and writes the Container portion of the Build Output Specification.
3509
+ *
3510
+ * Registry references pass through unchanged. Locally built tags are retained
3511
+ * on success so a later deploy can resolve each emitted `localReference`.
3512
+ *
3513
+ * @param options - The validated Container configs and Docker build environment.
3514
+ */
3515
+ declare function buildAndWriteContainerOutput(options: {
3516
+ containers: Record<string, ParsedInputContainerConfig>;
3517
+ root: string;
3518
+ pathToDocker: string;
3519
+ }): Promise<void>;
3520
+
3505
3521
  declare let logger: Logger;
3506
3522
  declare let fetchResult: FetchResultFetcher;
3507
3523
  declare let fetchPagedListResult: FetchPagedListResultFetcher;
@@ -3880,4 +3896,4 @@ type CreateContainerDevPlanOptions = {
3880
3896
  */
3881
3897
  declare function createContainerDevPlan(options: CreateContainerDevPlanOptions): ContainerDevPlan | undefined;
3882
3898
 
3883
- export { type AccountDefaults, type AccountID, type AccountLimit, type AccountLocation, type AccountLocationLimits, type AccountLocationLimitsAsProperty, type AccountRegistryToken, AccountService, type AddressAssignment, ApiError, type Application, type ApplicationAffinities, ApplicationAffinityColocation, ApplicationAffinityHardwareGeneration, type ApplicationConstraintPop, type ApplicationConstraints, type ApplicationHealth, type ApplicationHealthInstances, type ApplicationID, type ApplicationJob, type ApplicationJobsConfig, ApplicationMutationError, type ApplicationName, type ApplicationNotFoundError, type ApplicationObservability, type ApplicationPriorities, type ApplicationPriority, ApplicationRollout, type ApplicationRolloutActiveGracePeriod, type ApplicationRolloutProgress, type ApplicationSchedulingHint, type ApplicationStatus, ApplicationsService, AssignIPv4, AssignIPv6, type BadRequestError, BadRequestWithCodeError, type BuildArgs, type BuiltContainerImage, type BuiltImage, CancelError, CancelablePromise, type City, type Command, type CompleteAccountCustomer, type CompleteAccountLocationCustomer, type ContainerBuildCommandArgs, type ContainerDevOptions, type ContainerDevPlan, type ContainerDevRuntimeOptions, type ContainerImagePreparation, ContainerImagePreparationStatus, ContainerImagePreparationsService, ContainerNetworkMode, type ContainerNormalizedConfig, type ContainerPushCommandArgs, type ContainersSharedContext, type CreateApplicationBadRequest, type CreateApplicationJobBadRequest, type CreateApplicationJobRequest, type CreateApplicationRequest, CreateApplicationRolloutRequest, type CreateDeploymentBadRequest, type CreateDeploymentV2RequestBody, type CreateDurableObjectApplicationRequest, type CreateImageRegistryRequestBody, type CreateSSHPublicKeyError, type CreateSSHPublicKeyRequestBody, type CustomerImageRegistry, DEFAULT_CONTAINER_EGRESS_INTERCEPTOR_IMAGE, type DNSConfiguration, type DashApplication, type DashApplicationDurableObjectInstance, type DashApplicationInstance, type DashApplicationInstances, type DeleteDeploymentError, type DeleteImageRegistryResponse, type DeploymentAlreadyExists, type DeploymentCheck, type DeploymentCheckHTTP, type DeploymentCheckHTTPRequestBody, DeploymentCheckKind, type DeploymentCheckRequestBody, DeploymentCheckType, type DeploymentCreationError, type DeploymentID, type DeploymentListError, type DeploymentLocation, type DeploymentModificationError, DeploymentMutationError, DeploymentNotFoundError, DeploymentPlacementState, type DeploymentQueuedDetails, DeploymentQueuedReason, type DeploymentReplacementError, DeploymentSchedulingState, type DeploymentSecretMap, type DeploymentState, DeploymentType, type DeploymentV2, type DeploymentVersion, DeploymentsService, Diff, type Disk, type DiskMB, type DiskSizeWithUnit, type DockerfileConfig, type DockerfileContainerConfig, type Domain, type DurableObjectNamespace, DurableObjectStatusHealth, type DurableObjectsConfiguration, type Duration, type EmptyResponse, type Entrypoint, type EnvironmentVariable, type EnvironmentVariableName, type EnvironmentVariableValue, EventName, EventType, type ExecFormParam, ExternalRegistryKind, FUSE_CONTAINER_PRIVILEGES, type GenericErrorDetails, type GenericErrorResponseWithRequestID, type GenericMessageResponse, type GetDeploymentError, type GetPlacementError, HTTPMethod, type IP, type IPAllocation, type IPAllocationConfiguration, type IPAllocationsWithFilter, IPType, type IPV4, IPsService, type ISO8601Timestamp, type Identity, type Image, type ImageRef, ImageRegistriesService, ImageRegistryAlreadyExistsError, type ImageRegistryAuth, type ImageRegistryCredentialsConfiguration, ImageRegistryIsPublic, ImageRegistryNotAllowedError, ImageRegistryNotFoundError, ImageRegistryPermissions, type ImageRegistryProtoDomain, type ImageRegistryProtocol, ImageRegistryProtocolAlreadyExists, ImageRegistryProtocolIsReferencedError, ImageRegistryProtocolNotFound, type ImageRegistryProtocols, type ImageURIConfig, InstanceType, type InstanceTypeOrLimits, type InternalError, type JobEvents, type JobID, type JobNotFoundError, type JobSecretMap, type JobStatus, JobStatusHealth, type JobTimeoutSeconds, JobsService, type Label, type LabelName, type LabelValue, type ListApplications, type ListDeploymentsV2, type ListIPsIsAllocated, type ListPlacements, type ListPlacementsError, type ListSSHPublicKeys, type ListSSHPublicKeysError, type ListSecretsMetadata, type Location, type LocationID, MF_DEV_CONTAINER_PREFIX, type MemorySizeWithUnit, type ModifyApplicationBadRequest, type ModifyApplicationJobBadRequest, type ModifyApplicationJobRequest, type ModifyApplicationRequestBody, type ModifyDeploymentBadRequest, type ModifyDeploymentV2RequestBody, type ModifyMeRequestBody, type ModifySecretRequestBody, type ModifyUserDeploymentConfiguration, type Network, NetworkMode, type NetworkParameters, NodeGroup, type Observability, type ObservabilityLogs, OpenAPI, type OpenAPIConfig, type PaginatedResult, type Placement, type PlacementEvent, type PlacementEvents, type PlacementID, type PlacementNotFoundError, type PlacementStatus, PlacementStatusHealth, type PlacementWithEvents, PlacementsService, type PlainTextSecretValue, type Port, type PortRange, type PortRangeAllocation, type PrepareContainerImageRequestBody, ProvisionerConfiguration, type Ref, type Region, type ReplaceDeploymentRequestBody, type ResolvedContainerDeployment, type ResultInfo, type RolloutID, RolloutStep, type RolloutStepRequest, RolloutsService, type SSHPublicKey, type SSHPublicKeyID, type SSHPublicKeyItem, SSHPublicKeyNotFoundError, type SchedulerDeploymentConfiguration, SchedulingPolicy, type Secret, SecretAccessType, type SecretMap, type SecretMetadata, type SecretName, SecretNameAlreadyExists, SecretNotFound, SecretsService, type SecretsStoreRef, type SharedContainerConfig, SshPublicKeysService, type UnAuthorizedError, type UnixTimestamp, type UnknownAccount, UpdateApplicationRolloutRequest, type UpdateRolloutResponse, type UserDeploymentConfiguration, type UserSSHPublicKey, type VerifyDockerInstalledOptions, type ViteLogger, type WranglerLogger, type WranglerSSHConfig, type WranglerSSHResponse, apply, buildAndMaybePush, buildCommand, buildContainerImages, checkExposedPorts, cleanApplicationFromAPI, cleanForInstanceType, cleanupBuiltImages, cleanupContainers, configRolloutStepsToAPI, configureOpenAPIForContainerPull, containerPrivilegesAllowed, createContainerDevPlan, createDurableObjectNamespaceResolver, deployContainers, dockerBuild, dockerImageInspect, dockerLoginImageRegistry, ensureContainerLimits, ensureImageFitsLimits, fetchPagedListResult, fetchResult, formatError, generateContainerBuildId, getAndValidateRegistryType, getCloudflareContainerRegistry, getCloudflareRegistryWithAccountNamespace, getContainerAccount, getContainerIdsByImageTags, getContainerIdsFromImage, getContainerImageTag, getDevContainerImageName, getDockerHostFromEnv, getDockerSocketFromContext, getEgressInterceptorImage, getEgressInterceptorPlatform, getInstanceTypeUsage, inferInstanceType, initContainersSharedContext, isCloudflareRegistryImage, isDockerRunning, isDockerfileContainerConfig, listDurableObjects, logger, prepareContainerImagesForDev, promiseSpinner, pullEgressInterceptorImage, pullImage, pushBuiltContainerImage, pushCommand, pushImageIfChanged, request, requestPaginated, resolveDockerHost, resolveImageName, runDockerCmd, runDockerCmdWithOutput, sortObjectRecursive, startContainerBuild, stripUndefined, validateAndEncodeGarKey, verifyDockerInstalled };
3899
+ export { type AccountDefaults, type AccountID, type AccountLimit, type AccountLocation, type AccountLocationLimits, type AccountLocationLimitsAsProperty, type AccountRegistryToken, AccountService, type AddressAssignment, ApiError, type Application, type ApplicationAffinities, ApplicationAffinityColocation, ApplicationAffinityHardwareGeneration, type ApplicationConstraintPop, type ApplicationConstraints, type ApplicationHealth, type ApplicationHealthInstances, type ApplicationID, type ApplicationJob, type ApplicationJobsConfig, ApplicationMutationError, type ApplicationName, type ApplicationNotFoundError, type ApplicationObservability, type ApplicationPriorities, type ApplicationPriority, ApplicationRollout, type ApplicationRolloutActiveGracePeriod, type ApplicationRolloutProgress, type ApplicationSchedulingHint, type ApplicationStatus, ApplicationsService, AssignIPv4, AssignIPv6, type BadRequestError, BadRequestWithCodeError, type BuildArgs, type BuiltContainerImage, type BuiltImage, CancelError, CancelablePromise, type City, type Command, type CompleteAccountCustomer, type CompleteAccountLocationCustomer, type ContainerBuildCommandArgs, type ContainerDevOptions, type ContainerDevPlan, type ContainerDevRuntimeOptions, type ContainerImagePreparation, ContainerImagePreparationStatus, ContainerImagePreparationsService, ContainerNetworkMode, type ContainerNormalizedConfig, type ContainerPushCommandArgs, type ContainersSharedContext, type CreateApplicationBadRequest, type CreateApplicationJobBadRequest, type CreateApplicationJobRequest, type CreateApplicationRequest, CreateApplicationRolloutRequest, type CreateDeploymentBadRequest, type CreateDeploymentV2RequestBody, type CreateDurableObjectApplicationRequest, type CreateImageRegistryRequestBody, type CreateSSHPublicKeyError, type CreateSSHPublicKeyRequestBody, type CustomerImageRegistry, DEFAULT_CONTAINER_EGRESS_INTERCEPTOR_IMAGE, type DNSConfiguration, type DashApplication, type DashApplicationDurableObjectInstance, type DashApplicationInstance, type DashApplicationInstances, type DeleteDeploymentError, type DeleteImageRegistryResponse, type DeploymentAlreadyExists, type DeploymentCheck, type DeploymentCheckHTTP, type DeploymentCheckHTTPRequestBody, DeploymentCheckKind, type DeploymentCheckRequestBody, DeploymentCheckType, type DeploymentCreationError, type DeploymentID, type DeploymentListError, type DeploymentLocation, type DeploymentModificationError, DeploymentMutationError, DeploymentNotFoundError, DeploymentPlacementState, type DeploymentQueuedDetails, DeploymentQueuedReason, type DeploymentReplacementError, DeploymentSchedulingState, type DeploymentSecretMap, type DeploymentState, DeploymentType, type DeploymentV2, type DeploymentVersion, DeploymentsService, Diff, type Disk, type DiskMB, type DiskSizeWithUnit, type DockerfileConfig, type DockerfileContainerConfig, type Domain, type DurableObjectNamespace, DurableObjectStatusHealth, type DurableObjectsConfiguration, type Duration, type EmptyResponse, type Entrypoint, type EnvironmentVariable, type EnvironmentVariableName, type EnvironmentVariableValue, EventName, EventType, type ExecFormParam, ExternalRegistryKind, FUSE_CONTAINER_PRIVILEGES, type GenericErrorDetails, type GenericErrorResponseWithRequestID, type GenericMessageResponse, type GetDeploymentError, type GetPlacementError, HTTPMethod, type IP, type IPAllocation, type IPAllocationConfiguration, type IPAllocationsWithFilter, IPType, type IPV4, IPsService, type ISO8601Timestamp, type Identity, type Image, type ImageRef, ImageRegistriesService, ImageRegistryAlreadyExistsError, type ImageRegistryAuth, type ImageRegistryCredentialsConfiguration, ImageRegistryIsPublic, ImageRegistryNotAllowedError, ImageRegistryNotFoundError, ImageRegistryPermissions, type ImageRegistryProtoDomain, type ImageRegistryProtocol, ImageRegistryProtocolAlreadyExists, ImageRegistryProtocolIsReferencedError, ImageRegistryProtocolNotFound, type ImageRegistryProtocols, type ImageURIConfig, InstanceType, type InstanceTypeOrLimits, type InternalError, type JobEvents, type JobID, type JobNotFoundError, type JobSecretMap, type JobStatus, JobStatusHealth, type JobTimeoutSeconds, JobsService, type Label, type LabelName, type LabelValue, type ListApplications, type ListDeploymentsV2, type ListIPsIsAllocated, type ListPlacements, type ListPlacementsError, type ListSSHPublicKeys, type ListSSHPublicKeysError, type ListSecretsMetadata, type Location, type LocationID, MF_DEV_CONTAINER_PREFIX, type MemorySizeWithUnit, type ModifyApplicationBadRequest, type ModifyApplicationJobBadRequest, type ModifyApplicationJobRequest, type ModifyApplicationRequestBody, type ModifyDeploymentBadRequest, type ModifyDeploymentV2RequestBody, type ModifyMeRequestBody, type ModifySecretRequestBody, type ModifyUserDeploymentConfiguration, type Network, NetworkMode, type NetworkParameters, NodeGroup, type Observability, type ObservabilityLogs, OpenAPI, type OpenAPIConfig, type PaginatedResult, type Placement, type PlacementEvent, type PlacementEvents, type PlacementID, type PlacementNotFoundError, type PlacementStatus, PlacementStatusHealth, type PlacementWithEvents, PlacementsService, type PlainTextSecretValue, type Port, type PortRange, type PortRangeAllocation, type PrepareContainerImageRequestBody, ProvisionerConfiguration, type Ref, type Region, type ReplaceDeploymentRequestBody, type ResolvedContainerDeployment, type ResultInfo, type RolloutID, RolloutStep, type RolloutStepRequest, RolloutsService, type SSHPublicKey, type SSHPublicKeyID, type SSHPublicKeyItem, SSHPublicKeyNotFoundError, type SchedulerDeploymentConfiguration, SchedulingPolicy, type Secret, SecretAccessType, type SecretMap, type SecretMetadata, type SecretName, SecretNameAlreadyExists, SecretNotFound, SecretsService, type SecretsStoreRef, type SharedContainerConfig, SshPublicKeysService, type UnAuthorizedError, type UnixTimestamp, type UnknownAccount, UpdateApplicationRolloutRequest, type UpdateRolloutResponse, type UserDeploymentConfiguration, type UserSSHPublicKey, type VerifyDockerInstalledOptions, type ViteLogger, type WranglerLogger, type WranglerSSHConfig, type WranglerSSHResponse, apply, buildAndMaybePush, buildAndWriteContainerOutput, buildCommand, buildContainerImages, checkExposedPorts, cleanApplicationFromAPI, cleanForInstanceType, cleanupBuiltImages, cleanupContainers, configRolloutStepsToAPI, configureOpenAPIForContainerPull, containerPrivilegesAllowed, createContainerDevPlan, createDurableObjectNamespaceResolver, deployContainers, dockerBuild, dockerImageInspect, dockerLoginImageRegistry, ensureContainerLimits, ensureImageFitsLimits, fetchPagedListResult, fetchResult, formatError, generateContainerBuildId, getAndValidateRegistryType, getCloudflareContainerRegistry, getCloudflareRegistryWithAccountNamespace, getContainerAccount, getContainerIdsByImageTags, getContainerIdsFromImage, getContainerImageTag, getDevContainerImageName, getDockerHostFromEnv, getDockerSocketFromContext, getEgressInterceptorImage, getEgressInterceptorPlatform, getInstanceTypeUsage, inferInstanceType, initContainersSharedContext, isCloudflareRegistryImage, isDockerRunning, isDockerfileContainerConfig, listDurableObjects, logger, normalizeContainerImageRepositoryName, prepareContainerImagesForDev, promiseSpinner, pullEgressInterceptorImage, pullImage, pushBuiltContainerImage, pushCommand, pushImageIfChanged, request, requestPaginated, resolveDockerHost, resolveImageName, runDockerCmd, runDockerCmdWithOutput, sortObjectRecursive, startContainerBuild, stripUndefined, validateAndEncodeGarKey, verifyDockerInstalled };
package/dist/index.mjs CHANGED
@@ -1,12 +1,13 @@
1
1
  import { spawn, execFileSync, execFile } from 'node:child_process';
2
- import crypto, { randomUUID, createHash } from 'node:crypto';
2
+ import crypto2, { randomUUID, createHash } from 'node:crypto';
3
3
  import { existsSync, readFileSync } from 'node:fs';
4
- import path, { join } from 'node:path';
4
+ import path2, { join } from 'node:path';
5
5
  import { getDockerPath } from '@cloudflare/workers-utils/docker-path';
6
6
  import { UserError, FatalError } from '@cloudflare/workers-utils/errors';
7
7
  import { isDirectory } from '@cloudflare/workers-utils/fs-helpers';
8
8
  import { COMPLIANCE_REGION_CONFIG_UNKNOWN, getComplianceRegionSubdomain } from '@cloudflare/workers-utils/compliance';
9
9
  import { release } from 'node:os';
10
+ import { writeContainerConfig, cleanBuildOutputDir } from '@cloudflare/build-output-utils';
10
11
  import assert from 'node:assert';
11
12
  import { setTimeout } from 'node:timers/promises';
12
13
  import { log, startSection, newline, endSection, updateStatus, success, shapes } from '@cloudflare/cli-shared-helpers';
@@ -204,13 +205,13 @@ var getQueryString = /* @__PURE__ */ __name((params) => {
204
205
  }, "getQueryString");
205
206
  var getUrl = /* @__PURE__ */ __name((config, options) => {
206
207
  const encoder = config.ENCODE_PATH || encodeURI;
207
- const path2 = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
208
+ const path3 = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
208
209
  if (options.path?.hasOwnProperty(group)) {
209
210
  return encoder(String(options.path[group]));
210
211
  }
211
212
  return substring;
212
213
  });
213
- const url = `${config.BASE}${path2}`;
214
+ const url = `${config.BASE}${path3}`;
214
215
  if (options.query) {
215
216
  return `${url}${getQueryString(options.query)}`;
216
217
  }
@@ -3323,6 +3324,14 @@ async function getContainerAccount(accountId, complianceConfig) {
3323
3324
  __name(getContainerAccount, "getContainerAccount");
3324
3325
 
3325
3326
  // src/build.ts
3327
+ var MAX_DOCKER_REPOSITORY_NAME_LENGTH = 255;
3328
+ function normalizeContainerImageRepositoryName(value) {
3329
+ return value.toLowerCase().replace(/[^a-z0-9._-]+/g, "-").replace(
3330
+ /[._-]+/g,
3331
+ (separators) => separators === "." || separators === "_" || separators === "__" || /^-+$/.test(separators) ? separators : "-"
3332
+ ).replace(/^[._-]+|[._-]+$/g, "").slice(0, MAX_DOCKER_REPOSITORY_NAME_LENGTH).replace(/[._-]+$/g, "") || "container";
3333
+ }
3334
+ __name(normalizeContainerImageRepositoryName, "normalizeContainerImageRepositoryName");
3326
3335
  function isDockerfileContainerConfig(container) {
3327
3336
  return "dockerfile" in container;
3328
3337
  }
@@ -3693,7 +3702,7 @@ __name(buildAndMaybePush, "buildAndMaybePush");
3693
3702
  async function buildContainerImage(containerConfig, pathToDocker, verifyDockerIsRunning) {
3694
3703
  const localTag = `${getContainerImageRepositoryName(
3695
3704
  containerConfig
3696
- )}:wrangler-${crypto.randomUUID()}`;
3705
+ )}:wrangler-${crypto2.randomUUID()}`;
3697
3706
  logger.log("Building image", localTag);
3698
3707
  try {
3699
3708
  const build = await startContainerBuild({
@@ -3867,6 +3876,193 @@ async function dockerBuild(dockerPath, options) {
3867
3876
  };
3868
3877
  }
3869
3878
  __name(dockerBuild, "dockerBuild");
3879
+ var BUILD_OUTPUT_IMAGE_NAMESPACE = "cloudflare-build";
3880
+ var DOCKER_REPOSITORY_NAME_LENGTH = 255;
3881
+ async function buildAndWriteContainerOutput(options) {
3882
+ const containers = Object.entries(options.containers);
3883
+ await cleanupPreviousBuildOutputImageTags({
3884
+ root: options.root,
3885
+ pathToDocker: options.pathToDocker
3886
+ });
3887
+ const buildId = createBuildId();
3888
+ const localTags = /* @__PURE__ */ new Set();
3889
+ try {
3890
+ const dockerfileCount = countDockerfiles(containers);
3891
+ if (dockerfileCount > 0) {
3892
+ await verifyDockerInstalled({
3893
+ dockerPath: options.pathToDocker,
3894
+ operation: "building the project",
3895
+ imageNoun: dockerfileCount === 1 ? "the configured image" : "the configured images"
3896
+ });
3897
+ }
3898
+ const outputConfigs = [];
3899
+ try {
3900
+ for (const [directoryName, config] of containers) {
3901
+ outputConfigs.push({
3902
+ root: options.root,
3903
+ directoryName,
3904
+ config: await buildContainerOutputConfig({
3905
+ config,
3906
+ root: options.root,
3907
+ pathToDocker: options.pathToDocker,
3908
+ buildId,
3909
+ localTags
3910
+ })
3911
+ });
3912
+ }
3913
+ } catch (error) {
3914
+ throwBuildError(error);
3915
+ }
3916
+ for (const outputConfig of outputConfigs) {
3917
+ await writeContainerConfig(outputConfig);
3918
+ }
3919
+ } catch (error) {
3920
+ await Promise.allSettled([
3921
+ cleanBuildOutputDir(options.root),
3922
+ cleanupBuiltImages(
3923
+ Array.from(localTags, (localTag) => ({ localTag })),
3924
+ options.pathToDocker
3925
+ )
3926
+ ]);
3927
+ throw error;
3928
+ }
3929
+ }
3930
+ __name(buildAndWriteContainerOutput, "buildAndWriteContainerOutput");
3931
+ async function buildContainerOutputConfig(options) {
3932
+ if (options.config.schedulingPolicy === "durable-object") {
3933
+ if (options.config.images === void 0) {
3934
+ return { ...options.config, images: void 0 };
3935
+ }
3936
+ const images = {};
3937
+ for (const [imageName, image2] of Object.entries(options.config.images)) {
3938
+ images[imageName] = await buildContainerImage2({
3939
+ image: image2,
3940
+ repositoryName: `${options.config.name}-${imageName}`,
3941
+ root: options.root,
3942
+ pathToDocker: options.pathToDocker,
3943
+ buildId: options.buildId,
3944
+ localTags: options.localTags
3945
+ });
3946
+ }
3947
+ return { ...options.config, images };
3948
+ }
3949
+ const image = await buildContainerImage2({
3950
+ image: options.config.image,
3951
+ repositoryName: options.config.name,
3952
+ root: options.root,
3953
+ pathToDocker: options.pathToDocker,
3954
+ buildId: options.buildId,
3955
+ localTags: options.localTags
3956
+ });
3957
+ return { ...options.config, image };
3958
+ }
3959
+ __name(buildContainerOutputConfig, "buildContainerOutputConfig");
3960
+ async function buildContainerImage2(options) {
3961
+ if ("reference" in options.image) {
3962
+ return { reference: options.image.reference };
3963
+ }
3964
+ const pathToDockerfile = path2.resolve(options.root, options.image.dockerfile);
3965
+ const localTag = createBuildOutputImageTag({
3966
+ root: options.root,
3967
+ repositoryName: options.repositoryName,
3968
+ buildId: options.buildId
3969
+ });
3970
+ if (options.localTags.has(localTag)) {
3971
+ throw new UserError(
3972
+ `Container image name ${JSON.stringify(options.repositoryName)} conflicts with another image after Docker name normalization.`,
3973
+ { telemetryMessage: "container build output image name conflict" }
3974
+ );
3975
+ }
3976
+ const build = await startContainerBuild({
3977
+ build: {
3978
+ tag: localTag,
3979
+ pathToDockerfile,
3980
+ buildContext: options.image.buildContext === void 0 ? path2.dirname(pathToDockerfile) : path2.resolve(options.root, options.image.buildContext),
3981
+ args: options.image.buildVars,
3982
+ platform: "linux/amd64"
3983
+ },
3984
+ pathToDocker: options.pathToDocker,
3985
+ verifyDockerIsRunning: false
3986
+ });
3987
+ await build.ready;
3988
+ options.localTags.add(localTag);
3989
+ return { localReference: localTag };
3990
+ }
3991
+ __name(buildContainerImage2, "buildContainerImage");
3992
+ function createBuildOutputImageTag(options) {
3993
+ const repositoryPrefix = getBuildOutputImageRepositoryPrefix(options.root);
3994
+ const maxNameLength = DOCKER_REPOSITORY_NAME_LENGTH - repositoryPrefix.length;
3995
+ const repositoryName = normalizeContainerImageRepositoryName(
3996
+ options.repositoryName
3997
+ ).slice(0, maxNameLength).replace(/[._-]+$/g, "");
3998
+ return `${repositoryPrefix}${repositoryName}:${options.buildId}`;
3999
+ }
4000
+ __name(createBuildOutputImageTag, "createBuildOutputImageTag");
4001
+ async function cleanupPreviousBuildOutputImageTags(options) {
4002
+ const repositoryPrefix = getBuildOutputImageRepositoryPrefix(options.root);
4003
+ let existingTags;
4004
+ try {
4005
+ const output = runDockerCmdWithOutput(options.pathToDocker, [
4006
+ "image",
4007
+ "ls",
4008
+ "--filter",
4009
+ `reference=${repositoryPrefix}*`,
4010
+ "--format",
4011
+ "{{.Repository}}:{{.Tag}}"
4012
+ ]);
4013
+ existingTags = output === "" ? [] : output.split(/\r?\n/);
4014
+ } catch {
4015
+ return;
4016
+ }
4017
+ if (existingTags.length > 0) {
4018
+ await cleanupBuiltImages(
4019
+ existingTags.map((localTag) => ({ localTag })),
4020
+ options.pathToDocker
4021
+ );
4022
+ }
4023
+ }
4024
+ __name(cleanupPreviousBuildOutputImageTags, "cleanupPreviousBuildOutputImageTags");
4025
+ function getBuildOutputImageRepositoryPrefix(root) {
4026
+ return `${BUILD_OUTPUT_IMAGE_NAMESPACE}/${shortHash(path2.resolve(root))}/`;
4027
+ }
4028
+ __name(getBuildOutputImageRepositoryPrefix, "getBuildOutputImageRepositoryPrefix");
4029
+ function shortHash(value) {
4030
+ return crypto2.createHash("sha256").update(value).digest("hex").slice(0, 12);
4031
+ }
4032
+ __name(shortHash, "shortHash");
4033
+ function createBuildId() {
4034
+ return crypto2.randomUUID().replaceAll("-", "").slice(0, 12);
4035
+ }
4036
+ __name(createBuildId, "createBuildId");
4037
+ function countDockerfiles(containers) {
4038
+ let count = 0;
4039
+ for (const [, config] of containers) {
4040
+ if (config.schedulingPolicy === "durable-object") {
4041
+ count += Object.values(config.images ?? {}).filter(
4042
+ (image) => "dockerfile" in image
4043
+ ).length;
4044
+ } else if ("dockerfile" in config.image) {
4045
+ count++;
4046
+ }
4047
+ }
4048
+ return count;
4049
+ }
4050
+ __name(countDockerfiles, "countDockerfiles");
4051
+ function throwBuildError(error) {
4052
+ if (error instanceof UserError) {
4053
+ throw error;
4054
+ }
4055
+ if (error instanceof Error) {
4056
+ throw new UserError(error.message, {
4057
+ cause: error,
4058
+ telemetryMessage: "container build image operation failed"
4059
+ });
4060
+ }
4061
+ throw new UserError("An unknown error occurred", {
4062
+ telemetryMessage: "container build unknown error"
4063
+ });
4064
+ }
4065
+ __name(throwBuildError, "throwBuildError");
3870
4066
  var Diff = class {
3871
4067
  static {
3872
4068
  __name(this, "Diff");
@@ -4089,11 +4285,11 @@ var Diff = class {
4089
4285
  }) {
4090
4286
  log(this.toString(options));
4091
4287
  }
4092
- #addToPath(path2, added, removed, oldPosInc) {
4093
- const last = path2.lastComponent;
4288
+ #addToPath(path3, added, removed, oldPosInc) {
4289
+ const last = path3.lastComponent;
4094
4290
  if (last && last.added === added && last.removed === removed) {
4095
4291
  return {
4096
- oldPos: path2.oldPos + oldPosInc,
4292
+ oldPos: path3.oldPos + oldPosInc,
4097
4293
  lastComponent: {
4098
4294
  count: last.count + 1,
4099
4295
  added,
@@ -4103,7 +4299,7 @@ var Diff = class {
4103
4299
  };
4104
4300
  }
4105
4301
  return {
4106
- oldPos: path2.oldPos + oldPosInc,
4302
+ oldPos: path3.oldPos + oldPosInc,
4107
4303
  lastComponent: {
4108
4304
  count: 1,
4109
4305
  added,
@@ -4954,8 +5150,8 @@ var configRolloutStepsToAPI = /* @__PURE__ */ __name((rolloutSteps) => {
4954
5150
  return { steps: output };
4955
5151
  }
4956
5152
  }, "configRolloutStepsToAPI");
4957
- var MAX_DOCKER_REPOSITORY_NAME_LENGTH = 255;
4958
- var MAX_NAMED_IMAGE_SLUG_LENGTH = MAX_DOCKER_REPOSITORY_NAME_LENGTH - MF_DEV_CONTAINER_PREFIX.length - 1;
5153
+ var MAX_DOCKER_REPOSITORY_NAME_LENGTH2 = 255;
5154
+ var MAX_NAMED_IMAGE_SLUG_LENGTH = MAX_DOCKER_REPOSITORY_NAME_LENGTH2 - MF_DEV_CONTAINER_PREFIX.length - 1;
4959
5155
  var IMAGE_ID_HASH_LENGTH = 12;
4960
5156
  function getNamedContainerImageTag(className, imageName, containerBuildId) {
4961
5157
  const identity = `${className}\0${imageName}`;
@@ -5007,7 +5203,7 @@ function createContainerDevPlan(options) {
5007
5203
  }
5008
5204
  const className2 = resolvedContainer.class_name;
5009
5205
  const namedOptions = [];
5010
- const baseDir = configPath ? path.dirname(configPath) : process.cwd();
5206
+ const baseDir = configPath ? path2.dirname(configPath) : process.cwd();
5011
5207
  for (const [imageName, image] of Object.entries(container.images ?? {})) {
5012
5208
  const imageTag2 = getNamedContainerImageTag(
5013
5209
  className2,
@@ -5015,10 +5211,10 @@ function createContainerDevPlan(options) {
5015
5211
  requireContainerBuildId(containerBuildId)
5016
5212
  );
5017
5213
  if (image.dockerfile !== void 0) {
5018
- const dockerfile = path.resolve(baseDir, image.dockerfile);
5214
+ const dockerfile = path2.resolve(baseDir, image.dockerfile);
5019
5215
  namedOptions.push({
5020
5216
  dockerfile,
5021
- image_build_context: image.build_context === void 0 ? path.dirname(dockerfile) : path.resolve(baseDir, image.build_context),
5217
+ image_build_context: image.build_context === void 0 ? path2.dirname(dockerfile) : path2.resolve(baseDir, image.build_context),
5022
5218
  image_vars: image.build_vars,
5023
5219
  class_name: className2,
5024
5220
  image_name: imageName,
@@ -5059,7 +5255,7 @@ function createContainerDevPlan(options) {
5059
5255
  if (isDockerfile(container.image, configPath)) {
5060
5256
  containerOptions.push({
5061
5257
  dockerfile: container.image,
5062
- image_build_context: container.image_build_context ?? path.dirname(container.image),
5258
+ image_build_context: container.image_build_context ?? path2.dirname(container.image),
5063
5259
  image_vars: container.image_vars,
5064
5260
  class_name: className,
5065
5261
  image_tag: imageTag
@@ -5076,4 +5272,4 @@ function createContainerDevPlan(options) {
5076
5272
  }
5077
5273
  __name(createContainerDevPlan, "createContainerDevPlan");
5078
5274
 
5079
- export { AccountService, ApiError, ApplicationAffinityColocation, ApplicationAffinityHardwareGeneration, ApplicationMutationError, ApplicationRollout, ApplicationsService, AssignIPv4, AssignIPv6, BadRequestWithCodeError, CancelError, CancelablePromise, ContainerImagePreparationStatus, ContainerImagePreparationsService, ContainerNetworkMode, CreateApplicationRolloutRequest, DEFAULT_CONTAINER_EGRESS_INTERCEPTOR_IMAGE, DeploymentCheckKind, DeploymentCheckType, DeploymentMutationError, DeploymentNotFoundError, DeploymentPlacementState, DeploymentQueuedReason, DeploymentSchedulingState, DeploymentType, DeploymentsService, Diff, DurableObjectStatusHealth, EventName, EventType, ExternalRegistryKind, FUSE_CONTAINER_PRIVILEGES, HTTPMethod, IPType, IPsService, ImageRegistriesService, ImageRegistryAlreadyExistsError, ImageRegistryIsPublic, ImageRegistryNotAllowedError, ImageRegistryNotFoundError, ImageRegistryPermissions, ImageRegistryProtocolAlreadyExists, ImageRegistryProtocolIsReferencedError, ImageRegistryProtocolNotFound, InstanceType, JobStatusHealth, JobsService, MF_DEV_CONTAINER_PREFIX, NetworkMode, NodeGroup, OpenAPI, PlacementStatusHealth, PlacementsService, ProvisionerConfiguration, RolloutStep, RolloutsService, SSHPublicKeyNotFoundError, SchedulingPolicy, SecretAccessType, SecretNameAlreadyExists, SecretNotFound, SecretsService, SshPublicKeysService, UpdateApplicationRolloutRequest, apply, buildAndMaybePush, buildCommand, buildContainerImages, checkExposedPorts, cleanApplicationFromAPI, cleanForInstanceType, cleanupBuiltImages, cleanupContainers, configRolloutStepsToAPI, configureOpenAPIForContainerPull, containerPrivilegesAllowed, createContainerDevPlan, createDurableObjectNamespaceResolver, deployContainers, dockerBuild, dockerImageInspect, dockerLoginImageRegistry, ensureContainerLimits, ensureImageFitsLimits, fetchPagedListResult, fetchResult, formatError, generateContainerBuildId, getAndValidateRegistryType, getCloudflareContainerRegistry, getCloudflareRegistryWithAccountNamespace, getContainerAccount, getContainerIdsByImageTags, getContainerIdsFromImage, getContainerImageTag, getDevContainerImageName, getDockerHostFromEnv, getDockerSocketFromContext, getEgressInterceptorImage, getEgressInterceptorPlatform, getInstanceTypeUsage, inferInstanceType, initContainersSharedContext, isCloudflareRegistryImage, isDockerRunning, isDockerfileContainerConfig, listDurableObjects, logger, prepareContainerImagesForDev, promiseSpinner, pullEgressInterceptorImage, pullImage, pushBuiltContainerImage, pushCommand, pushImageIfChanged, request, requestPaginated, resolveDockerHost, resolveImageName, runDockerCmd, runDockerCmdWithOutput, sortObjectRecursive, startContainerBuild, stripUndefined, validateAndEncodeGarKey, verifyDockerInstalled };
5275
+ export { AccountService, ApiError, ApplicationAffinityColocation, ApplicationAffinityHardwareGeneration, ApplicationMutationError, ApplicationRollout, ApplicationsService, AssignIPv4, AssignIPv6, BadRequestWithCodeError, CancelError, CancelablePromise, ContainerImagePreparationStatus, ContainerImagePreparationsService, ContainerNetworkMode, CreateApplicationRolloutRequest, DEFAULT_CONTAINER_EGRESS_INTERCEPTOR_IMAGE, DeploymentCheckKind, DeploymentCheckType, DeploymentMutationError, DeploymentNotFoundError, DeploymentPlacementState, DeploymentQueuedReason, DeploymentSchedulingState, DeploymentType, DeploymentsService, Diff, DurableObjectStatusHealth, EventName, EventType, ExternalRegistryKind, FUSE_CONTAINER_PRIVILEGES, HTTPMethod, IPType, IPsService, ImageRegistriesService, ImageRegistryAlreadyExistsError, ImageRegistryIsPublic, ImageRegistryNotAllowedError, ImageRegistryNotFoundError, ImageRegistryPermissions, ImageRegistryProtocolAlreadyExists, ImageRegistryProtocolIsReferencedError, ImageRegistryProtocolNotFound, InstanceType, JobStatusHealth, JobsService, MF_DEV_CONTAINER_PREFIX, NetworkMode, NodeGroup, OpenAPI, PlacementStatusHealth, PlacementsService, ProvisionerConfiguration, RolloutStep, RolloutsService, SSHPublicKeyNotFoundError, SchedulingPolicy, SecretAccessType, SecretNameAlreadyExists, SecretNotFound, SecretsService, SshPublicKeysService, UpdateApplicationRolloutRequest, apply, buildAndMaybePush, buildAndWriteContainerOutput, buildCommand, buildContainerImages, checkExposedPorts, cleanApplicationFromAPI, cleanForInstanceType, cleanupBuiltImages, cleanupContainers, configRolloutStepsToAPI, configureOpenAPIForContainerPull, containerPrivilegesAllowed, createContainerDevPlan, createDurableObjectNamespaceResolver, deployContainers, dockerBuild, dockerImageInspect, dockerLoginImageRegistry, ensureContainerLimits, ensureImageFitsLimits, fetchPagedListResult, fetchResult, formatError, generateContainerBuildId, getAndValidateRegistryType, getCloudflareContainerRegistry, getCloudflareRegistryWithAccountNamespace, getContainerAccount, getContainerIdsByImageTags, getContainerIdsFromImage, getContainerImageTag, getDevContainerImageName, getDockerHostFromEnv, getDockerSocketFromContext, getEgressInterceptorImage, getEgressInterceptorPlatform, getInstanceTypeUsage, inferInstanceType, initContainersSharedContext, isCloudflareRegistryImage, isDockerRunning, isDockerfileContainerConfig, listDurableObjects, logger, normalizeContainerImageRepositoryName, prepareContainerImagesForDev, promiseSpinner, pullEgressInterceptorImage, pullImage, pushBuiltContainerImage, pushCommand, pushImageIfChanged, request, requestPaginated, resolveDockerHost, resolveImageName, runDockerCmd, runDockerCmdWithOutput, sortObjectRecursive, startContainerBuild, stripUndefined, validateAndEncodeGarKey, verifyDockerInstalled };
@@ -1 +1 @@
1
- {"inputs":{"src/client/core/ApiError.ts":{"bytes":686,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/core/CancelablePromise.ts":{"bytes":3230,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/core/OpenAPI.ts":{"bytes":896,"imports":[],"format":"esm"},"src/client/core/request.ts":{"bytes":12866,"imports":[{"path":"src/client/core/ApiError.ts","kind":"import-statement","original":"./ApiError"},{"path":"src/client/core/CancelablePromise.ts","kind":"import-statement","original":"./CancelablePromise"},{"path":"./OpenAPI","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/models/ApplicationAffinityColocation.ts":{"bytes":450,"imports":[],"format":"esm"},"src/client/models/ApplicationAffinityHardwareGeneration.ts":{"bytes":304,"imports":[],"format":"esm"},"src/client/models/ApplicationMutationError.ts":{"bytes":960,"imports":[],"format":"esm"},"src/client/models/ApplicationRollout.ts":{"bytes":2627,"imports":[],"format":"esm"},"src/client/models/AssignIPv4.ts":{"bytes":163,"imports":[],"format":"esm"},"src/client/models/AssignIPv6.ts":{"bytes":163,"imports":[],"format":"esm"},"src/client/models/BadRequestWithCodeError.ts":{"bytes":559,"imports":[],"format":"esm"},"src/client/models/ContainerNetworkMode.ts":{"bytes":679,"imports":[],"format":"esm"},"src/client/models/ContainerImagePreparationStatus.ts":{"bytes":176,"imports":[],"format":"esm"},"src/client/models/CreateApplicationRolloutRequest.ts":{"bytes":2341,"imports":[],"format":"esm"},"src/client/models/DeploymentCheckKind.ts":{"bytes":144,"imports":[],"format":"esm"},"src/client/models/DeploymentCheckType.ts":{"bytes":136,"imports":[],"format":"esm"},"src/client/models/DeploymentMutationError.ts":{"bytes":542,"imports":[],"format":"esm"},"src/client/models/DeploymentNotFoundError.ts":{"bytes":357,"imports":[],"format":"esm"},"src/client/models/DeploymentPlacementState.ts":{"bytes":258,"imports":[],"format":"esm"},"src/client/models/DeploymentQueuedReason.ts":{"bytes":246,"imports":[],"format":"esm"},"src/client/models/DeploymentSchedulingState.ts":{"bytes":212,"imports":[],"format":"esm"},"src/client/models/DeploymentType.ts":{"bytes":943,"imports":[],"format":"esm"},"src/client/models/DurableObjectStatusHealth.ts":{"bytes":426,"imports":[],"format":"esm"},"src/client/models/EventName.ts":{"bytes":2451,"imports":[],"format":"esm"},"src/client/models/EventType.ts":{"bytes":204,"imports":[],"format":"esm"},"src/client/models/ExternalRegistryKind.ts":{"bytes":229,"imports":[],"format":"esm"},"src/client/models/HTTPMethod.ts":{"bytes":284,"imports":[],"format":"esm"},"src/client/models/ImageRegistryAlreadyExistsError.ts":{"bytes":574,"imports":[],"format":"esm"},"src/client/models/ImageRegistryIsPublic.ts":{"bytes":364,"imports":[],"format":"esm"},"src/client/models/ImageRegistryNotAllowedError.ts":{"bytes":598,"imports":[],"format":"esm"},"src/client/models/ImageRegistryNotFoundError.ts":{"bytes":333,"imports":[],"format":"esm"},"src/client/models/ImageRegistryPermissions.ts":{"bytes":175,"imports":[],"format":"esm"},"src/client/models/ImageRegistryProtocolAlreadyExists.ts":{"bytes":340,"imports":[],"format":"esm"},"src/client/models/ImageRegistryProtocolIsReferencedError.ts":{"bytes":441,"imports":[],"format":"esm"},"src/client/models/ImageRegistryProtocolNotFound.ts":{"bytes":369,"imports":[],"format":"esm"},"src/client/models/InstanceType.ts":{"bytes":1084,"imports":[],"format":"esm"},"src/client/models/IPType.ts":{"bytes":171,"imports":[],"format":"esm"},"src/client/models/JobStatusHealth.ts":{"bytes":740,"imports":[],"format":"esm"},"src/client/models/NetworkMode.ts":{"bytes":204,"imports":[],"format":"esm"},"src/client/models/NodeGroup.ts":{"bytes":335,"imports":[],"format":"esm"},"src/client/models/PlacementStatusHealth.ts":{"bytes":569,"imports":[],"format":"esm"},"src/client/models/ProvisionerConfiguration.ts":{"bytes":389,"imports":[],"format":"esm"},"src/client/models/RolloutStep.ts":{"bytes":1016,"imports":[],"format":"esm"},"src/client/models/SchedulingPolicy.ts":{"bytes":304,"imports":[],"format":"esm"},"src/client/models/SecretAccessType.ts":{"bytes":239,"imports":[],"format":"esm"},"src/client/models/SecretNameAlreadyExists.ts":{"bytes":546,"imports":[],"format":"esm"},"src/client/models/SecretNotFound.ts":{"bytes":288,"imports":[],"format":"esm"},"src/client/models/SSHPublicKeyNotFoundError.ts":{"bytes":330,"imports":[],"format":"esm"},"src/client/models/UpdateApplicationRolloutRequest.ts":{"bytes":913,"imports":[],"format":"esm"},"src/client/services/AccountService.ts":{"bytes":1535,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/ApplicationsService.ts":{"bytes":17858,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/ContainerImagePreparationsService.ts":{"bytes":1064,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/DeploymentsService.ts":{"bytes":9316,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/ImageRegistriesService.ts":{"bytes":6457,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/IPsService.ts":{"bytes":1441,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/JobsService.ts":{"bytes":4599,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/PlacementsService.ts":{"bytes":2733,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/RolloutsService.ts":{"bytes":4854,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/SecretsService.ts":{"bytes":3305,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/SshPublicKeysService.ts":{"bytes":2261,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/index.ts":{"bytes":16133,"imports":[{"path":"src/client/core/ApiError.ts","kind":"import-statement","original":"./core/ApiError"},{"path":"src/client/core/CancelablePromise.ts","kind":"import-statement","original":"./core/CancelablePromise"},{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"./core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"./core/request"},{"path":"src/client/models/ApplicationAffinityColocation.ts","kind":"import-statement","original":"./models/ApplicationAffinityColocation"},{"path":"src/client/models/ApplicationAffinityHardwareGeneration.ts","kind":"import-statement","original":"./models/ApplicationAffinityHardwareGeneration"},{"path":"src/client/models/ApplicationMutationError.ts","kind":"import-statement","original":"./models/ApplicationMutationError"},{"path":"src/client/models/ApplicationRollout.ts","kind":"import-statement","original":"./models/ApplicationRollout"},{"path":"src/client/models/AssignIPv4.ts","kind":"import-statement","original":"./models/AssignIPv4"},{"path":"src/client/models/AssignIPv6.ts","kind":"import-statement","original":"./models/AssignIPv6"},{"path":"src/client/models/BadRequestWithCodeError.ts","kind":"import-statement","original":"./models/BadRequestWithCodeError"},{"path":"src/client/models/ContainerNetworkMode.ts","kind":"import-statement","original":"./models/ContainerNetworkMode"},{"path":"src/client/models/ContainerImagePreparationStatus.ts","kind":"import-statement","original":"./models/ContainerImagePreparationStatus"},{"path":"src/client/models/CreateApplicationRolloutRequest.ts","kind":"import-statement","original":"./models/CreateApplicationRolloutRequest"},{"path":"src/client/models/DeploymentCheckKind.ts","kind":"import-statement","original":"./models/DeploymentCheckKind"},{"path":"src/client/models/DeploymentCheckType.ts","kind":"import-statement","original":"./models/DeploymentCheckType"},{"path":"src/client/models/DeploymentMutationError.ts","kind":"import-statement","original":"./models/DeploymentMutationError"},{"path":"src/client/models/DeploymentNotFoundError.ts","kind":"import-statement","original":"./models/DeploymentNotFoundError"},{"path":"src/client/models/DeploymentPlacementState.ts","kind":"import-statement","original":"./models/DeploymentPlacementState"},{"path":"src/client/models/DeploymentQueuedReason.ts","kind":"import-statement","original":"./models/DeploymentQueuedReason"},{"path":"src/client/models/DeploymentSchedulingState.ts","kind":"import-statement","original":"./models/DeploymentSchedulingState"},{"path":"src/client/models/DeploymentType.ts","kind":"import-statement","original":"./models/DeploymentType"},{"path":"src/client/models/DurableObjectStatusHealth.ts","kind":"import-statement","original":"./models/DurableObjectStatusHealth"},{"path":"src/client/models/EventName.ts","kind":"import-statement","original":"./models/EventName"},{"path":"src/client/models/EventType.ts","kind":"import-statement","original":"./models/EventType"},{"path":"src/client/models/ExternalRegistryKind.ts","kind":"import-statement","original":"./models/ExternalRegistryKind"},{"path":"src/client/models/HTTPMethod.ts","kind":"import-statement","original":"./models/HTTPMethod"},{"path":"src/client/models/ImageRegistryAlreadyExistsError.ts","kind":"import-statement","original":"./models/ImageRegistryAlreadyExistsError"},{"path":"src/client/models/ImageRegistryIsPublic.ts","kind":"import-statement","original":"./models/ImageRegistryIsPublic"},{"path":"src/client/models/ImageRegistryNotAllowedError.ts","kind":"import-statement","original":"./models/ImageRegistryNotAllowedError"},{"path":"src/client/models/ImageRegistryNotFoundError.ts","kind":"import-statement","original":"./models/ImageRegistryNotFoundError"},{"path":"src/client/models/ImageRegistryPermissions.ts","kind":"import-statement","original":"./models/ImageRegistryPermissions"},{"path":"src/client/models/ImageRegistryProtocolAlreadyExists.ts","kind":"import-statement","original":"./models/ImageRegistryProtocolAlreadyExists"},{"path":"src/client/models/ImageRegistryProtocolIsReferencedError.ts","kind":"import-statement","original":"./models/ImageRegistryProtocolIsReferencedError"},{"path":"src/client/models/ImageRegistryProtocolNotFound.ts","kind":"import-statement","original":"./models/ImageRegistryProtocolNotFound"},{"path":"src/client/models/InstanceType.ts","kind":"import-statement","original":"./models/InstanceType"},{"path":"src/client/models/IPType.ts","kind":"import-statement","original":"./models/IPType"},{"path":"src/client/models/JobStatusHealth.ts","kind":"import-statement","original":"./models/JobStatusHealth"},{"path":"src/client/models/NetworkMode.ts","kind":"import-statement","original":"./models/NetworkMode"},{"path":"src/client/models/NodeGroup.ts","kind":"import-statement","original":"./models/NodeGroup"},{"path":"src/client/models/PlacementStatusHealth.ts","kind":"import-statement","original":"./models/PlacementStatusHealth"},{"path":"src/client/models/ProvisionerConfiguration.ts","kind":"import-statement","original":"./models/ProvisionerConfiguration"},{"path":"src/client/models/RolloutStep.ts","kind":"import-statement","original":"./models/RolloutStep"},{"path":"src/client/models/SchedulingPolicy.ts","kind":"import-statement","original":"./models/SchedulingPolicy"},{"path":"src/client/models/SecretAccessType.ts","kind":"import-statement","original":"./models/SecretAccessType"},{"path":"src/client/models/SecretNameAlreadyExists.ts","kind":"import-statement","original":"./models/SecretNameAlreadyExists"},{"path":"src/client/models/SecretNotFound.ts","kind":"import-statement","original":"./models/SecretNotFound"},{"path":"src/client/models/SSHPublicKeyNotFoundError.ts","kind":"import-statement","original":"./models/SSHPublicKeyNotFoundError"},{"path":"src/client/models/UpdateApplicationRolloutRequest.ts","kind":"import-statement","original":"./models/UpdateApplicationRolloutRequest"},{"path":"src/client/services/AccountService.ts","kind":"import-statement","original":"./services/AccountService"},{"path":"src/client/services/ApplicationsService.ts","kind":"import-statement","original":"./services/ApplicationsService"},{"path":"src/client/services/ContainerImagePreparationsService.ts","kind":"import-statement","original":"./services/ContainerImagePreparationsService"},{"path":"src/client/services/DeploymentsService.ts","kind":"import-statement","original":"./services/DeploymentsService"},{"path":"src/client/services/ImageRegistriesService.ts","kind":"import-statement","original":"./services/ImageRegistriesService"},{"path":"src/client/services/IPsService.ts","kind":"import-statement","original":"./services/IPsService"},{"path":"src/client/services/JobsService.ts","kind":"import-statement","original":"./services/JobsService"},{"path":"src/client/services/PlacementsService.ts","kind":"import-statement","original":"./services/PlacementsService"},{"path":"src/client/services/RolloutsService.ts","kind":"import-statement","original":"./services/RolloutsService"},{"path":"src/client/services/SecretsService.ts","kind":"import-statement","original":"./services/SecretsService"},{"path":"src/client/services/SshPublicKeysService.ts","kind":"import-statement","original":"./services/SshPublicKeysService"}],"format":"esm"},"src/context.ts":{"bytes":901,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/registry.ts":{"bytes":790,"imports":[{"path":"src/knobs.ts","kind":"import-statement","original":"./knobs"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/knobs.ts":{"bytes":1440,"imports":[{"path":"@cloudflare/workers-utils/compliance","kind":"import-statement","external":true},{"path":"src/registry.ts","kind":"import-statement","original":"./registry"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/login.ts":{"bytes":1747,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/client/index.ts","kind":"import-statement","original":"./client"},{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"./client/core/OpenAPI"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/inspect.ts":{"bytes":886,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/utils.ts":{"bytes":14079,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/inspect.ts","kind":"import-statement","original":"./inspect"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/images.ts":{"bytes":15535,"imports":[{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/build.ts","kind":"import-statement","original":"./build"},{"path":"src/client/models/ExternalRegistryKind.ts","kind":"import-statement","original":"./client/models/ExternalRegistryKind"},{"path":"src/knobs.ts","kind":"import-statement","original":"./knobs"},{"path":"src/login.ts","kind":"import-statement","original":"./login"},{"path":"src/registry.ts","kind":"import-statement","original":"./registry"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/limits.ts":{"bytes":6884,"imports":[{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/client/index.ts","kind":"import-statement","original":"./client"},{"path":"src/context.ts","kind":"import-statement","original":"./context"},{"path":"src/inspect.ts","kind":"import-statement","original":"./inspect"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/build.ts":{"bytes":24295,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/docker-path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/fs-helpers","kind":"import-statement","external":true},{"path":"src/context.ts","kind":"import-statement","original":"./context"},{"path":"src/images.ts","kind":"import-statement","original":"./images"},{"path":"src/inspect.ts","kind":"import-statement","original":"./inspect"},{"path":"src/knobs.ts","kind":"import-statement","original":"./knobs"},{"path":"src/limits.ts","kind":"import-statement","original":"./limits"},{"path":"src/login.ts","kind":"import-statement","original":"./login"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/diff.ts":{"bytes":15139,"imports":[{"path":"@cloudflare/cli-shared-helpers","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers/colors","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/object.ts":{"bytes":1435,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/spinner.ts":{"bytes":434,"imports":[{"path":"@cloudflare/cli-shared-helpers/interactive","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/deploy.ts":{"bytes":32106,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:timers/promises","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers/colors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/client/index.ts","kind":"import-statement","original":"./client"},{"path":"src/context.ts","kind":"import-statement","original":"./context"},{"path":"src/diff.ts","kind":"import-statement","original":"./diff"},{"path":"src/images.ts","kind":"import-statement","original":"./images"},{"path":"src/limits.ts","kind":"import-statement","original":"./limits"},{"path":"src/object.ts","kind":"import-statement","original":"./object"},{"path":"src/spinner.ts","kind":"import-statement","original":"./spinner"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":3964,"imports":[],"format":"esm"},"src/dev-options.ts":{"bytes":5572,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils","kind":"import-statement","external":true},{"path":"src/knobs.ts","kind":"import-statement","original":"./knobs"},{"path":"src/registry.ts","kind":"import-statement","original":"./registry"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"index.ts":{"bytes":536,"imports":[{"path":"src/client/index.ts","kind":"import-statement","original":"./src/client"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"./src/client/core/request"},{"path":"src/build.ts","kind":"import-statement","original":"./src/build"},{"path":"src/context.ts","kind":"import-statement","original":"./src/context"},{"path":"src/deploy.ts","kind":"import-statement","original":"./src/deploy"},{"path":"src/diff.ts","kind":"import-statement","original":"./src/diff"},{"path":"src/login.ts","kind":"import-statement","original":"./src/login"},{"path":"src/knobs.ts","kind":"import-statement","original":"./src/knobs"},{"path":"src/limits.ts","kind":"import-statement","original":"./src/limits"},{"path":"src/object.ts","kind":"import-statement","original":"./src/object"},{"path":"src/utils.ts","kind":"import-statement","original":"./src/utils"},{"path":"src/types.ts","kind":"import-statement","original":"./src/types"},{"path":"src/inspect.ts","kind":"import-statement","original":"./src/inspect"},{"path":"src/registry.ts","kind":"import-statement","original":"./src/registry"},{"path":"src/images.ts","kind":"import-statement","original":"./src/images"},{"path":"src/spinner.ts","kind":"import-statement","original":"./src/spinner"},{"path":"src/dev-options.ts","kind":"import-statement","original":"./src/dev-options"}],"format":"esm"}},"outputs":{"dist/index.mjs":{"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/docker-path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/fs-helpers","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/compliance","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:timers/promises","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers/colors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers/colors","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers/interactive","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils","kind":"import-statement","external":true}],"exports":["AccountService","ApiError","ApplicationAffinityColocation","ApplicationAffinityHardwareGeneration","ApplicationMutationError","ApplicationRollout","ApplicationsService","AssignIPv4","AssignIPv6","BadRequestWithCodeError","CancelError","CancelablePromise","ContainerImagePreparationStatus","ContainerImagePreparationsService","ContainerNetworkMode","CreateApplicationRolloutRequest","DEFAULT_CONTAINER_EGRESS_INTERCEPTOR_IMAGE","DeploymentCheckKind","DeploymentCheckType","DeploymentMutationError","DeploymentNotFoundError","DeploymentPlacementState","DeploymentQueuedReason","DeploymentSchedulingState","DeploymentType","DeploymentsService","Diff","DurableObjectStatusHealth","EventName","EventType","ExternalRegistryKind","FUSE_CONTAINER_PRIVILEGES","HTTPMethod","IPType","IPsService","ImageRegistriesService","ImageRegistryAlreadyExistsError","ImageRegistryIsPublic","ImageRegistryNotAllowedError","ImageRegistryNotFoundError","ImageRegistryPermissions","ImageRegistryProtocolAlreadyExists","ImageRegistryProtocolIsReferencedError","ImageRegistryProtocolNotFound","InstanceType","JobStatusHealth","JobsService","MF_DEV_CONTAINER_PREFIX","NetworkMode","NodeGroup","OpenAPI","PlacementStatusHealth","PlacementsService","ProvisionerConfiguration","RolloutStep","RolloutsService","SSHPublicKeyNotFoundError","SchedulingPolicy","SecretAccessType","SecretNameAlreadyExists","SecretNotFound","SecretsService","SshPublicKeysService","UpdateApplicationRolloutRequest","apply","buildAndMaybePush","buildCommand","buildContainerImages","checkExposedPorts","cleanApplicationFromAPI","cleanForInstanceType","cleanupBuiltImages","cleanupContainers","configRolloutStepsToAPI","configureOpenAPIForContainerPull","containerPrivilegesAllowed","createContainerDevPlan","createDurableObjectNamespaceResolver","deployContainers","dockerBuild","dockerImageInspect","dockerLoginImageRegistry","ensureContainerLimits","ensureImageFitsLimits","fetchPagedListResult","fetchResult","formatError","generateContainerBuildId","getAndValidateRegistryType","getCloudflareContainerRegistry","getCloudflareRegistryWithAccountNamespace","getContainerAccount","getContainerIdsByImageTags","getContainerIdsFromImage","getContainerImageTag","getDevContainerImageName","getDockerHostFromEnv","getDockerSocketFromContext","getEgressInterceptorImage","getEgressInterceptorPlatform","getInstanceTypeUsage","inferInstanceType","initContainersSharedContext","isCloudflareRegistryImage","isDockerRunning","isDockerfileContainerConfig","listDurableObjects","logger","prepareContainerImagesForDev","promiseSpinner","pullEgressInterceptorImage","pullImage","pushBuiltContainerImage","pushCommand","pushImageIfChanged","request","requestPaginated","resolveDockerHost","resolveImageName","runDockerCmd","runDockerCmdWithOutput","sortObjectRecursive","startContainerBuild","stripUndefined","validateAndEncodeGarKey","verifyDockerInstalled"],"entryPoint":"index.ts","inputs":{"src/client/core/ApiError.ts":{"bytesInOutput":399},"src/client/index.ts":{"bytesInOutput":0},"src/client/core/CancelablePromise.ts":{"bytesInOutput":2718},"src/client/core/OpenAPI.ts":{"bytesInOutput":220},"src/client/core/request.ts":{"bytesInOutput":10965},"src/client/models/ApplicationAffinityColocation.ts":{"bytesInOutput":236},"src/client/models/ApplicationAffinityHardwareGeneration.ts":{"bytesInOutput":310},"src/client/models/ApplicationMutationError.ts":{"bytesInOutput":1249},"src/client/models/ApplicationRollout.ts":{"bytesInOutput":815},"src/client/models/AssignIPv4.ts":{"bytesInOutput":211},"src/client/models/AssignIPv6.ts":{"bytesInOutput":211},"src/client/models/BadRequestWithCodeError.ts":{"bytesInOutput":291},"src/client/models/ContainerNetworkMode.ts":{"bytesInOutput":293},"src/client/models/ContainerImagePreparationStatus.ts":{"bytesInOutput":350},"src/client/models/CreateApplicationRolloutRequest.ts":{"bytesInOutput":1094},"src/client/models/DeploymentCheckKind.ts":{"bytesInOutput":221},"src/client/models/DeploymentCheckType.ts":{"bytesInOutput":213},"src/client/models/DeploymentMutationError.ts":{"bytesInOutput":643},"src/client/models/DeploymentNotFoundError.ts":{"bytesInOutput":303},"src/client/models/DeploymentPlacementState.ts":{"bytesInOutput":365},"src/client/models/DeploymentQueuedReason.ts":{"bytesInOutput":279},"src/client/models/DeploymentSchedulingState.ts":{"bytesInOutput":265},"src/client/models/DeploymentType.ts":{"bytesInOutput":247},"src/client/models/DurableObjectStatusHealth.ts":{"bytesInOutput":277},"src/client/models/EventName.ts":{"bytesInOutput":991},"src/client/models/EventType.ts":{"bytesInOutput":276},"src/client/models/ExternalRegistryKind.ts":{"bytesInOutput":270},"src/client/models/HTTPMethod.ts":{"bytesInOutput":329},"src/client/models/ImageRegistryAlreadyExistsError.ts":{"bytesInOutput":369},"src/client/models/ImageRegistryIsPublic.ts":{"bytesInOutput":299},"src/client/models/ImageRegistryNotAllowedError.ts":{"bytesInOutput":345},"src/client/models/ImageRegistryNotFoundError.ts":{"bytesInOutput":329},"src/client/models/ImageRegistryPermissions.ts":{"bytesInOutput":307},"src/client/models/ImageRegistryProtocolAlreadyExists.ts":{"bytesInOutput":405},"src/client/models/ImageRegistryProtocolIsReferencedError.ts":{"bytesInOutput":421},"src/client/models/ImageRegistryProtocolNotFound.ts":{"bytesInOutput":365},"src/client/models/InstanceType.ts":{"bytesInOutput":433},"src/client/models/IPType.ts":{"bytesInOutput":129},"src/client/models/JobStatusHealth.ts":{"bytesInOutput":332},"src/client/models/NetworkMode.ts":{"bytesInOutput":198},"src/client/models/NodeGroup.ts":{"bytesInOutput":173},"src/client/models/PlacementStatusHealth.ts":{"bytesInOutput":437},"src/client/models/ProvisionerConfiguration.ts":{"bytesInOutput":309},"src/client/models/RolloutStep.ts":{"bytesInOutput":373},"src/client/models/SchedulingPolicy.ts":{"bytesInOutput":395},"src/client/models/SecretAccessType.ts":{"bytesInOutput":157},"src/client/models/SecretNameAlreadyExists.ts":{"bytesInOutput":315},"src/client/models/SecretNotFound.ts":{"bytesInOutput":251},"src/client/models/SSHPublicKeyNotFoundError.ts":{"bytesInOutput":323},"src/client/models/UpdateApplicationRolloutRequest.ts":{"bytesInOutput":397},"src/client/services/AccountService.ts":{"bytesInOutput":1131},"src/client/services/ApplicationsService.ts":{"bytesInOutput":14854},"src/client/services/ContainerImagePreparationsService.ts":{"bytesInOutput":658},"src/client/services/DeploymentsService.ts":{"bytesInOutput":7677},"src/client/services/ImageRegistriesService.ts":{"bytesInOutput":5310},"src/client/services/IPsService.ts":{"bytesInOutput":844},"src/client/services/JobsService.ts":{"bytesInOutput":3741},"src/client/services/PlacementsService.ts":{"bytesInOutput":2069},"src/client/services/RolloutsService.ts":{"bytesInOutput":3924},"src/client/services/SecretsService.ts":{"bytesInOutput":2617},"src/client/services/SshPublicKeysService.ts":{"bytesInOutput":1693},"index.ts":{"bytesInOutput":0},"src/build.ts":{"bytesInOutput":17487},"src/context.ts":{"bytesInOutput":714},"src/images.ts":{"bytesInOutput":11463},"src/knobs.ts":{"bytesInOutput":1075},"src/registry.ts":{"bytesInOutput":292},"src/login.ts":{"bytesInOutput":1525},"src/utils.ts":{"bytesInOutput":9403},"src/inspect.ts":{"bytesInOutput":943},"src/limits.ts":{"bytesInOutput":5446},"src/deploy.ts":{"bytesInOutput":26931},"src/diff.ts":{"bytesInOutput":10090},"src/object.ts":{"bytesInOutput":984},"src/spinner.ts":{"bytesInOutput":422},"src/dev-options.ts":{"bytesInOutput":4838}},"bytes":173481}}}
1
+ {"inputs":{"src/client/core/ApiError.ts":{"bytes":686,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/core/CancelablePromise.ts":{"bytes":3230,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/core/OpenAPI.ts":{"bytes":896,"imports":[],"format":"esm"},"src/client/core/request.ts":{"bytes":12866,"imports":[{"path":"src/client/core/ApiError.ts","kind":"import-statement","original":"./ApiError"},{"path":"src/client/core/CancelablePromise.ts","kind":"import-statement","original":"./CancelablePromise"},{"path":"./OpenAPI","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/models/ApplicationAffinityColocation.ts":{"bytes":450,"imports":[],"format":"esm"},"src/client/models/ApplicationAffinityHardwareGeneration.ts":{"bytes":304,"imports":[],"format":"esm"},"src/client/models/ApplicationMutationError.ts":{"bytes":960,"imports":[],"format":"esm"},"src/client/models/ApplicationRollout.ts":{"bytes":2627,"imports":[],"format":"esm"},"src/client/models/AssignIPv4.ts":{"bytes":163,"imports":[],"format":"esm"},"src/client/models/AssignIPv6.ts":{"bytes":163,"imports":[],"format":"esm"},"src/client/models/BadRequestWithCodeError.ts":{"bytes":559,"imports":[],"format":"esm"},"src/client/models/ContainerNetworkMode.ts":{"bytes":679,"imports":[],"format":"esm"},"src/client/models/ContainerImagePreparationStatus.ts":{"bytes":176,"imports":[],"format":"esm"},"src/client/models/CreateApplicationRolloutRequest.ts":{"bytes":2341,"imports":[],"format":"esm"},"src/client/models/DeploymentCheckKind.ts":{"bytes":144,"imports":[],"format":"esm"},"src/client/models/DeploymentCheckType.ts":{"bytes":136,"imports":[],"format":"esm"},"src/client/models/DeploymentMutationError.ts":{"bytes":542,"imports":[],"format":"esm"},"src/client/models/DeploymentNotFoundError.ts":{"bytes":357,"imports":[],"format":"esm"},"src/client/models/DeploymentPlacementState.ts":{"bytes":258,"imports":[],"format":"esm"},"src/client/models/DeploymentQueuedReason.ts":{"bytes":246,"imports":[],"format":"esm"},"src/client/models/DeploymentSchedulingState.ts":{"bytes":212,"imports":[],"format":"esm"},"src/client/models/DeploymentType.ts":{"bytes":943,"imports":[],"format":"esm"},"src/client/models/DurableObjectStatusHealth.ts":{"bytes":426,"imports":[],"format":"esm"},"src/client/models/EventName.ts":{"bytes":2451,"imports":[],"format":"esm"},"src/client/models/EventType.ts":{"bytes":204,"imports":[],"format":"esm"},"src/client/models/ExternalRegistryKind.ts":{"bytes":229,"imports":[],"format":"esm"},"src/client/models/HTTPMethod.ts":{"bytes":284,"imports":[],"format":"esm"},"src/client/models/ImageRegistryAlreadyExistsError.ts":{"bytes":574,"imports":[],"format":"esm"},"src/client/models/ImageRegistryIsPublic.ts":{"bytes":364,"imports":[],"format":"esm"},"src/client/models/ImageRegistryNotAllowedError.ts":{"bytes":598,"imports":[],"format":"esm"},"src/client/models/ImageRegistryNotFoundError.ts":{"bytes":333,"imports":[],"format":"esm"},"src/client/models/ImageRegistryPermissions.ts":{"bytes":175,"imports":[],"format":"esm"},"src/client/models/ImageRegistryProtocolAlreadyExists.ts":{"bytes":340,"imports":[],"format":"esm"},"src/client/models/ImageRegistryProtocolIsReferencedError.ts":{"bytes":441,"imports":[],"format":"esm"},"src/client/models/ImageRegistryProtocolNotFound.ts":{"bytes":369,"imports":[],"format":"esm"},"src/client/models/InstanceType.ts":{"bytes":1084,"imports":[],"format":"esm"},"src/client/models/IPType.ts":{"bytes":171,"imports":[],"format":"esm"},"src/client/models/JobStatusHealth.ts":{"bytes":740,"imports":[],"format":"esm"},"src/client/models/NetworkMode.ts":{"bytes":204,"imports":[],"format":"esm"},"src/client/models/NodeGroup.ts":{"bytes":335,"imports":[],"format":"esm"},"src/client/models/PlacementStatusHealth.ts":{"bytes":569,"imports":[],"format":"esm"},"src/client/models/ProvisionerConfiguration.ts":{"bytes":389,"imports":[],"format":"esm"},"src/client/models/RolloutStep.ts":{"bytes":1016,"imports":[],"format":"esm"},"src/client/models/SchedulingPolicy.ts":{"bytes":304,"imports":[],"format":"esm"},"src/client/models/SecretAccessType.ts":{"bytes":239,"imports":[],"format":"esm"},"src/client/models/SecretNameAlreadyExists.ts":{"bytes":546,"imports":[],"format":"esm"},"src/client/models/SecretNotFound.ts":{"bytes":288,"imports":[],"format":"esm"},"src/client/models/SSHPublicKeyNotFoundError.ts":{"bytes":330,"imports":[],"format":"esm"},"src/client/models/UpdateApplicationRolloutRequest.ts":{"bytes":913,"imports":[],"format":"esm"},"src/client/services/AccountService.ts":{"bytes":1535,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/ApplicationsService.ts":{"bytes":17858,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/ContainerImagePreparationsService.ts":{"bytes":1064,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/DeploymentsService.ts":{"bytes":9316,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/ImageRegistriesService.ts":{"bytes":6457,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/IPsService.ts":{"bytes":1441,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/JobsService.ts":{"bytes":4599,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/PlacementsService.ts":{"bytes":2733,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/RolloutsService.ts":{"bytes":4854,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/SecretsService.ts":{"bytes":3305,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/services/SshPublicKeysService.ts":{"bytes":2261,"imports":[{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"../core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"../core/request"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/client/index.ts":{"bytes":16133,"imports":[{"path":"src/client/core/ApiError.ts","kind":"import-statement","original":"./core/ApiError"},{"path":"src/client/core/CancelablePromise.ts","kind":"import-statement","original":"./core/CancelablePromise"},{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"./core/OpenAPI"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"./core/request"},{"path":"src/client/models/ApplicationAffinityColocation.ts","kind":"import-statement","original":"./models/ApplicationAffinityColocation"},{"path":"src/client/models/ApplicationAffinityHardwareGeneration.ts","kind":"import-statement","original":"./models/ApplicationAffinityHardwareGeneration"},{"path":"src/client/models/ApplicationMutationError.ts","kind":"import-statement","original":"./models/ApplicationMutationError"},{"path":"src/client/models/ApplicationRollout.ts","kind":"import-statement","original":"./models/ApplicationRollout"},{"path":"src/client/models/AssignIPv4.ts","kind":"import-statement","original":"./models/AssignIPv4"},{"path":"src/client/models/AssignIPv6.ts","kind":"import-statement","original":"./models/AssignIPv6"},{"path":"src/client/models/BadRequestWithCodeError.ts","kind":"import-statement","original":"./models/BadRequestWithCodeError"},{"path":"src/client/models/ContainerNetworkMode.ts","kind":"import-statement","original":"./models/ContainerNetworkMode"},{"path":"src/client/models/ContainerImagePreparationStatus.ts","kind":"import-statement","original":"./models/ContainerImagePreparationStatus"},{"path":"src/client/models/CreateApplicationRolloutRequest.ts","kind":"import-statement","original":"./models/CreateApplicationRolloutRequest"},{"path":"src/client/models/DeploymentCheckKind.ts","kind":"import-statement","original":"./models/DeploymentCheckKind"},{"path":"src/client/models/DeploymentCheckType.ts","kind":"import-statement","original":"./models/DeploymentCheckType"},{"path":"src/client/models/DeploymentMutationError.ts","kind":"import-statement","original":"./models/DeploymentMutationError"},{"path":"src/client/models/DeploymentNotFoundError.ts","kind":"import-statement","original":"./models/DeploymentNotFoundError"},{"path":"src/client/models/DeploymentPlacementState.ts","kind":"import-statement","original":"./models/DeploymentPlacementState"},{"path":"src/client/models/DeploymentQueuedReason.ts","kind":"import-statement","original":"./models/DeploymentQueuedReason"},{"path":"src/client/models/DeploymentSchedulingState.ts","kind":"import-statement","original":"./models/DeploymentSchedulingState"},{"path":"src/client/models/DeploymentType.ts","kind":"import-statement","original":"./models/DeploymentType"},{"path":"src/client/models/DurableObjectStatusHealth.ts","kind":"import-statement","original":"./models/DurableObjectStatusHealth"},{"path":"src/client/models/EventName.ts","kind":"import-statement","original":"./models/EventName"},{"path":"src/client/models/EventType.ts","kind":"import-statement","original":"./models/EventType"},{"path":"src/client/models/ExternalRegistryKind.ts","kind":"import-statement","original":"./models/ExternalRegistryKind"},{"path":"src/client/models/HTTPMethod.ts","kind":"import-statement","original":"./models/HTTPMethod"},{"path":"src/client/models/ImageRegistryAlreadyExistsError.ts","kind":"import-statement","original":"./models/ImageRegistryAlreadyExistsError"},{"path":"src/client/models/ImageRegistryIsPublic.ts","kind":"import-statement","original":"./models/ImageRegistryIsPublic"},{"path":"src/client/models/ImageRegistryNotAllowedError.ts","kind":"import-statement","original":"./models/ImageRegistryNotAllowedError"},{"path":"src/client/models/ImageRegistryNotFoundError.ts","kind":"import-statement","original":"./models/ImageRegistryNotFoundError"},{"path":"src/client/models/ImageRegistryPermissions.ts","kind":"import-statement","original":"./models/ImageRegistryPermissions"},{"path":"src/client/models/ImageRegistryProtocolAlreadyExists.ts","kind":"import-statement","original":"./models/ImageRegistryProtocolAlreadyExists"},{"path":"src/client/models/ImageRegistryProtocolIsReferencedError.ts","kind":"import-statement","original":"./models/ImageRegistryProtocolIsReferencedError"},{"path":"src/client/models/ImageRegistryProtocolNotFound.ts","kind":"import-statement","original":"./models/ImageRegistryProtocolNotFound"},{"path":"src/client/models/InstanceType.ts","kind":"import-statement","original":"./models/InstanceType"},{"path":"src/client/models/IPType.ts","kind":"import-statement","original":"./models/IPType"},{"path":"src/client/models/JobStatusHealth.ts","kind":"import-statement","original":"./models/JobStatusHealth"},{"path":"src/client/models/NetworkMode.ts","kind":"import-statement","original":"./models/NetworkMode"},{"path":"src/client/models/NodeGroup.ts","kind":"import-statement","original":"./models/NodeGroup"},{"path":"src/client/models/PlacementStatusHealth.ts","kind":"import-statement","original":"./models/PlacementStatusHealth"},{"path":"src/client/models/ProvisionerConfiguration.ts","kind":"import-statement","original":"./models/ProvisionerConfiguration"},{"path":"src/client/models/RolloutStep.ts","kind":"import-statement","original":"./models/RolloutStep"},{"path":"src/client/models/SchedulingPolicy.ts","kind":"import-statement","original":"./models/SchedulingPolicy"},{"path":"src/client/models/SecretAccessType.ts","kind":"import-statement","original":"./models/SecretAccessType"},{"path":"src/client/models/SecretNameAlreadyExists.ts","kind":"import-statement","original":"./models/SecretNameAlreadyExists"},{"path":"src/client/models/SecretNotFound.ts","kind":"import-statement","original":"./models/SecretNotFound"},{"path":"src/client/models/SSHPublicKeyNotFoundError.ts","kind":"import-statement","original":"./models/SSHPublicKeyNotFoundError"},{"path":"src/client/models/UpdateApplicationRolloutRequest.ts","kind":"import-statement","original":"./models/UpdateApplicationRolloutRequest"},{"path":"src/client/services/AccountService.ts","kind":"import-statement","original":"./services/AccountService"},{"path":"src/client/services/ApplicationsService.ts","kind":"import-statement","original":"./services/ApplicationsService"},{"path":"src/client/services/ContainerImagePreparationsService.ts","kind":"import-statement","original":"./services/ContainerImagePreparationsService"},{"path":"src/client/services/DeploymentsService.ts","kind":"import-statement","original":"./services/DeploymentsService"},{"path":"src/client/services/ImageRegistriesService.ts","kind":"import-statement","original":"./services/ImageRegistriesService"},{"path":"src/client/services/IPsService.ts","kind":"import-statement","original":"./services/IPsService"},{"path":"src/client/services/JobsService.ts","kind":"import-statement","original":"./services/JobsService"},{"path":"src/client/services/PlacementsService.ts","kind":"import-statement","original":"./services/PlacementsService"},{"path":"src/client/services/RolloutsService.ts","kind":"import-statement","original":"./services/RolloutsService"},{"path":"src/client/services/SecretsService.ts","kind":"import-statement","original":"./services/SecretsService"},{"path":"src/client/services/SshPublicKeysService.ts","kind":"import-statement","original":"./services/SshPublicKeysService"}],"format":"esm"},"src/context.ts":{"bytes":901,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/registry.ts":{"bytes":790,"imports":[{"path":"src/knobs.ts","kind":"import-statement","original":"./knobs"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/knobs.ts":{"bytes":1440,"imports":[{"path":"@cloudflare/workers-utils/compliance","kind":"import-statement","external":true},{"path":"src/registry.ts","kind":"import-statement","original":"./registry"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/login.ts":{"bytes":1747,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/client/index.ts","kind":"import-statement","original":"./client"},{"path":"src/client/core/OpenAPI.ts","kind":"import-statement","original":"./client/core/OpenAPI"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/inspect.ts":{"bytes":886,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/utils.ts":{"bytes":14079,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/inspect.ts","kind":"import-statement","original":"./inspect"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/images.ts":{"bytes":15535,"imports":[{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/build.ts","kind":"import-statement","original":"./build"},{"path":"src/client/models/ExternalRegistryKind.ts","kind":"import-statement","original":"./client/models/ExternalRegistryKind"},{"path":"src/knobs.ts","kind":"import-statement","original":"./knobs"},{"path":"src/login.ts","kind":"import-statement","original":"./login"},{"path":"src/registry.ts","kind":"import-statement","original":"./registry"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/limits.ts":{"bytes":6884,"imports":[{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/client/index.ts","kind":"import-statement","original":"./client"},{"path":"src/context.ts","kind":"import-statement","original":"./context"},{"path":"src/inspect.ts","kind":"import-statement","original":"./inspect"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/build.ts":{"bytes":24807,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/docker-path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/fs-helpers","kind":"import-statement","external":true},{"path":"src/context.ts","kind":"import-statement","original":"./context"},{"path":"src/images.ts","kind":"import-statement","original":"./images"},{"path":"src/inspect.ts","kind":"import-statement","original":"./inspect"},{"path":"src/knobs.ts","kind":"import-statement","original":"./knobs"},{"path":"src/limits.ts","kind":"import-statement","original":"./limits"},{"path":"src/login.ts","kind":"import-statement","original":"./login"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/build-output.ts":{"bytes":7530,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@cloudflare/build-output-utils","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/build.ts","kind":"import-statement","original":"./build"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/diff.ts":{"bytes":15139,"imports":[{"path":"@cloudflare/cli-shared-helpers","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers/colors","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/object.ts":{"bytes":1435,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/spinner.ts":{"bytes":434,"imports":[{"path":"@cloudflare/cli-shared-helpers/interactive","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/deploy.ts":{"bytes":32106,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:timers/promises","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers/colors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"src/client/index.ts","kind":"import-statement","original":"./client"},{"path":"src/context.ts","kind":"import-statement","original":"./context"},{"path":"src/diff.ts","kind":"import-statement","original":"./diff"},{"path":"src/images.ts","kind":"import-statement","original":"./images"},{"path":"src/limits.ts","kind":"import-statement","original":"./limits"},{"path":"src/object.ts","kind":"import-statement","original":"./object"},{"path":"src/spinner.ts","kind":"import-statement","original":"./spinner"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":3964,"imports":[],"format":"esm"},"src/dev-options.ts":{"bytes":5572,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils","kind":"import-statement","external":true},{"path":"src/knobs.ts","kind":"import-statement","original":"./knobs"},{"path":"src/registry.ts","kind":"import-statement","original":"./registry"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"index.ts":{"bytes":572,"imports":[{"path":"src/client/index.ts","kind":"import-statement","original":"./src/client"},{"path":"src/client/core/request.ts","kind":"import-statement","original":"./src/client/core/request"},{"path":"src/build.ts","kind":"import-statement","original":"./src/build"},{"path":"src/build-output.ts","kind":"import-statement","original":"./src/build-output"},{"path":"src/context.ts","kind":"import-statement","original":"./src/context"},{"path":"src/deploy.ts","kind":"import-statement","original":"./src/deploy"},{"path":"src/diff.ts","kind":"import-statement","original":"./src/diff"},{"path":"src/login.ts","kind":"import-statement","original":"./src/login"},{"path":"src/knobs.ts","kind":"import-statement","original":"./src/knobs"},{"path":"src/limits.ts","kind":"import-statement","original":"./src/limits"},{"path":"src/object.ts","kind":"import-statement","original":"./src/object"},{"path":"src/utils.ts","kind":"import-statement","original":"./src/utils"},{"path":"src/types.ts","kind":"import-statement","original":"./src/types"},{"path":"src/inspect.ts","kind":"import-statement","original":"./src/inspect"},{"path":"src/registry.ts","kind":"import-statement","original":"./src/registry"},{"path":"src/images.ts","kind":"import-statement","original":"./src/images"},{"path":"src/spinner.ts","kind":"import-statement","original":"./src/spinner"},{"path":"src/dev-options.ts","kind":"import-statement","original":"./src/dev-options"}],"format":"esm"}},"outputs":{"dist/index.mjs":{"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/docker-path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/fs-helpers","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/compliance","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@cloudflare/build-output-utils","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:timers/promises","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers/colors","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils/errors","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers/colors","kind":"import-statement","external":true},{"path":"@cloudflare/cli-shared-helpers/interactive","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@cloudflare/workers-utils","kind":"import-statement","external":true}],"exports":["AccountService","ApiError","ApplicationAffinityColocation","ApplicationAffinityHardwareGeneration","ApplicationMutationError","ApplicationRollout","ApplicationsService","AssignIPv4","AssignIPv6","BadRequestWithCodeError","CancelError","CancelablePromise","ContainerImagePreparationStatus","ContainerImagePreparationsService","ContainerNetworkMode","CreateApplicationRolloutRequest","DEFAULT_CONTAINER_EGRESS_INTERCEPTOR_IMAGE","DeploymentCheckKind","DeploymentCheckType","DeploymentMutationError","DeploymentNotFoundError","DeploymentPlacementState","DeploymentQueuedReason","DeploymentSchedulingState","DeploymentType","DeploymentsService","Diff","DurableObjectStatusHealth","EventName","EventType","ExternalRegistryKind","FUSE_CONTAINER_PRIVILEGES","HTTPMethod","IPType","IPsService","ImageRegistriesService","ImageRegistryAlreadyExistsError","ImageRegistryIsPublic","ImageRegistryNotAllowedError","ImageRegistryNotFoundError","ImageRegistryPermissions","ImageRegistryProtocolAlreadyExists","ImageRegistryProtocolIsReferencedError","ImageRegistryProtocolNotFound","InstanceType","JobStatusHealth","JobsService","MF_DEV_CONTAINER_PREFIX","NetworkMode","NodeGroup","OpenAPI","PlacementStatusHealth","PlacementsService","ProvisionerConfiguration","RolloutStep","RolloutsService","SSHPublicKeyNotFoundError","SchedulingPolicy","SecretAccessType","SecretNameAlreadyExists","SecretNotFound","SecretsService","SshPublicKeysService","UpdateApplicationRolloutRequest","apply","buildAndMaybePush","buildAndWriteContainerOutput","buildCommand","buildContainerImages","checkExposedPorts","cleanApplicationFromAPI","cleanForInstanceType","cleanupBuiltImages","cleanupContainers","configRolloutStepsToAPI","configureOpenAPIForContainerPull","containerPrivilegesAllowed","createContainerDevPlan","createDurableObjectNamespaceResolver","deployContainers","dockerBuild","dockerImageInspect","dockerLoginImageRegistry","ensureContainerLimits","ensureImageFitsLimits","fetchPagedListResult","fetchResult","formatError","generateContainerBuildId","getAndValidateRegistryType","getCloudflareContainerRegistry","getCloudflareRegistryWithAccountNamespace","getContainerAccount","getContainerIdsByImageTags","getContainerIdsFromImage","getContainerImageTag","getDevContainerImageName","getDockerHostFromEnv","getDockerSocketFromContext","getEgressInterceptorImage","getEgressInterceptorPlatform","getInstanceTypeUsage","inferInstanceType","initContainersSharedContext","isCloudflareRegistryImage","isDockerRunning","isDockerfileContainerConfig","listDurableObjects","logger","normalizeContainerImageRepositoryName","prepareContainerImagesForDev","promiseSpinner","pullEgressInterceptorImage","pullImage","pushBuiltContainerImage","pushCommand","pushImageIfChanged","request","requestPaginated","resolveDockerHost","resolveImageName","runDockerCmd","runDockerCmdWithOutput","sortObjectRecursive","startContainerBuild","stripUndefined","validateAndEncodeGarKey","verifyDockerInstalled"],"entryPoint":"index.ts","inputs":{"src/client/core/ApiError.ts":{"bytesInOutput":399},"src/client/index.ts":{"bytesInOutput":0},"src/client/core/CancelablePromise.ts":{"bytesInOutput":2718},"src/client/core/OpenAPI.ts":{"bytesInOutput":220},"src/client/core/request.ts":{"bytesInOutput":10965},"src/client/models/ApplicationAffinityColocation.ts":{"bytesInOutput":236},"src/client/models/ApplicationAffinityHardwareGeneration.ts":{"bytesInOutput":310},"src/client/models/ApplicationMutationError.ts":{"bytesInOutput":1249},"src/client/models/ApplicationRollout.ts":{"bytesInOutput":815},"src/client/models/AssignIPv4.ts":{"bytesInOutput":211},"src/client/models/AssignIPv6.ts":{"bytesInOutput":211},"src/client/models/BadRequestWithCodeError.ts":{"bytesInOutput":291},"src/client/models/ContainerNetworkMode.ts":{"bytesInOutput":293},"src/client/models/ContainerImagePreparationStatus.ts":{"bytesInOutput":350},"src/client/models/CreateApplicationRolloutRequest.ts":{"bytesInOutput":1094},"src/client/models/DeploymentCheckKind.ts":{"bytesInOutput":221},"src/client/models/DeploymentCheckType.ts":{"bytesInOutput":213},"src/client/models/DeploymentMutationError.ts":{"bytesInOutput":643},"src/client/models/DeploymentNotFoundError.ts":{"bytesInOutput":303},"src/client/models/DeploymentPlacementState.ts":{"bytesInOutput":365},"src/client/models/DeploymentQueuedReason.ts":{"bytesInOutput":279},"src/client/models/DeploymentSchedulingState.ts":{"bytesInOutput":265},"src/client/models/DeploymentType.ts":{"bytesInOutput":247},"src/client/models/DurableObjectStatusHealth.ts":{"bytesInOutput":277},"src/client/models/EventName.ts":{"bytesInOutput":991},"src/client/models/EventType.ts":{"bytesInOutput":276},"src/client/models/ExternalRegistryKind.ts":{"bytesInOutput":270},"src/client/models/HTTPMethod.ts":{"bytesInOutput":329},"src/client/models/ImageRegistryAlreadyExistsError.ts":{"bytesInOutput":369},"src/client/models/ImageRegistryIsPublic.ts":{"bytesInOutput":299},"src/client/models/ImageRegistryNotAllowedError.ts":{"bytesInOutput":345},"src/client/models/ImageRegistryNotFoundError.ts":{"bytesInOutput":329},"src/client/models/ImageRegistryPermissions.ts":{"bytesInOutput":307},"src/client/models/ImageRegistryProtocolAlreadyExists.ts":{"bytesInOutput":405},"src/client/models/ImageRegistryProtocolIsReferencedError.ts":{"bytesInOutput":421},"src/client/models/ImageRegistryProtocolNotFound.ts":{"bytesInOutput":365},"src/client/models/InstanceType.ts":{"bytesInOutput":433},"src/client/models/IPType.ts":{"bytesInOutput":129},"src/client/models/JobStatusHealth.ts":{"bytesInOutput":332},"src/client/models/NetworkMode.ts":{"bytesInOutput":198},"src/client/models/NodeGroup.ts":{"bytesInOutput":173},"src/client/models/PlacementStatusHealth.ts":{"bytesInOutput":437},"src/client/models/ProvisionerConfiguration.ts":{"bytesInOutput":309},"src/client/models/RolloutStep.ts":{"bytesInOutput":373},"src/client/models/SchedulingPolicy.ts":{"bytesInOutput":395},"src/client/models/SecretAccessType.ts":{"bytesInOutput":157},"src/client/models/SecretNameAlreadyExists.ts":{"bytesInOutput":315},"src/client/models/SecretNotFound.ts":{"bytesInOutput":251},"src/client/models/SSHPublicKeyNotFoundError.ts":{"bytesInOutput":323},"src/client/models/UpdateApplicationRolloutRequest.ts":{"bytesInOutput":397},"src/client/services/AccountService.ts":{"bytesInOutput":1131},"src/client/services/ApplicationsService.ts":{"bytesInOutput":14854},"src/client/services/ContainerImagePreparationsService.ts":{"bytesInOutput":658},"src/client/services/DeploymentsService.ts":{"bytesInOutput":7677},"src/client/services/ImageRegistriesService.ts":{"bytesInOutput":5310},"src/client/services/IPsService.ts":{"bytesInOutput":844},"src/client/services/JobsService.ts":{"bytesInOutput":3741},"src/client/services/PlacementsService.ts":{"bytesInOutput":2069},"src/client/services/RolloutsService.ts":{"bytesInOutput":3924},"src/client/services/SecretsService.ts":{"bytesInOutput":2617},"src/client/services/SshPublicKeysService.ts":{"bytesInOutput":1693},"index.ts":{"bytesInOutput":0},"src/build.ts":{"bytesInOutput":18012},"src/context.ts":{"bytesInOutput":714},"src/images.ts":{"bytesInOutput":11463},"src/knobs.ts":{"bytesInOutput":1075},"src/registry.ts":{"bytesInOutput":292},"src/login.ts":{"bytesInOutput":1525},"src/utils.ts":{"bytesInOutput":9403},"src/inspect.ts":{"bytesInOutput":943},"src/limits.ts":{"bytesInOutput":5446},"src/build-output.ts":{"bytesInOutput":6603},"src/deploy.ts":{"bytesInOutput":26931},"src/diff.ts":{"bytesInOutput":10090},"src/object.ts":{"bytesInOutput":984},"src/spinner.ts":{"bytesInOutput":422},"src/dev-options.ts":{"bytesInOutput":4846}},"bytes":180714}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/containers-shared",
3
- "version": "0.16.5",
3
+ "version": "0.17.0",
4
4
  "description": "Internal-only shared container helpers for workers-sdk. Do not use directly; APIs are unstable and may change or disappear without notice.",
5
5
  "homepage": "https://github.com/cloudflare/workers-sdk/tree/main/packages/containers-shared#readme",
6
6
  "bugs": {
@@ -24,8 +24,10 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@cloudflare/cli-shared-helpers": "0.1.33",
28
- "@cloudflare/workers-utils": "0.40.0"
27
+ "@cloudflare/build-output-utils": "0.6.0",
28
+ "@cloudflare/cli-shared-helpers": "0.1.34",
29
+ "@cloudflare/workers-utils": "0.40.1",
30
+ "@cloudflare/config": "0.15.0"
29
31
  },
30
32
  "devDependencies": {
31
33
  "@types/node": "22.15.17",