alchemy 2.0.0-beta.61 → 2.0.0-beta.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -11
- package/bin/exec.js +2023 -75
- package/bin/exec.js.map +1 -1
- package/lib/AWS/ACM/Certificate.d.ts.map +1 -1
- package/lib/AWS/ACM/Certificate.js +16 -4
- package/lib/AWS/ACM/Certificate.js.map +1 -1
- package/lib/AWS/ApiGateway/common.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/common.js +6 -3
- package/lib/AWS/ApiGateway/common.js.map +1 -1
- package/lib/AWS/AuthProvider.d.ts.map +1 -1
- package/lib/AWS/AuthProvider.js +2 -2
- package/lib/AWS/AuthProvider.js.map +1 -1
- package/lib/AWS/AutoScaling/AutoScalingGroup.d.ts.map +1 -1
- package/lib/AWS/AutoScaling/AutoScalingGroup.js +8 -2
- package/lib/AWS/AutoScaling/AutoScalingGroup.js.map +1 -1
- package/lib/AWS/Bootstrap.d.ts.map +1 -1
- package/lib/AWS/Bootstrap.js +5 -2
- package/lib/AWS/Bootstrap.js.map +1 -1
- package/lib/AWS/CloudFront/Distribution.d.ts.map +1 -1
- package/lib/AWS/CloudFront/Distribution.js +20 -5
- package/lib/AWS/CloudFront/Distribution.js.map +1 -1
- package/lib/AWS/CloudFront/Function.js +5 -2
- package/lib/AWS/CloudFront/Function.js.map +1 -1
- package/lib/AWS/CloudFront/Invalidation.d.ts.map +1 -1
- package/lib/AWS/CloudFront/Invalidation.js +4 -1
- package/lib/AWS/CloudFront/Invalidation.js.map +1 -1
- package/lib/AWS/CloudFront/KvEntries.d.ts.map +1 -1
- package/lib/AWS/CloudFront/KvEntries.js +4 -1
- package/lib/AWS/CloudFront/KvEntries.js.map +1 -1
- package/lib/AWS/CloudFront/KvRoutesUpdate.d.ts.map +1 -1
- package/lib/AWS/CloudFront/KvRoutesUpdate.js +8 -2
- package/lib/AWS/CloudFront/KvRoutesUpdate.js.map +1 -1
- package/lib/AWS/CloudFront/VpcOrigin.d.ts.map +1 -1
- package/lib/AWS/CloudFront/VpcOrigin.js +12 -3
- package/lib/AWS/CloudFront/VpcOrigin.js.map +1 -1
- package/lib/AWS/CloudFront/common.d.ts.map +1 -1
- package/lib/AWS/CloudFront/common.js +5 -2
- package/lib/AWS/CloudFront/common.js.map +1 -1
- package/lib/AWS/CloudWatch/AnomalyDetector.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/AnomalyDetector.js +4 -1
- package/lib/AWS/CloudWatch/AnomalyDetector.js.map +1 -1
- package/lib/AWS/CloudWatch/common.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/common.js +1 -1
- package/lib/AWS/CloudWatch/common.js.map +1 -1
- package/lib/AWS/DynamoDB/Table.d.ts.map +1 -1
- package/lib/AWS/DynamoDB/Table.js +53 -20
- package/lib/AWS/DynamoDB/Table.js.map +1 -1
- package/lib/AWS/EC2/EIP.d.ts.map +1 -1
- package/lib/AWS/EC2/EIP.js +4 -1
- package/lib/AWS/EC2/EIP.js.map +1 -1
- package/lib/AWS/EC2/EgressOnlyInternetGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/EgressOnlyInternetGateway.js +4 -2
- package/lib/AWS/EC2/EgressOnlyInternetGateway.js.map +1 -1
- package/lib/AWS/EC2/Instance.d.ts.map +1 -1
- package/lib/AWS/EC2/Instance.js +12 -3
- package/lib/AWS/EC2/Instance.js.map +1 -1
- package/lib/AWS/EC2/InternetGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/InternetGateway.js +12 -5
- package/lib/AWS/EC2/InternetGateway.js.map +1 -1
- package/lib/AWS/EC2/NatGateway.js +2 -4
- package/lib/AWS/EC2/NatGateway.js.map +1 -1
- package/lib/AWS/EC2/NetworkAcl.d.ts.map +1 -1
- package/lib/AWS/EC2/NetworkAcl.js +4 -1
- package/lib/AWS/EC2/NetworkAcl.js.map +1 -1
- package/lib/AWS/EC2/NetworkAclEntry.d.ts.map +1 -1
- package/lib/AWS/EC2/NetworkAclEntry.js +4 -1
- package/lib/AWS/EC2/NetworkAclEntry.js.map +1 -1
- package/lib/AWS/EC2/RouteTable.d.ts.map +1 -1
- package/lib/AWS/EC2/RouteTable.js +8 -6
- package/lib/AWS/EC2/RouteTable.js.map +1 -1
- package/lib/AWS/EC2/RouteTableAssociation.js +2 -5
- package/lib/AWS/EC2/RouteTableAssociation.js.map +1 -1
- package/lib/AWS/EC2/SecurityGroup.d.ts.map +1 -1
- package/lib/AWS/EC2/SecurityGroup.js +8 -3
- package/lib/AWS/EC2/SecurityGroup.js.map +1 -1
- package/lib/AWS/EC2/Subnet.d.ts.map +1 -1
- package/lib/AWS/EC2/Subnet.js +10 -6
- package/lib/AWS/EC2/Subnet.js.map +1 -1
- package/lib/AWS/EC2/Vpc.d.ts.map +1 -1
- package/lib/AWS/EC2/Vpc.js +7 -7
- package/lib/AWS/EC2/Vpc.js.map +1 -1
- package/lib/AWS/EC2/VpcEndpoint.js +2 -4
- package/lib/AWS/EC2/VpcEndpoint.js.map +1 -1
- package/lib/AWS/EC2/hosted.d.ts.map +1 -1
- package/lib/AWS/EC2/hosted.js +2 -1
- package/lib/AWS/EC2/hosted.js.map +1 -1
- package/lib/AWS/ECS/Service.d.ts.map +1 -1
- package/lib/AWS/ECS/Service.js +4 -1
- package/lib/AWS/ECS/Service.js.map +1 -1
- package/lib/AWS/ECS/Task.d.ts.map +1 -1
- package/lib/AWS/ECS/Task.js +2 -1
- package/lib/AWS/ECS/Task.js.map +1 -1
- package/lib/AWS/EKS/Addon.js +8 -2
- package/lib/AWS/EKS/Addon.js.map +1 -1
- package/lib/AWS/EKS/Cluster.d.ts.map +1 -1
- package/lib/AWS/EKS/Cluster.js +4 -1
- package/lib/AWS/EKS/Cluster.js.map +1 -1
- package/lib/AWS/ELBv2/TargetGroup.d.ts.map +1 -1
- package/lib/AWS/ELBv2/TargetGroup.js +4 -1
- package/lib/AWS/ELBv2/TargetGroup.js.map +1 -1
- package/lib/AWS/ELBv2/TrustStore.d.ts.map +1 -1
- package/lib/AWS/ELBv2/TrustStore.js +4 -1
- package/lib/AWS/ELBv2/TrustStore.js.map +1 -1
- package/lib/AWS/IAM/SAMLProvider.js +4 -1
- package/lib/AWS/IAM/SAMLProvider.js.map +1 -1
- package/lib/AWS/IdentityCenter/AccountAssignment.js +8 -2
- package/lib/AWS/IdentityCenter/AccountAssignment.js.map +1 -1
- package/lib/AWS/IdentityCenter/common.d.ts.map +1 -1
- package/lib/AWS/IdentityCenter/common.js +1 -1
- package/lib/AWS/IdentityCenter/common.js.map +1 -1
- package/lib/AWS/KMS/Alias.js +4 -1
- package/lib/AWS/KMS/Alias.js.map +1 -1
- package/lib/AWS/KMS/Key.js +4 -1
- package/lib/AWS/KMS/Key.js.map +1 -1
- package/lib/AWS/Kinesis/Stream.d.ts.map +1 -1
- package/lib/AWS/Kinesis/Stream.js +2 -2
- package/lib/AWS/Kinesis/Stream.js.map +1 -1
- package/lib/AWS/Kinesis/StreamConsumer.d.ts.map +1 -1
- package/lib/AWS/Kinesis/StreamConsumer.js +7 -4
- package/lib/AWS/Kinesis/StreamConsumer.js.map +1 -1
- package/lib/AWS/Lambda/Alias.d.ts.map +1 -1
- package/lib/AWS/Lambda/Alias.js +4 -1
- package/lib/AWS/Lambda/Alias.js.map +1 -1
- package/lib/AWS/Lambda/EventInvokeConfig.d.ts.map +1 -1
- package/lib/AWS/Lambda/EventInvokeConfig.js +2 -2
- package/lib/AWS/Lambda/EventInvokeConfig.js.map +1 -1
- package/lib/AWS/Lambda/EventSourceMapping.d.ts.map +1 -1
- package/lib/AWS/Lambda/EventSourceMapping.js +10 -4
- package/lib/AWS/Lambda/EventSourceMapping.js.map +1 -1
- package/lib/AWS/Lambda/Function.d.ts +16 -1
- package/lib/AWS/Lambda/Function.d.ts.map +1 -1
- package/lib/AWS/Lambda/Function.js +113 -65
- package/lib/AWS/Lambda/Function.js.map +1 -1
- package/lib/AWS/Lambda/MicrovmProvider.d.ts.map +1 -1
- package/lib/AWS/Lambda/MicrovmProvider.js +13 -5
- package/lib/AWS/Lambda/MicrovmProvider.js.map +1 -1
- package/lib/AWS/Lambda/MicrovmRuntimeContext.d.ts.map +1 -1
- package/lib/AWS/Lambda/MicrovmRuntimeContext.js +9 -21
- package/lib/AWS/Lambda/MicrovmRuntimeContext.js.map +1 -1
- package/lib/AWS/Lambda/NetworkConnector.js +13 -5
- package/lib/AWS/Lambda/NetworkConnector.js.map +1 -1
- package/lib/AWS/Lambda/RuntimeExtension.d.ts +27 -0
- package/lib/AWS/Lambda/RuntimeExtension.d.ts.map +1 -0
- package/lib/AWS/Lambda/RuntimeExtension.js +49 -0
- package/lib/AWS/Lambda/RuntimeExtension.js.map +1 -0
- package/lib/AWS/Organizations/Account.js +5 -2
- package/lib/AWS/Organizations/Account.js.map +1 -1
- package/lib/AWS/Organizations/common.d.ts.map +1 -1
- package/lib/AWS/Organizations/common.js +1 -1
- package/lib/AWS/Organizations/common.js.map +1 -1
- package/lib/AWS/Providers.js +14 -12
- package/lib/AWS/Providers.js.map +1 -1
- package/lib/AWS/RDS/DBCluster.d.ts.map +1 -1
- package/lib/AWS/RDS/DBCluster.js +8 -2
- package/lib/AWS/RDS/DBCluster.js.map +1 -1
- package/lib/AWS/RDS/DBInstance.d.ts.map +1 -1
- package/lib/AWS/RDS/DBInstance.js +8 -2
- package/lib/AWS/RDS/DBInstance.js.map +1 -1
- package/lib/AWS/RDS/DBProxy.d.ts.map +1 -1
- package/lib/AWS/RDS/DBProxy.js +4 -1
- package/lib/AWS/RDS/DBProxy.js.map +1 -1
- package/lib/AWS/RDS/DBProxyEndpoint.d.ts.map +1 -1
- package/lib/AWS/RDS/DBProxyEndpoint.js +4 -1
- package/lib/AWS/RDS/DBProxyEndpoint.js.map +1 -1
- package/lib/AWS/Route53/HealthCheck.d.ts.map +1 -1
- package/lib/AWS/Route53/HealthCheck.js +8 -2
- package/lib/AWS/Route53/HealthCheck.js.map +1 -1
- package/lib/AWS/Route53/HostedZone.d.ts.map +1 -1
- package/lib/AWS/Route53/HostedZone.js +8 -2
- package/lib/AWS/Route53/HostedZone.js.map +1 -1
- package/lib/AWS/Route53/Record.d.ts.map +1 -1
- package/lib/AWS/Route53/Record.js +4 -1
- package/lib/AWS/Route53/Record.js.map +1 -1
- package/lib/AWS/S3/Bucket.d.ts.map +1 -1
- package/lib/AWS/S3/Bucket.js +5 -2
- package/lib/AWS/S3/Bucket.js.map +1 -1
- package/lib/AWS/SQS/Queue.d.ts.map +1 -1
- package/lib/AWS/SQS/Queue.js +25 -7
- package/lib/AWS/SQS/Queue.js.map +1 -1
- package/lib/AWS/StateStore/State.js +5 -2
- package/lib/AWS/StateStore/State.js.map +1 -1
- package/lib/AWS/Website/AssetDeployment.js +5 -2
- package/lib/AWS/Website/AssetDeployment.js.map +1 -1
- package/lib/Action.d.ts +8 -0
- package/lib/Action.d.ts.map +1 -1
- package/lib/Action.js +16 -5
- package/lib/Action.js.map +1 -1
- package/lib/ActionRuntimeContext.d.ts +14 -0
- package/lib/ActionRuntimeContext.d.ts.map +1 -0
- package/lib/ActionRuntimeContext.js +56 -0
- package/lib/ActionRuntimeContext.js.map +1 -0
- package/lib/Apply.d.ts.map +1 -1
- package/lib/Apply.js +48 -6
- package/lib/Apply.js.map +1 -1
- package/lib/Auth/AuthProvider.d.ts +10 -0
- package/lib/Auth/AuthProvider.d.ts.map +1 -1
- package/lib/Auth/AuthProvider.js +10 -0
- package/lib/Auth/AuthProvider.js.map +1 -1
- package/lib/Auth/Lock.d.ts.map +1 -1
- package/lib/Auth/Lock.js +5 -2
- package/lib/Auth/Lock.js.map +1 -1
- package/lib/Axiom/AuthProvider.d.ts.map +1 -1
- package/lib/Axiom/AuthProvider.js +1 -1
- package/lib/Axiom/AuthProvider.js.map +1 -1
- package/lib/Bundle/PurePlugin.d.ts.map +1 -1
- package/lib/Bundle/PurePlugin.js +26 -1
- package/lib/Bundle/PurePlugin.js.map +1 -1
- package/lib/Bundle/Vite.d.ts +3 -1
- package/lib/Bundle/Vite.d.ts.map +1 -1
- package/lib/Bundle/Vite.js +38 -13
- package/lib/Bundle/Vite.js.map +1 -1
- package/lib/Cli/LoggingCli.d.ts.map +1 -1
- package/lib/Cli/LoggingCli.js +7 -4
- package/lib/Cli/LoggingCli.js.map +1 -1
- package/lib/Cli/commands/_shared.d.ts +74 -5
- package/lib/Cli/commands/_shared.d.ts.map +1 -1
- package/lib/Cli/commands/_shared.js +84 -2
- package/lib/Cli/commands/_shared.js.map +1 -1
- package/lib/Cli/commands/login.d.ts +7 -3
- package/lib/Cli/commands/login.d.ts.map +1 -1
- package/lib/Cli/commands/login.js +71 -24
- package/lib/Cli/commands/login.js.map +1 -1
- package/lib/Cli/commands/logs.d.ts.map +1 -1
- package/lib/Cli/commands/logs.js +1 -0
- package/lib/Cli/commands/logs.js.map +1 -1
- package/lib/Cli/commands/nuke.d.ts.map +1 -1
- package/lib/Cli/commands/nuke.js +15 -24
- package/lib/Cli/commands/nuke.js.map +1 -1
- package/lib/Cli/commands/profile.d.ts +23 -1
- package/lib/Cli/commands/profile.d.ts.map +1 -1
- package/lib/Cli/commands/profile.js +46 -22
- package/lib/Cli/commands/profile.js.map +1 -1
- package/lib/Cli/commands/tail.d.ts.map +1 -1
- package/lib/Cli/commands/tail.js +1 -0
- package/lib/Cli/commands/tail.js.map +1 -1
- package/lib/Cloudflare/AI/GatewayDynamicRouting.d.ts.map +1 -1
- package/lib/Cloudflare/AI/GatewayDynamicRouting.js +31 -2
- package/lib/Cloudflare/AI/GatewayDynamicRouting.js.map +1 -1
- package/lib/Cloudflare/AI/LanguageModel.js +21 -4
- package/lib/Cloudflare/AI/LanguageModel.js.map +1 -1
- package/lib/Cloudflare/AI/QuerySearchLocal.d.ts +37 -0
- package/lib/Cloudflare/AI/QuerySearchLocal.d.ts.map +1 -0
- package/lib/Cloudflare/AI/QuerySearchLocal.js +53 -0
- package/lib/Cloudflare/AI/QuerySearchLocal.js.map +1 -0
- package/lib/Cloudflare/AI/QuerySearchNamespaceLocal.d.ts +35 -0
- package/lib/Cloudflare/AI/QuerySearchNamespaceLocal.d.ts.map +1 -0
- package/lib/Cloudflare/AI/QuerySearchNamespaceLocal.js +47 -0
- package/lib/Cloudflare/AI/QuerySearchNamespaceLocal.js.map +1 -0
- package/lib/Cloudflare/AI/SearchHttpClient.d.ts +34 -0
- package/lib/Cloudflare/AI/SearchHttpClient.d.ts.map +1 -0
- package/lib/Cloudflare/AI/SearchHttpClient.js +262 -0
- package/lib/Cloudflare/AI/SearchHttpClient.js.map +1 -0
- package/lib/Cloudflare/AI/SearchInstance.js +4 -1
- package/lib/Cloudflare/AI/SearchInstance.js.map +1 -1
- package/lib/Cloudflare/AI/index.d.ts +2 -0
- package/lib/Cloudflare/AI/index.d.ts.map +1 -1
- package/lib/Cloudflare/AI/index.js +2 -0
- package/lib/Cloudflare/AI/index.js.map +1 -1
- package/lib/Cloudflare/Access/Application.d.ts.map +1 -1
- package/lib/Cloudflare/Access/Application.js +7 -1
- package/lib/Cloudflare/Access/Application.js.map +1 -1
- package/lib/Cloudflare/Alerting/Silence.d.ts.map +1 -1
- package/lib/Cloudflare/Alerting/Silence.js +4 -1
- package/lib/Cloudflare/Alerting/Silence.js.map +1 -1
- package/lib/Cloudflare/Alerting/Webhook.d.ts.map +1 -1
- package/lib/Cloudflare/Alerting/Webhook.js +8 -2
- package/lib/Cloudflare/Alerting/Webhook.js.map +1 -1
- package/lib/Cloudflare/Auth/AuthProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Auth/AuthProvider.js +23 -8
- package/lib/Cloudflare/Auth/AuthProvider.js.map +1 -1
- package/lib/Cloudflare/Auth/OAuthClient.d.ts.map +1 -1
- package/lib/Cloudflare/Auth/OAuthClient.js +6 -7
- package/lib/Cloudflare/Auth/OAuthClient.js.map +1 -1
- package/lib/Cloudflare/Cache/RegionalTieredCache.d.ts.map +1 -1
- package/lib/Cloudflare/Cache/RegionalTieredCache.js +7 -1
- package/lib/Cloudflare/Cache/RegionalTieredCache.js.map +1 -1
- package/lib/Cloudflare/Containers/ContainerApplication.d.ts +18 -2
- package/lib/Cloudflare/Containers/ContainerApplication.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/ContainerApplication.js +1 -0
- package/lib/Cloudflare/Containers/ContainerApplication.js.map +1 -1
- package/lib/Cloudflare/Containers/ContainerBundle.d.ts +29 -3
- package/lib/Cloudflare/Containers/ContainerBundle.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/ContainerBundle.js +84 -23
- package/lib/Cloudflare/Containers/ContainerBundle.js.map +1 -1
- package/lib/Cloudflare/Containers/ContainerPlatform.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/ContainerPlatform.js +12 -33
- package/lib/Cloudflare/Containers/ContainerPlatform.js.map +1 -1
- package/lib/Cloudflare/Containers/ContainerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/ContainerProvider.js +53 -14
- package/lib/Cloudflare/Containers/ContainerProvider.js.map +1 -1
- package/lib/Cloudflare/Containers/LocalContainerProvider.d.ts +6 -6
- package/lib/Cloudflare/Containers/LocalContainerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/LocalContainerProvider.js +69 -47
- package/lib/Cloudflare/Containers/LocalContainerProvider.js.map +1 -1
- package/lib/Cloudflare/D1/QueryDatabaseHttpClient.d.ts +24 -0
- package/lib/Cloudflare/D1/QueryDatabaseHttpClient.d.ts.map +1 -0
- package/lib/Cloudflare/D1/QueryDatabaseHttpClient.js +106 -0
- package/lib/Cloudflare/D1/QueryDatabaseHttpClient.js.map +1 -0
- package/lib/Cloudflare/D1/QueryDatabaseLocal.d.ts +38 -0
- package/lib/Cloudflare/D1/QueryDatabaseLocal.d.ts.map +1 -0
- package/lib/Cloudflare/D1/QueryDatabaseLocal.js +54 -0
- package/lib/Cloudflare/D1/QueryDatabaseLocal.js.map +1 -0
- package/lib/Cloudflare/D1/index.d.ts +1 -0
- package/lib/Cloudflare/D1/index.d.ts.map +1 -1
- package/lib/Cloudflare/D1/index.js +1 -0
- package/lib/Cloudflare/D1/index.js.map +1 -1
- package/lib/Cloudflare/DNS/DnsHttp.d.ts +16 -1
- package/lib/Cloudflare/DNS/DnsHttp.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/DnsHttp.js +6 -1
- package/lib/Cloudflare/DNS/DnsHttp.js.map +1 -1
- package/lib/Cloudflare/DNS/DnsLocal.d.ts +22 -0
- package/lib/Cloudflare/DNS/DnsLocal.d.ts.map +1 -0
- package/lib/Cloudflare/DNS/DnsLocal.js +31 -0
- package/lib/Cloudflare/DNS/DnsLocal.js.map +1 -0
- package/lib/Cloudflare/DNS/ReadDnsHttp.d.ts +3 -3
- package/lib/Cloudflare/DNS/ReadDnsHttp.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/ReadDnsHttp.js +3 -4
- package/lib/Cloudflare/DNS/ReadDnsHttp.js.map +1 -1
- package/lib/Cloudflare/DNS/ReadDnsLocal.d.ts +32 -0
- package/lib/Cloudflare/DNS/ReadDnsLocal.d.ts.map +1 -0
- package/lib/Cloudflare/DNS/ReadDnsLocal.js +35 -0
- package/lib/Cloudflare/DNS/ReadDnsLocal.js.map +1 -0
- package/lib/Cloudflare/DNS/ReadWriteDnsHttp.d.ts +3 -3
- package/lib/Cloudflare/DNS/ReadWriteDnsHttp.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/ReadWriteDnsHttp.js +4 -4
- package/lib/Cloudflare/DNS/ReadWriteDnsHttp.js.map +1 -1
- package/lib/Cloudflare/DNS/ReadWriteDnsLocal.d.ts +40 -0
- package/lib/Cloudflare/DNS/ReadWriteDnsLocal.d.ts.map +1 -0
- package/lib/Cloudflare/DNS/ReadWriteDnsLocal.js +43 -0
- package/lib/Cloudflare/DNS/ReadWriteDnsLocal.js.map +1 -0
- package/lib/Cloudflare/DNS/WriteDnsHttp.d.ts +3 -3
- package/lib/Cloudflare/DNS/WriteDnsHttp.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/WriteDnsHttp.js +3 -4
- package/lib/Cloudflare/DNS/WriteDnsHttp.js.map +1 -1
- package/lib/Cloudflare/DNS/WriteDnsLocal.d.ts +38 -0
- package/lib/Cloudflare/DNS/WriteDnsLocal.d.ts.map +1 -0
- package/lib/Cloudflare/DNS/WriteDnsLocal.js +41 -0
- package/lib/Cloudflare/DNS/WriteDnsLocal.js.map +1 -0
- package/lib/Cloudflare/DNS/index.d.ts +3 -0
- package/lib/Cloudflare/DNS/index.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/index.js +3 -0
- package/lib/Cloudflare/DNS/index.js.map +1 -1
- package/lib/Cloudflare/Diagnostics/EndpointHealthcheck.js +4 -1
- package/lib/Cloudflare/Diagnostics/EndpointHealthcheck.js.map +1 -1
- package/lib/Cloudflare/Flagship/ReadFlagsHttpClient.d.ts +27 -0
- package/lib/Cloudflare/Flagship/ReadFlagsHttpClient.d.ts.map +1 -0
- package/lib/Cloudflare/Flagship/ReadFlagsHttpClient.js +86 -0
- package/lib/Cloudflare/Flagship/ReadFlagsHttpClient.js.map +1 -0
- package/lib/Cloudflare/Flagship/ReadFlagsLocal.d.ts +41 -0
- package/lib/Cloudflare/Flagship/ReadFlagsLocal.d.ts.map +1 -0
- package/lib/Cloudflare/Flagship/ReadFlagsLocal.js +57 -0
- package/lib/Cloudflare/Flagship/ReadFlagsLocal.js.map +1 -0
- package/lib/Cloudflare/Flagship/index.d.ts +1 -0
- package/lib/Cloudflare/Flagship/index.d.ts.map +1 -1
- package/lib/Cloudflare/Flagship/index.js +1 -0
- package/lib/Cloudflare/Flagship/index.js.map +1 -1
- package/lib/Cloudflare/Images/Variant.d.ts.map +1 -1
- package/lib/Cloudflare/Images/Variant.js +4 -1
- package/lib/Cloudflare/Images/Variant.js.map +1 -1
- package/lib/Cloudflare/KV/NamespaceHttp.d.ts +16 -1
- package/lib/Cloudflare/KV/NamespaceHttp.d.ts.map +1 -1
- package/lib/Cloudflare/KV/NamespaceHttp.js +8 -2
- package/lib/Cloudflare/KV/NamespaceHttp.js.map +1 -1
- package/lib/Cloudflare/KV/NamespaceLocal.d.ts +22 -0
- package/lib/Cloudflare/KV/NamespaceLocal.d.ts.map +1 -0
- package/lib/Cloudflare/KV/NamespaceLocal.js +32 -0
- package/lib/Cloudflare/KV/NamespaceLocal.js.map +1 -0
- package/lib/Cloudflare/KV/ReadNamespaceHttp.d.ts +2 -2
- package/lib/Cloudflare/KV/ReadNamespaceHttp.d.ts.map +1 -1
- package/lib/Cloudflare/KV/ReadNamespaceHttp.js +5 -6
- package/lib/Cloudflare/KV/ReadNamespaceHttp.js.map +1 -1
- package/lib/Cloudflare/KV/ReadNamespaceLocal.d.ts +27 -0
- package/lib/Cloudflare/KV/ReadNamespaceLocal.d.ts.map +1 -0
- package/lib/Cloudflare/KV/ReadNamespaceLocal.js +30 -0
- package/lib/Cloudflare/KV/ReadNamespaceLocal.js.map +1 -0
- package/lib/Cloudflare/KV/ReadWriteNamespaceHttp.d.ts +3 -3
- package/lib/Cloudflare/KV/ReadWriteNamespaceHttp.d.ts.map +1 -1
- package/lib/Cloudflare/KV/ReadWriteNamespaceHttp.js +6 -6
- package/lib/Cloudflare/KV/ReadWriteNamespaceHttp.js.map +1 -1
- package/lib/Cloudflare/KV/ReadWriteNamespaceLocal.d.ts +34 -0
- package/lib/Cloudflare/KV/ReadWriteNamespaceLocal.d.ts.map +1 -0
- package/lib/Cloudflare/KV/ReadWriteNamespaceLocal.js +37 -0
- package/lib/Cloudflare/KV/ReadWriteNamespaceLocal.js.map +1 -0
- package/lib/Cloudflare/KV/WriteNamespaceHttp.d.ts +2 -2
- package/lib/Cloudflare/KV/WriteNamespaceHttp.d.ts.map +1 -1
- package/lib/Cloudflare/KV/WriteNamespaceHttp.js +5 -6
- package/lib/Cloudflare/KV/WriteNamespaceHttp.js.map +1 -1
- package/lib/Cloudflare/KV/WriteNamespaceLocal.d.ts +27 -0
- package/lib/Cloudflare/KV/WriteNamespaceLocal.d.ts.map +1 -0
- package/lib/Cloudflare/KV/WriteNamespaceLocal.js +30 -0
- package/lib/Cloudflare/KV/WriteNamespaceLocal.js.map +1 -0
- package/lib/Cloudflare/KV/index.d.ts +3 -0
- package/lib/Cloudflare/KV/index.d.ts.map +1 -1
- package/lib/Cloudflare/KV/index.js +3 -0
- package/lib/Cloudflare/KV/index.js.map +1 -1
- package/lib/Cloudflare/LoadBalancer/Monitor.d.ts.map +1 -1
- package/lib/Cloudflare/LoadBalancer/Monitor.js +4 -1
- package/lib/Cloudflare/LoadBalancer/Monitor.js.map +1 -1
- package/lib/Cloudflare/LoadBalancer/MonitorGroup.d.ts.map +1 -1
- package/lib/Cloudflare/LoadBalancer/MonitorGroup.js +4 -1
- package/lib/Cloudflare/LoadBalancer/MonitorGroup.js.map +1 -1
- package/lib/Cloudflare/LoadBalancer/Pool.d.ts.map +1 -1
- package/lib/Cloudflare/LoadBalancer/Pool.js +4 -1
- package/lib/Cloudflare/LoadBalancer/Pool.js.map +1 -1
- package/lib/Cloudflare/LocalRuntime.d.ts +14 -0
- package/lib/Cloudflare/LocalRuntime.d.ts.map +1 -1
- package/lib/Cloudflare/LocalRuntime.js +1 -0
- package/lib/Cloudflare/LocalRuntime.js.map +1 -1
- package/lib/Cloudflare/MagicNetworkMonitoring/Rule.d.ts.map +1 -1
- package/lib/Cloudflare/MagicNetworkMonitoring/Rule.js +4 -1
- package/lib/Cloudflare/MagicNetworkMonitoring/Rule.js.map +1 -1
- package/lib/Cloudflare/Pipelines/Pipeline.d.ts.map +1 -1
- package/lib/Cloudflare/Pipelines/Pipeline.js +8 -2
- package/lib/Cloudflare/Pipelines/Pipeline.js.map +1 -1
- package/lib/Cloudflare/Pipelines/Sink.d.ts.map +1 -1
- package/lib/Cloudflare/Pipelines/Sink.js +8 -2
- package/lib/Cloudflare/Pipelines/Sink.js.map +1 -1
- package/lib/Cloudflare/Pipelines/Stream.d.ts.map +1 -1
- package/lib/Cloudflare/Pipelines/Stream.js +4 -1
- package/lib/Cloudflare/Pipelines/Stream.js.map +1 -1
- package/lib/Cloudflare/Providers.js +14 -11
- package/lib/Cloudflare/Providers.js.map +1 -1
- package/lib/Cloudflare/Queues/Consumer.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/Consumer.js +30 -3
- package/lib/Cloudflare/Queues/Consumer.js.map +1 -1
- package/lib/Cloudflare/Queues/Queue.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/Queue.js +4 -1
- package/lib/Cloudflare/Queues/Queue.js.map +1 -1
- package/lib/Cloudflare/Queues/QueueHttp.d.ts +20 -1
- package/lib/Cloudflare/Queues/QueueHttp.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/QueueHttp.js +2 -2
- package/lib/Cloudflare/Queues/QueueHttp.js.map +1 -1
- package/lib/Cloudflare/Queues/WriteQueueHttp.d.ts +9 -3
- package/lib/Cloudflare/Queues/WriteQueueHttp.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/WriteQueueHttp.js +11 -6
- package/lib/Cloudflare/Queues/WriteQueueHttp.js.map +1 -1
- package/lib/Cloudflare/Queues/WriteQueueLocal.d.ts +36 -0
- package/lib/Cloudflare/Queues/WriteQueueLocal.d.ts.map +1 -0
- package/lib/Cloudflare/Queues/WriteQueueLocal.js +51 -0
- package/lib/Cloudflare/Queues/WriteQueueLocal.js.map +1 -0
- package/lib/Cloudflare/Queues/index.d.ts +1 -0
- package/lib/Cloudflare/Queues/index.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/index.js +1 -0
- package/lib/Cloudflare/Queues/index.js.map +1 -1
- package/lib/Cloudflare/R2/Bucket.js +12 -3
- package/lib/Cloudflare/R2/Bucket.js.map +1 -1
- package/lib/Cloudflare/R2/BucketEventNotification.js +4 -1
- package/lib/Cloudflare/R2/BucketEventNotification.js.map +1 -1
- package/lib/Cloudflare/R2/BucketHttp.d.ts +15 -1
- package/lib/Cloudflare/R2/BucketHttp.d.ts.map +1 -1
- package/lib/Cloudflare/R2/BucketHttp.js +3 -3
- package/lib/Cloudflare/R2/BucketHttp.js.map +1 -1
- package/lib/Cloudflare/R2/BucketLocal.d.ts +21 -0
- package/lib/Cloudflare/R2/BucketLocal.d.ts.map +1 -0
- package/lib/Cloudflare/R2/BucketLocal.js +32 -0
- package/lib/Cloudflare/R2/BucketLocal.js.map +1 -0
- package/lib/Cloudflare/R2/DataCatalog.js +4 -1
- package/lib/Cloudflare/R2/DataCatalog.js.map +1 -1
- package/lib/Cloudflare/R2/ReadBucketHttp.d.ts +2 -2
- package/lib/Cloudflare/R2/ReadBucketHttp.d.ts.map +1 -1
- package/lib/Cloudflare/R2/ReadBucketHttp.js +4 -4
- package/lib/Cloudflare/R2/ReadBucketHttp.js.map +1 -1
- package/lib/Cloudflare/R2/ReadBucketLocal.d.ts +27 -0
- package/lib/Cloudflare/R2/ReadBucketLocal.d.ts.map +1 -0
- package/lib/Cloudflare/R2/ReadBucketLocal.js +30 -0
- package/lib/Cloudflare/R2/ReadBucketLocal.js.map +1 -0
- package/lib/Cloudflare/R2/ReadWriteBucketHttp.d.ts +2 -2
- package/lib/Cloudflare/R2/ReadWriteBucketHttp.d.ts.map +1 -1
- package/lib/Cloudflare/R2/ReadWriteBucketHttp.js +5 -4
- package/lib/Cloudflare/R2/ReadWriteBucketHttp.js.map +1 -1
- package/lib/Cloudflare/R2/ReadWriteBucketLocal.d.ts +30 -0
- package/lib/Cloudflare/R2/ReadWriteBucketLocal.d.ts.map +1 -0
- package/lib/Cloudflare/R2/ReadWriteBucketLocal.js +33 -0
- package/lib/Cloudflare/R2/ReadWriteBucketLocal.js.map +1 -0
- package/lib/Cloudflare/R2/WriteBucketHttp.d.ts +2 -2
- package/lib/Cloudflare/R2/WriteBucketHttp.d.ts.map +1 -1
- package/lib/Cloudflare/R2/WriteBucketHttp.js +4 -4
- package/lib/Cloudflare/R2/WriteBucketHttp.js.map +1 -1
- package/lib/Cloudflare/R2/WriteBucketLocal.d.ts +27 -0
- package/lib/Cloudflare/R2/WriteBucketLocal.d.ts.map +1 -0
- package/lib/Cloudflare/R2/WriteBucketLocal.js +30 -0
- package/lib/Cloudflare/R2/WriteBucketLocal.js.map +1 -0
- package/lib/Cloudflare/R2/index.d.ts +3 -0
- package/lib/Cloudflare/R2/index.d.ts.map +1 -1
- package/lib/Cloudflare/R2/index.js +3 -0
- package/lib/Cloudflare/R2/index.js.map +1 -1
- package/lib/Cloudflare/Rum/Rule.d.ts.map +1 -1
- package/lib/Cloudflare/Rum/Rule.js +4 -1
- package/lib/Cloudflare/Rum/Rule.js.map +1 -1
- package/lib/Cloudflare/Snippets/Snippet.d.ts.map +1 -1
- package/lib/Cloudflare/Snippets/Snippet.js +4 -1
- package/lib/Cloudflare/Snippets/Snippet.js.map +1 -1
- package/lib/Cloudflare/StateStore/Api.d.ts +2 -0
- package/lib/Cloudflare/StateStore/CredentialsFile.d.ts +42 -0
- package/lib/Cloudflare/StateStore/CredentialsFile.d.ts.map +1 -0
- package/lib/Cloudflare/StateStore/CredentialsFile.js +23 -0
- package/lib/Cloudflare/StateStore/CredentialsFile.js.map +1 -0
- package/lib/Cloudflare/StateStore/State.d.ts +2 -2
- package/lib/Cloudflare/StateStore/State.d.ts.map +1 -1
- package/lib/Cloudflare/StateStore/State.js +46 -9
- package/lib/Cloudflare/StateStore/State.js.map +1 -1
- package/lib/Cloudflare/Tags/ZoneResourceTags.d.ts.map +1 -1
- package/lib/Cloudflare/Tags/ZoneResourceTags.js +4 -1
- package/lib/Cloudflare/Tags/ZoneResourceTags.js.map +1 -1
- package/lib/Cloudflare/Tunnel/ReadTunnel.d.ts +3 -3
- package/lib/Cloudflare/Tunnel/ReadTunnel.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/ReadTunnel.js +7 -8
- package/lib/Cloudflare/Tunnel/ReadTunnel.js.map +1 -1
- package/lib/Cloudflare/Tunnel/ReadTunnelLocal.d.ts +29 -0
- package/lib/Cloudflare/Tunnel/ReadTunnelLocal.d.ts.map +1 -0
- package/lib/Cloudflare/Tunnel/ReadTunnelLocal.js +30 -0
- package/lib/Cloudflare/Tunnel/ReadTunnelLocal.js.map +1 -0
- package/lib/Cloudflare/Tunnel/ReadWriteTunnel.d.ts +3 -3
- package/lib/Cloudflare/Tunnel/ReadWriteTunnel.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/ReadWriteTunnel.js +4 -4
- package/lib/Cloudflare/Tunnel/ReadWriteTunnel.js.map +1 -1
- package/lib/Cloudflare/Tunnel/ReadWriteTunnelLocal.d.ts +35 -0
- package/lib/Cloudflare/Tunnel/ReadWriteTunnelLocal.d.ts.map +1 -0
- package/lib/Cloudflare/Tunnel/ReadWriteTunnelLocal.js +36 -0
- package/lib/Cloudflare/Tunnel/ReadWriteTunnelLocal.js.map +1 -0
- package/lib/Cloudflare/Tunnel/TunnelBinding.d.ts +17 -1
- package/lib/Cloudflare/Tunnel/TunnelBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelBinding.js +7 -1
- package/lib/Cloudflare/Tunnel/TunnelBinding.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelLocalBinding.d.ts +19 -0
- package/lib/Cloudflare/Tunnel/TunnelLocalBinding.d.ts.map +1 -0
- package/lib/Cloudflare/Tunnel/TunnelLocalBinding.js +29 -0
- package/lib/Cloudflare/Tunnel/TunnelLocalBinding.js.map +1 -0
- package/lib/Cloudflare/Tunnel/WarpConnector.d.ts +3 -3
- package/lib/Cloudflare/Tunnel/WarpConnector.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/WarpConnector.js +7 -4
- package/lib/Cloudflare/Tunnel/WarpConnector.js.map +1 -1
- package/lib/Cloudflare/Tunnel/WriteTunnel.d.ts +3 -3
- package/lib/Cloudflare/Tunnel/WriteTunnel.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/WriteTunnel.js +7 -8
- package/lib/Cloudflare/Tunnel/WriteTunnel.js.map +1 -1
- package/lib/Cloudflare/Tunnel/WriteTunnelLocal.d.ts +29 -0
- package/lib/Cloudflare/Tunnel/WriteTunnelLocal.d.ts.map +1 -0
- package/lib/Cloudflare/Tunnel/WriteTunnelLocal.js +30 -0
- package/lib/Cloudflare/Tunnel/WriteTunnelLocal.js.map +1 -0
- package/lib/Cloudflare/Tunnel/index.d.ts +3 -0
- package/lib/Cloudflare/Tunnel/index.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/index.js +3 -0
- package/lib/Cloudflare/Tunnel/index.js.map +1 -1
- package/lib/Cloudflare/UrlNormalization/UrlNormalization.d.ts.map +1 -1
- package/lib/Cloudflare/UrlNormalization/UrlNormalization.js +7 -1
- package/lib/Cloudflare/UrlNormalization/UrlNormalization.js.map +1 -1
- package/lib/Cloudflare/Vectorize/SearchIndexHttpClient.d.ts +30 -0
- package/lib/Cloudflare/Vectorize/SearchIndexHttpClient.d.ts.map +1 -0
- package/lib/Cloudflare/Vectorize/SearchIndexHttpClient.js +100 -0
- package/lib/Cloudflare/Vectorize/SearchIndexHttpClient.js.map +1 -0
- package/lib/Cloudflare/Vectorize/SearchIndexLocal.d.ts +42 -0
- package/lib/Cloudflare/Vectorize/SearchIndexLocal.d.ts.map +1 -0
- package/lib/Cloudflare/Vectorize/SearchIndexLocal.js +58 -0
- package/lib/Cloudflare/Vectorize/SearchIndexLocal.js.map +1 -0
- package/lib/Cloudflare/Vectorize/index.d.ts +1 -0
- package/lib/Cloudflare/Vectorize/index.d.ts.map +1 -1
- package/lib/Cloudflare/Vectorize/index.js +1 -0
- package/lib/Cloudflare/Vectorize/index.js.map +1 -1
- package/lib/Cloudflare/WaitingRoom/Settings.d.ts.map +1 -1
- package/lib/Cloudflare/WaitingRoom/Settings.js +7 -1
- package/lib/Cloudflare/WaitingRoom/Settings.js.map +1 -1
- package/lib/Cloudflare/Website/Vite.d.ts +19 -0
- package/lib/Cloudflare/Website/Vite.d.ts.map +1 -1
- package/lib/Cloudflare/Website/Vite.js +20 -0
- package/lib/Cloudflare/Website/Vite.js.map +1 -1
- package/lib/Cloudflare/Workers/BrowserHttpClient.d.ts +32 -0
- package/lib/Cloudflare/Workers/BrowserHttpClient.d.ts.map +1 -0
- package/lib/Cloudflare/Workers/BrowserHttpClient.js +100 -0
- package/lib/Cloudflare/Workers/BrowserHttpClient.js.map +1 -0
- package/lib/Cloudflare/Workers/BrowserLocal.d.ts +37 -0
- package/lib/Cloudflare/Workers/BrowserLocal.d.ts.map +1 -0
- package/lib/Cloudflare/Workers/BrowserLocal.js +53 -0
- package/lib/Cloudflare/Workers/BrowserLocal.js.map +1 -0
- package/lib/Cloudflare/Workers/Compatibility.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Compatibility.js +43 -7
- package/lib/Cloudflare/Workers/Compatibility.js.map +1 -1
- package/lib/Cloudflare/Workers/ConfigProvider.d.ts +8 -0
- package/lib/Cloudflare/Workers/ConfigProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/ConfigProvider.js +10 -1
- package/lib/Cloudflare/Workers/ConfigProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/CronEventSource.d.ts +3 -2
- package/lib/Cloudflare/Workers/CronEventSource.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/CronEventSource.js.map +1 -1
- package/lib/Cloudflare/Workers/DurableObject.d.ts +137 -3
- package/lib/Cloudflare/Workers/DurableObject.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/DurableObject.js +141 -6
- package/lib/Cloudflare/Workers/DurableObject.js.map +1 -1
- package/lib/Cloudflare/Workers/DurableObjectBridge.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/DurableObjectBridge.js +86 -82
- package/lib/Cloudflare/Workers/DurableObjectBridge.js.map +1 -1
- package/lib/Cloudflare/Workers/HttpServer.d.ts +1 -4
- package/lib/Cloudflare/Workers/HttpServer.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/HttpServer.js +1 -3
- package/lib/Cloudflare/Workers/HttpServer.js.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts +2 -185
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js +74 -11
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/ObservabilityDestination.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/ObservabilityDestination.js +4 -1
- package/lib/Cloudflare/Workers/ObservabilityDestination.js.map +1 -1
- package/lib/Cloudflare/Workers/Vite.d.ts +1 -1
- package/lib/Cloudflare/Workers/Vite.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Vite.js +81 -2
- package/lib/Cloudflare/Workers/Vite.js.map +1 -1
- package/lib/Cloudflare/Workers/Worker.d.ts +42 -6
- package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.js +10 -5
- package/lib/Cloudflare/Workers/Worker.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js +26 -16
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts +22 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBridge.d.ts +13 -5
- package/lib/Cloudflare/Workers/WorkerBridge.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBridge.js +133 -52
- package/lib/Cloudflare/Workers/WorkerBridge.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerProvider.d.ts +81 -0
- package/lib/Cloudflare/Workers/WorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerProvider.js +476 -68
- package/lib/Cloudflare/Workers/WorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerRuntimeContext.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerRuntimeContext.js +11 -37
- package/lib/Cloudflare/Workers/WorkerRuntimeContext.js.map +1 -1
- package/lib/Cloudflare/Workers/cloudflare_workers.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/cloudflare_workers.js +10 -3
- package/lib/Cloudflare/Workers/cloudflare_workers.js.map +1 -1
- package/lib/Cloudflare/Workers/index.d.ts +1 -0
- package/lib/Cloudflare/Workers/index.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/index.js +1 -0
- package/lib/Cloudflare/Workers/index.js.map +1 -1
- package/lib/Cloudflare/Workflows/Workflow.d.ts +10 -7
- package/lib/Cloudflare/Workflows/Workflow.d.ts.map +1 -1
- package/lib/Cloudflare/Workflows/Workflow.js +38 -13
- package/lib/Cloudflare/Workflows/Workflow.js.map +1 -1
- package/lib/Cloudflare/Workflows/WorkflowBridge.d.ts.map +1 -1
- package/lib/Cloudflare/Workflows/WorkflowBridge.js +39 -37
- package/lib/Cloudflare/Workflows/WorkflowBridge.js.map +1 -1
- package/lib/Cloudflare/Workflows/WorkflowName.d.ts +11 -0
- package/lib/Cloudflare/Workflows/WorkflowName.d.ts.map +1 -0
- package/lib/Cloudflare/Workflows/WorkflowName.js +28 -0
- package/lib/Cloudflare/Workflows/WorkflowName.js.map +1 -0
- package/lib/Cloudflare/Zone/Hold.d.ts.map +1 -1
- package/lib/Cloudflare/Zone/Hold.js +7 -1
- package/lib/Cloudflare/Zone/Hold.js.map +1 -1
- package/lib/Command/Dev.d.ts +16 -6
- package/lib/Command/Dev.d.ts.map +1 -1
- package/lib/Command/Dev.js +37 -7
- package/lib/Command/Dev.js.map +1 -1
- package/lib/Diff.d.ts +16 -0
- package/lib/Diff.d.ts.map +1 -1
- package/lib/Diff.js +33 -0
- package/lib/Diff.js.map +1 -1
- package/lib/Docker/Container.js +4 -1
- package/lib/Docker/Container.js.map +1 -1
- package/lib/Drizzle/Postgres.d.ts +14 -13
- package/lib/Drizzle/Postgres.d.ts.map +1 -1
- package/lib/Drizzle/Postgres.js +39 -19
- package/lib/Drizzle/Postgres.js.map +1 -1
- package/lib/GitHub/AuthProvider.d.ts.map +1 -1
- package/lib/GitHub/AuthProvider.js +1 -1
- package/lib/GitHub/AuthProvider.js.map +1 -1
- package/lib/GitHub/Env.d.ts +20 -0
- package/lib/GitHub/Env.d.ts.map +1 -0
- package/lib/GitHub/Env.js +27 -0
- package/lib/GitHub/Env.js.map +1 -0
- package/lib/GitHub/Secrets.d.ts +1 -1
- package/lib/GitHub/Secrets.js +1 -1
- package/lib/GitHub/Variables.d.ts +1 -1
- package/lib/GitHub/Variables.js +1 -1
- package/lib/GitHub/index.d.ts +1 -0
- package/lib/GitHub/index.d.ts.map +1 -1
- package/lib/GitHub/index.js +1 -0
- package/lib/GitHub/index.js.map +1 -1
- package/lib/Http.d.ts +9 -0
- package/lib/Http.d.ts.map +1 -1
- package/lib/Http.js +9 -0
- package/lib/Http.js.map +1 -1
- package/lib/Local/RpcProviderProxy.js +1 -1
- package/lib/Local/RpcProviderProxy.js.map +1 -1
- package/lib/Local/RpcSerialization.d.ts.map +1 -1
- package/lib/Local/RpcSerialization.js +6 -2
- package/lib/Local/RpcSerialization.js.map +1 -1
- package/lib/Local/RpcSpawner.d.ts.map +1 -1
- package/lib/Local/RpcSpawner.js +14 -8
- package/lib/Local/RpcSpawner.js.map +1 -1
- package/lib/Neon/AuthProvider.d.ts.map +1 -1
- package/lib/Neon/AuthProvider.js +2 -2
- package/lib/Neon/AuthProvider.js.map +1 -1
- package/lib/Neon/Project.js +4 -1
- package/lib/Neon/Project.js.map +1 -1
- package/lib/Plan.d.ts.map +1 -1
- package/lib/Plan.js +37 -13
- package/lib/Plan.js.map +1 -1
- package/lib/Planetscale/AuthProvider.d.ts +26 -9
- package/lib/Planetscale/AuthProvider.d.ts.map +1 -1
- package/lib/Planetscale/AuthProvider.js +142 -11
- package/lib/Planetscale/AuthProvider.js.map +1 -1
- package/lib/Planetscale/Branch.d.ts.map +1 -1
- package/lib/Planetscale/Branch.js +4 -1
- package/lib/Planetscale/Branch.js.map +1 -1
- package/lib/Planetscale/Credentials.d.ts.map +1 -1
- package/lib/Planetscale/Credentials.js +14 -6
- package/lib/Planetscale/Credentials.js.map +1 -1
- package/lib/Planetscale/Database.d.ts +2 -1
- package/lib/Planetscale/Database.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLClusterSize.d.ts +41 -3
- package/lib/Planetscale/MySQL/MySQLClusterSize.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLClusterSize.js +88 -11
- package/lib/Planetscale/MySQL/MySQLClusterSize.js.map +1 -1
- package/lib/Planetscale/MySQL/MySQLDatabase.d.ts +14 -0
- package/lib/Planetscale/MySQL/MySQLDatabase.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLDatabase.js +24 -11
- package/lib/Planetscale/MySQL/MySQLDatabase.js.map +1 -1
- package/lib/Planetscale/MySQL/MySQLMigrations.js +4 -1
- package/lib/Planetscale/MySQL/MySQLMigrations.js.map +1 -1
- package/lib/Planetscale/OAuthClient.d.ts +72 -0
- package/lib/Planetscale/OAuthClient.d.ts.map +1 -0
- package/lib/Planetscale/OAuthClient.js +227 -0
- package/lib/Planetscale/OAuthClient.js.map +1 -0
- package/lib/Planetscale/Postgres/PostgresClusterSize.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresClusterSize.js +4 -1
- package/lib/Planetscale/Postgres/PostgresClusterSize.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresMigrations.js +4 -1
- package/lib/Planetscale/Postgres/PostgresMigrations.js.map +1 -1
- package/lib/Planetscale/Util.d.ts.map +1 -1
- package/lib/Planetscale/Util.js +4 -1
- package/lib/Planetscale/Util.js.map +1 -1
- package/lib/Platform.d.ts +2 -3
- package/lib/Platform.d.ts.map +1 -1
- package/lib/Platform.js +62 -3
- package/lib/Platform.js.map +1 -1
- package/lib/Provider.d.ts +35 -0
- package/lib/Provider.d.ts.map +1 -1
- package/lib/Provider.js.map +1 -1
- package/lib/Runtime.d.ts +23 -0
- package/lib/Runtime.d.ts.map +1 -1
- package/lib/Runtime.js +83 -0
- package/lib/Runtime.js.map +1 -1
- package/lib/RuntimeContext.d.ts +46 -0
- package/lib/RuntimeContext.d.ts.map +1 -1
- package/lib/RuntimeContext.js +60 -0
- package/lib/RuntimeContext.js.map +1 -1
- package/lib/Server/Process.d.ts +1 -1
- package/lib/Server/Process.d.ts.map +1 -1
- package/lib/Server/Process.js +8 -8
- package/lib/Server/Process.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/State/HttpStateApi.d.ts +10 -10
- package/lib/State/HttpStateStore.js +5 -2
- package/lib/State/HttpStateStore.js.map +1 -1
- package/lib/Sync.d.ts.map +1 -1
- package/lib/Sync.js +3 -0
- package/lib/Sync.js.map +1 -1
- package/lib/Test/Alchemy.d.ts +74 -0
- package/lib/Test/Alchemy.d.ts.map +1 -0
- package/lib/Test/Alchemy.js +143 -0
- package/lib/Test/Alchemy.js.map +1 -0
- package/lib/Test/Http.d.ts.map +1 -1
- package/lib/Test/Http.js +8 -2
- package/lib/Test/Http.js.map +1 -1
- package/lib/Util/cached-function.d.ts +1 -1
- package/lib/Util/cached-function.d.ts.map +1 -1
- package/lib/Util/cached-function.js +2 -2
- package/lib/Util/cached-function.js.map +1 -1
- package/lib/Util/data.d.ts +6 -1
- package/lib/Util/data.d.ts.map +1 -1
- package/lib/Util/data.js.map +1 -1
- package/lib/Util/poll.js +1 -1
- package/lib/Util/poll.js.map +1 -1
- package/lib/Util/proxy-chain.js +3 -0
- package/lib/Util/proxy-chain.js.map +1 -1
- package/package.json +23 -23
- package/src/AWS/ACM/Certificate.ts +16 -12
- package/src/AWS/ApiGateway/common.ts +11 -8
- package/src/AWS/AuthProvider.ts +1 -4
- package/src/AWS/AutoScaling/AutoScalingGroup.ts +8 -6
- package/src/AWS/Bootstrap.ts +5 -6
- package/src/AWS/CloudFront/Distribution.ts +20 -16
- package/src/AWS/CloudFront/Function.ts +10 -6
- package/src/AWS/CloudFront/Invalidation.ts +4 -3
- package/src/AWS/CloudFront/KvEntries.ts +4 -3
- package/src/AWS/CloudFront/KvRoutesUpdate.ts +8 -6
- package/src/AWS/CloudFront/VpcOrigin.ts +12 -9
- package/src/AWS/CloudFront/common.ts +10 -6
- package/src/AWS/CloudWatch/AnomalyDetector.ts +4 -3
- package/src/AWS/CloudWatch/common.ts +1 -3
- package/src/AWS/DynamoDB/Table.ts +57 -47
- package/src/AWS/EC2/EIP.ts +6 -4
- package/src/AWS/EC2/EgressOnlyInternetGateway.ts +6 -4
- package/src/AWS/EC2/Instance.ts +12 -9
- package/src/AWS/EC2/InternetGateway.ts +18 -12
- package/src/AWS/EC2/NatGateway.ts +6 -10
- package/src/AWS/EC2/NetworkAcl.ts +6 -4
- package/src/AWS/EC2/NetworkAclEntry.ts +4 -3
- package/src/AWS/EC2/RouteTable.ts +12 -9
- package/src/AWS/EC2/RouteTableAssociation.ts +3 -5
- package/src/AWS/EC2/SecurityGroup.ts +10 -7
- package/src/AWS/EC2/Subnet.ts +15 -15
- package/src/AWS/EC2/Vpc.ts +12 -12
- package/src/AWS/EC2/VpcEndpoint.ts +6 -8
- package/src/AWS/EC2/hosted.ts +2 -1
- package/src/AWS/ECS/Service.ts +4 -3
- package/src/AWS/ECS/Task.ts +2 -1
- package/src/AWS/EKS/Addon.ts +8 -6
- package/src/AWS/EKS/Cluster.ts +4 -3
- package/src/AWS/ELBv2/TargetGroup.ts +4 -3
- package/src/AWS/ELBv2/TrustStore.ts +4 -3
- package/src/AWS/IAM/SAMLProvider.ts +4 -4
- package/src/AWS/IdentityCenter/AccountAssignment.ts +8 -6
- package/src/AWS/IdentityCenter/common.ts +1 -3
- package/src/AWS/KMS/Alias.ts +4 -3
- package/src/AWS/KMS/Key.ts +4 -3
- package/src/AWS/Kinesis/Stream.ts +2 -6
- package/src/AWS/Kinesis/StreamConsumer.ts +7 -12
- package/src/AWS/Lambda/Alias.ts +4 -3
- package/src/AWS/Lambda/EventInvokeConfig.ts +2 -6
- package/src/AWS/Lambda/EventSourceMapping.ts +10 -8
- package/src/AWS/Lambda/Function.ts +123 -77
- package/src/AWS/Lambda/MicrovmProvider.ts +18 -16
- package/src/AWS/Lambda/MicrovmRuntimeContext.ts +11 -38
- package/src/AWS/Lambda/NetworkConnector.ts +19 -15
- package/src/AWS/Lambda/RuntimeExtension.ts +46 -0
- package/src/AWS/Organizations/Account.ts +5 -6
- package/src/AWS/Organizations/common.ts +1 -3
- package/src/AWS/Providers.ts +22 -20
- package/src/AWS/RDS/DBCluster.ts +8 -6
- package/src/AWS/RDS/DBInstance.ts +8 -6
- package/src/AWS/RDS/DBProxy.ts +4 -3
- package/src/AWS/RDS/DBProxyEndpoint.ts +4 -3
- package/src/AWS/Route53/HealthCheck.ts +8 -6
- package/src/AWS/Route53/HostedZone.ts +8 -6
- package/src/AWS/Route53/Record.ts +4 -3
- package/src/AWS/S3/Bucket.ts +5 -4
- package/src/AWS/SQS/Queue.ts +26 -20
- package/src/AWS/StateStore/State.ts +5 -4
- package/src/AWS/Website/AssetDeployment.ts +10 -6
- package/src/Action.ts +39 -6
- package/src/ActionRuntimeContext.ts +68 -0
- package/src/Apply.ts +54 -8
- package/src/Auth/AuthProvider.ts +11 -0
- package/src/Auth/Lock.ts +5 -2
- package/src/Axiom/AuthProvider.ts +0 -3
- package/src/Bundle/PurePlugin.ts +34 -1
- package/src/Bundle/Vite.ts +67 -16
- package/src/Cli/LoggingCli.ts +7 -4
- package/src/Cli/commands/_shared.ts +171 -5
- package/src/Cli/commands/login.ts +91 -46
- package/src/Cli/commands/logs.ts +1 -0
- package/src/Cli/commands/nuke.ts +16 -44
- package/src/Cli/commands/profile.ts +67 -39
- package/src/Cli/commands/tail.ts +1 -0
- package/src/Cloudflare/AI/GatewayDynamicRouting.ts +38 -6
- package/src/Cloudflare/AI/LanguageModel.ts +25 -5
- package/src/Cloudflare/AI/QuerySearchLocal.ts +66 -0
- package/src/Cloudflare/AI/QuerySearchNamespaceLocal.ts +60 -0
- package/src/Cloudflare/AI/SearchHttpClient.ts +423 -0
- package/src/Cloudflare/AI/SearchInstance.ts +4 -3
- package/src/Cloudflare/AI/index.ts +2 -0
- package/src/Cloudflare/Access/Application.ts +7 -4
- package/src/Cloudflare/Alerting/Silence.ts +4 -3
- package/src/Cloudflare/Alerting/Webhook.ts +8 -6
- package/src/Cloudflare/Auth/AuthProvider.ts +55 -39
- package/src/Cloudflare/Auth/OAuthClient.ts +6 -7
- package/src/Cloudflare/Cache/RegionalTieredCache.ts +7 -4
- package/src/Cloudflare/Containers/ContainerApplication.ts +22 -2
- package/src/Cloudflare/Containers/ContainerBundle.ts +110 -34
- package/src/Cloudflare/Containers/ContainerPlatform.ts +14 -52
- package/src/Cloudflare/Containers/ContainerProvider.ts +73 -19
- package/src/Cloudflare/Containers/LocalContainerProvider.ts +78 -72
- package/src/Cloudflare/D1/QueryDatabaseHttpClient.ts +176 -0
- package/src/Cloudflare/D1/QueryDatabaseLocal.ts +66 -0
- package/src/Cloudflare/D1/index.ts +1 -0
- package/src/Cloudflare/DNS/DnsHttp.ts +24 -2
- package/src/Cloudflare/DNS/DnsLocal.ts +41 -0
- package/src/Cloudflare/DNS/ReadDnsHttp.ts +4 -5
- package/src/Cloudflare/DNS/ReadDnsLocal.ts +38 -0
- package/src/Cloudflare/DNS/ReadWriteDnsHttp.ts +5 -5
- package/src/Cloudflare/DNS/ReadWriteDnsLocal.ts +46 -0
- package/src/Cloudflare/DNS/WriteDnsHttp.ts +4 -5
- package/src/Cloudflare/DNS/WriteDnsLocal.ts +44 -0
- package/src/Cloudflare/DNS/index.ts +3 -0
- package/src/Cloudflare/Diagnostics/EndpointHealthcheck.ts +4 -3
- package/src/Cloudflare/Flagship/ReadFlagsHttpClient.ts +183 -0
- package/src/Cloudflare/Flagship/ReadFlagsLocal.ts +69 -0
- package/src/Cloudflare/Flagship/index.ts +1 -0
- package/src/Cloudflare/Images/Variant.ts +4 -3
- package/src/Cloudflare/KV/NamespaceHttp.ts +25 -2
- package/src/Cloudflare/KV/NamespaceLocal.ts +42 -0
- package/src/Cloudflare/KV/ReadNamespaceHttp.ts +7 -6
- package/src/Cloudflare/KV/ReadNamespaceLocal.ts +35 -0
- package/src/Cloudflare/KV/ReadWriteNamespaceHttp.ts +11 -6
- package/src/Cloudflare/KV/ReadWriteNamespaceLocal.ts +42 -0
- package/src/Cloudflare/KV/WriteNamespaceHttp.ts +7 -6
- package/src/Cloudflare/KV/WriteNamespaceLocal.ts +35 -0
- package/src/Cloudflare/KV/index.ts +3 -0
- package/src/Cloudflare/LoadBalancer/Monitor.ts +4 -3
- package/src/Cloudflare/LoadBalancer/MonitorGroup.ts +4 -3
- package/src/Cloudflare/LoadBalancer/Pool.ts +4 -3
- package/src/Cloudflare/LocalRuntime.ts +17 -0
- package/src/Cloudflare/MagicNetworkMonitoring/Rule.ts +4 -3
- package/src/Cloudflare/Pipelines/Pipeline.ts +8 -6
- package/src/Cloudflare/Pipelines/Sink.ts +8 -6
- package/src/Cloudflare/Pipelines/Stream.ts +4 -3
- package/src/Cloudflare/Providers.ts +21 -19
- package/src/Cloudflare/Queues/Consumer.ts +45 -9
- package/src/Cloudflare/Queues/Queue.ts +4 -3
- package/src/Cloudflare/Queues/QueueHttp.ts +24 -2
- package/src/Cloudflare/Queues/WriteQueueHttp.ts +16 -7
- package/src/Cloudflare/Queues/WriteQueueLocal.ts +64 -0
- package/src/Cloudflare/Queues/index.ts +1 -0
- package/src/Cloudflare/R2/Bucket.ts +12 -9
- package/src/Cloudflare/R2/BucketEventNotification.ts +4 -3
- package/src/Cloudflare/R2/BucketHttp.ts +20 -3
- package/src/Cloudflare/R2/BucketLocal.ts +47 -0
- package/src/Cloudflare/R2/DataCatalog.ts +4 -3
- package/src/Cloudflare/R2/ReadBucketHttp.ts +10 -5
- package/src/Cloudflare/R2/ReadBucketLocal.ts +33 -0
- package/src/Cloudflare/R2/ReadWriteBucketHttp.ts +11 -5
- package/src/Cloudflare/R2/ReadWriteBucketLocal.ts +36 -0
- package/src/Cloudflare/R2/WriteBucketHttp.ts +10 -5
- package/src/Cloudflare/R2/WriteBucketLocal.ts +33 -0
- package/src/Cloudflare/R2/index.ts +3 -0
- package/src/Cloudflare/Rum/Rule.ts +4 -3
- package/src/Cloudflare/Snippets/Snippet.ts +4 -3
- package/src/Cloudflare/StateStore/CredentialsFile.ts +48 -0
- package/src/Cloudflare/StateStore/State.ts +61 -25
- package/src/Cloudflare/Tags/ZoneResourceTags.ts +4 -3
- package/src/Cloudflare/Tunnel/ReadTunnel.ts +8 -9
- package/src/Cloudflare/Tunnel/ReadTunnelLocal.ts +33 -0
- package/src/Cloudflare/Tunnel/ReadWriteTunnel.ts +5 -5
- package/src/Cloudflare/Tunnel/ReadWriteTunnelLocal.ts +39 -0
- package/src/Cloudflare/Tunnel/TunnelBinding.ts +26 -2
- package/src/Cloudflare/Tunnel/TunnelLocalBinding.ts +38 -0
- package/src/Cloudflare/Tunnel/WarpConnector.ts +8 -5
- package/src/Cloudflare/Tunnel/WriteTunnel.ts +8 -9
- package/src/Cloudflare/Tunnel/WriteTunnelLocal.ts +33 -0
- package/src/Cloudflare/Tunnel/index.ts +3 -0
- package/src/Cloudflare/UrlNormalization/UrlNormalization.ts +7 -4
- package/src/Cloudflare/Vectorize/SearchIndexHttpClient.ts +183 -0
- package/src/Cloudflare/Vectorize/SearchIndexLocal.ts +70 -0
- package/src/Cloudflare/Vectorize/index.ts +1 -0
- package/src/Cloudflare/WaitingRoom/Settings.ts +7 -4
- package/src/Cloudflare/Website/Vite.ts +20 -0
- package/src/Cloudflare/Workers/BrowserHttpClient.ts +201 -0
- package/src/Cloudflare/Workers/BrowserLocal.ts +65 -0
- package/src/Cloudflare/Workers/Compatibility.ts +50 -7
- package/src/Cloudflare/Workers/ConfigProvider.ts +15 -1
- package/src/Cloudflare/Workers/CronEventSource.ts +3 -2
- package/src/Cloudflare/Workers/DurableObject.ts +227 -6
- package/src/Cloudflare/Workers/DurableObjectBridge.ts +38 -33
- package/src/Cloudflare/Workers/HttpServer.ts +1 -4
- package/src/Cloudflare/Workers/LocalWorkerProvider.ts +132 -26
- package/src/Cloudflare/Workers/ObservabilityDestination.ts +4 -3
- package/src/Cloudflare/Workers/Vite.ts +93 -11
- package/src/Cloudflare/Workers/Worker.ts +46 -6
- package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +33 -21
- package/src/Cloudflare/Workers/WorkerBinding.ts +20 -1
- package/src/Cloudflare/Workers/WorkerBridge.ts +239 -108
- package/src/Cloudflare/Workers/WorkerProvider.ts +689 -135
- package/src/Cloudflare/Workers/WorkerRuntimeContext.ts +14 -45
- package/src/Cloudflare/Workers/cloudflare_workers.ts +20 -12
- package/src/Cloudflare/Workers/index.ts +1 -0
- package/src/Cloudflare/Workflows/Workflow.ts +54 -20
- package/src/Cloudflare/Workflows/WorkflowBridge.ts +19 -23
- package/src/Cloudflare/Workflows/WorkflowName.ts +41 -0
- package/src/Cloudflare/Zone/Hold.ts +7 -4
- package/src/Command/Dev.ts +42 -10
- package/src/Diff.ts +33 -0
- package/src/Docker/Container.ts +4 -1
- package/src/Drizzle/Postgres.ts +51 -23
- package/src/GitHub/AuthProvider.ts +0 -3
- package/src/GitHub/Env.ts +57 -0
- package/src/GitHub/Secrets.ts +1 -1
- package/src/GitHub/Variables.ts +1 -1
- package/src/GitHub/index.ts +1 -0
- package/src/Http.ts +11 -0
- package/src/Local/RpcProviderProxy.ts +1 -1
- package/src/Local/RpcSerialization.ts +6 -2
- package/src/Local/RpcSpawner.ts +21 -8
- package/src/Neon/AuthProvider.ts +1 -4
- package/src/Neon/Project.ts +2 -2
- package/src/Plan.ts +43 -13
- package/src/Planetscale/AuthProvider.ts +267 -27
- package/src/Planetscale/Branch.ts +4 -3
- package/src/Planetscale/Credentials.ts +18 -6
- package/src/Planetscale/Database.ts +2 -1
- package/src/Planetscale/MySQL/MySQLClusterSize.ts +120 -21
- package/src/Planetscale/MySQL/MySQLDatabase.ts +84 -44
- package/src/Planetscale/MySQL/MySQLMigrations.ts +4 -3
- package/src/Planetscale/OAuthClient.ts +307 -0
- package/src/Planetscale/Postgres/PostgresClusterSize.ts +4 -3
- package/src/Planetscale/Postgres/PostgresMigrations.ts +4 -3
- package/src/Planetscale/Util.ts +4 -3
- package/src/Platform.ts +83 -7
- package/src/Provider.ts +35 -0
- package/src/Runtime.ts +92 -0
- package/src/RuntimeContext.ts +79 -0
- package/src/Server/Process.ts +11 -18
- package/src/Stack.ts +1 -1
- package/src/State/HttpStateStore.ts +5 -5
- package/src/Sync.ts +3 -0
- package/src/Test/Alchemy.ts +282 -0
- package/src/Test/Http.ts +8 -6
- package/src/Util/cached-function.ts +5 -5
- package/src/Util/data.ts +14 -5
- package/src/Util/poll.ts +1 -1
- package/src/Util/proxy-chain.ts +3 -0
- package/lib/ExecutionContext.d.ts +0 -18
- package/lib/ExecutionContext.d.ts.map +0 -1
- package/lib/ExecutionContext.js +0 -10
- package/lib/ExecutionContext.js.map +0 -1
- package/src/ExecutionContext.ts +0 -18
package/src/Action.ts
CHANGED
|
@@ -2,10 +2,12 @@ import * as Context from "effect/Context";
|
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
3
|
import * as Layer from "effect/Layer";
|
|
4
4
|
import type { Pipeable } from "effect/Pipeable";
|
|
5
|
+
import { makeCaptureContext } from "./ActionRuntimeContext.ts";
|
|
5
6
|
import { toFqn } from "./FQN.ts";
|
|
6
7
|
import type { Input } from "./Input.ts";
|
|
7
8
|
import { CurrentNamespace, type NamespaceNode } from "./Namespace.ts";
|
|
8
9
|
import * as Output from "./Output.ts";
|
|
10
|
+
import { RuntimeContext } from "./RuntimeContext.ts";
|
|
9
11
|
import { Stack } from "./Stack.ts";
|
|
10
12
|
|
|
11
13
|
/**
|
|
@@ -35,6 +37,14 @@ export interface ActionLike<
|
|
|
35
37
|
readonly Type: Type;
|
|
36
38
|
readonly LogicalId: string;
|
|
37
39
|
readonly Input: In;
|
|
40
|
+
/**
|
|
41
|
+
* Resource Outputs referenced via `yield* output` inside the init Effect,
|
|
42
|
+
* keyed by the Output's sanitized key. They become dependency edges (the
|
|
43
|
+
* Action waits for these upstreams) and are resolved against the tracker at
|
|
44
|
+
* apply time, then exposed to the body through the resolve
|
|
45
|
+
* {@link RuntimeContext}. Empty when the Action captures nothing.
|
|
46
|
+
*/
|
|
47
|
+
readonly Captures: Record<string, Output.Output>;
|
|
38
48
|
/** Resolved runner — populated by the init effect (if any). */
|
|
39
49
|
readonly Run: (input: In) => Effect.Effect<Out, any, any>;
|
|
40
50
|
/** @internal phantom */
|
|
@@ -83,9 +93,14 @@ export type ActionInit<In extends object | undefined, Out, Req> = Effect.Effect<
|
|
|
83
93
|
// const rows = yield* Sync({ table: bucket.name });
|
|
84
94
|
// // rows: Output<{ rows: number }, never>
|
|
85
95
|
//
|
|
86
|
-
// Tagged form for split contract/implementation
|
|
96
|
+
// Tagged form for split contract/implementation — declare the type with an
|
|
97
|
+
// interface, build the value with the no-arg overload, then supply the runner
|
|
98
|
+
// via `.make` (add the returned Layer to the stack's `providers`, or provide it
|
|
99
|
+
// locally with `Effect.provide`). The init passed to `.make` runs under the
|
|
100
|
+
// same capture context as the inline form, so `yield* output` accessors work:
|
|
87
101
|
//
|
|
88
|
-
//
|
|
102
|
+
// interface Sync extends Action<"Sync", { table: string }, { rows: number }> {}
|
|
103
|
+
// const Sync = Action<Sync, { table: string }, { rows: number }>()("Sync");
|
|
89
104
|
// const SyncLive = Sync.make(Effect.gen(function* () { /* ... */ }));
|
|
90
105
|
|
|
91
106
|
export function Action<
|
|
@@ -187,14 +202,23 @@ const makeActionClass = (
|
|
|
187
202
|
`alchemy/Action<${type}>`,
|
|
188
203
|
);
|
|
189
204
|
|
|
205
|
+
// Outputs referenced via `yield* output` inside the init Effect land here,
|
|
206
|
+
// recorded by the capture RuntimeContext. Shared per definition — the init
|
|
207
|
+
// runs at most once (Effect.cached), so captures are inherently
|
|
208
|
+
// per-definition, matching how the init's `Req` bubbles per definition.
|
|
209
|
+
const captures: Record<string, Output.Output> = {};
|
|
210
|
+
const captureContext = makeCaptureContext(captures);
|
|
211
|
+
|
|
190
212
|
const constructor = (...args: [any] | [string, any]) => {
|
|
191
213
|
const [id, input] =
|
|
192
214
|
args.length === 1 ? [type, args[0]] : (args as [string, any]);
|
|
193
215
|
return Effect.gen(function* () {
|
|
194
216
|
const run = resolveRunner
|
|
195
|
-
? yield* resolveRunner
|
|
217
|
+
? yield* resolveRunner.pipe(
|
|
218
|
+
Effect.provideService(RuntimeContext, captureContext),
|
|
219
|
+
)
|
|
196
220
|
: ((yield* SelfTag!) as ActionRunner<any, any, any>);
|
|
197
|
-
return yield* registerAction(type, id, input, run);
|
|
221
|
+
return yield* registerAction(type, id, input, run, captures);
|
|
198
222
|
});
|
|
199
223
|
};
|
|
200
224
|
|
|
@@ -203,12 +227,19 @@ const makeActionClass = (
|
|
|
203
227
|
extra.Self = SelfTag;
|
|
204
228
|
// `.make(initOrRun)` — accepts either a direct runner or an init Effect.
|
|
205
229
|
// For init form we use `Layer.effect` so the init's Req surfaces on the
|
|
206
|
-
// Layer
|
|
230
|
+
// Layer, and run it under the capture RuntimeContext so `yield* output`
|
|
231
|
+
// accessors are recorded just like the inline form; for runners we use
|
|
232
|
+
// `Layer.succeed` (nothing to capture).
|
|
207
233
|
extra.make = <R>(
|
|
208
234
|
initOrRun: ActionRunner<any, any, R> | ActionInit<any, any, R>,
|
|
209
235
|
) =>
|
|
210
236
|
isRunnerEffect(initOrRun)
|
|
211
|
-
? Layer.effect(
|
|
237
|
+
? Layer.effect(
|
|
238
|
+
SelfTag,
|
|
239
|
+
(initOrRun as ActionInit<any, any, R>).pipe(
|
|
240
|
+
Effect.provideService(RuntimeContext, captureContext),
|
|
241
|
+
),
|
|
242
|
+
)
|
|
212
243
|
: Layer.succeed(SelfTag, initOrRun as ActionRunner<any, any, any>);
|
|
213
244
|
}
|
|
214
245
|
return Object.assign(constructor, extra);
|
|
@@ -223,6 +254,7 @@ const registerAction = <
|
|
|
223
254
|
id: string,
|
|
224
255
|
input: any,
|
|
225
256
|
run: ActionRunner<In, Out, any>,
|
|
257
|
+
captures: Record<string, Output.Output>,
|
|
226
258
|
): Effect.Effect<Output.ToOutput<Out, never>, never, Stack> =>
|
|
227
259
|
Effect.gen(function* () {
|
|
228
260
|
const stack = yield* Stack;
|
|
@@ -255,6 +287,7 @@ const registerAction = <
|
|
|
255
287
|
FQN: fqn,
|
|
256
288
|
LogicalId: id,
|
|
257
289
|
Input: input,
|
|
290
|
+
Captures: captures,
|
|
258
291
|
Run: run,
|
|
259
292
|
Output: undefined as any,
|
|
260
293
|
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import type { Output } from "./Output.ts";
|
|
3
|
+
import { type BaseRuntimeContext, RuntimeContext } from "./RuntimeContext.ts";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Runtime context bridge that lets an {@link Action} read Resource Outputs.
|
|
7
|
+
*
|
|
8
|
+
* Actions are peculiar: their init Effect runs at plan/stack-eval time (before
|
|
9
|
+
* any resource exists) while their body runs at apply time (after upstreams are
|
|
10
|
+
* materialized). To make `yield* db.databaseId` work inside an Action we split
|
|
11
|
+
* the {@link RuntimeContext} into two cooperating halves that share nothing but
|
|
12
|
+
* a sanitized key:
|
|
13
|
+
*
|
|
14
|
+
* - {@link makeCaptureContext} is provided while the init Effect runs. Its
|
|
15
|
+
* `set(key, output)` records the referenced {@link Output} (so the engine can
|
|
16
|
+
* add a dependency edge and later resolve it) and its `get(key)` hands back a
|
|
17
|
+
* *deferred* accessor — an Effect that re-reads whatever `RuntimeContext` is
|
|
18
|
+
* ambient when it actually runs.
|
|
19
|
+
* - {@link makeResolveContext} is provided around the Action body at apply
|
|
20
|
+
* time. Its `get(key)` returns the already-resolved value for that key.
|
|
21
|
+
*
|
|
22
|
+
* Because the accessor produced at init re-reads `RuntimeContext`, yielding it
|
|
23
|
+
* inside the body resolves against the apply-time context — no shared mutable
|
|
24
|
+
* state, no infinite recursion (the resolve context's `get` is terminal).
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
const base = (id: string): Omit<BaseRuntimeContext, "get" | "set"> => ({
|
|
28
|
+
Type: "Action",
|
|
29
|
+
id,
|
|
30
|
+
env: {},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Capture context — provided while an Action's init Effect runs. Records every
|
|
35
|
+
* Output referenced via `yield* output` into `captures`, keyed by the Output's
|
|
36
|
+
* sanitized key, and returns deferred accessors.
|
|
37
|
+
*/
|
|
38
|
+
export const makeCaptureContext = (
|
|
39
|
+
captures: Record<string, Output>,
|
|
40
|
+
): BaseRuntimeContext => ({
|
|
41
|
+
...base("capture"),
|
|
42
|
+
set: (key, output) =>
|
|
43
|
+
Effect.sync(() => {
|
|
44
|
+
captures[key] = output as unknown as Output;
|
|
45
|
+
return key;
|
|
46
|
+
}),
|
|
47
|
+
// Deferred: re-read the ambient RuntimeContext at run time. At apply this is
|
|
48
|
+
// the resolve context below; its `get` returns the materialized value. The
|
|
49
|
+
// `RuntimeContext` requirement is erased at the Action boundary (`Run` is
|
|
50
|
+
// typed `Effect<Out, any, any>`) and satisfied by the resolve context, so
|
|
51
|
+
// the accessor presents as `Effect<T | undefined>`.
|
|
52
|
+
get: (<T>(key: string) =>
|
|
53
|
+
Effect.flatMap(RuntimeContext, (ctx) =>
|
|
54
|
+
ctx.get<T>(key),
|
|
55
|
+
)) as BaseRuntimeContext["get"],
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Resolve context — provided around an Action body at apply time. `resolved`
|
|
60
|
+
* maps each captured key to its value (already evaluated against the tracker).
|
|
61
|
+
*/
|
|
62
|
+
export const makeResolveContext = (
|
|
63
|
+
resolved: Record<string, unknown>,
|
|
64
|
+
): BaseRuntimeContext => ({
|
|
65
|
+
...base("resolve"),
|
|
66
|
+
set: (key) => Effect.succeed(key),
|
|
67
|
+
get: <T>(key: string) => Effect.succeed(resolved[key] as T | undefined),
|
|
68
|
+
});
|
package/src/Apply.ts
CHANGED
|
@@ -3,6 +3,9 @@ import * as Deferred from "effect/Deferred";
|
|
|
3
3
|
import * as Effect from "effect/Effect";
|
|
4
4
|
import * as Option from "effect/Option";
|
|
5
5
|
import type { Simplify } from "effect/Types";
|
|
6
|
+
import type { ActionLike } from "./Action.ts";
|
|
7
|
+
import { makeResolveContext } from "./ActionRuntimeContext.ts";
|
|
8
|
+
import { RuntimeContext } from "./RuntimeContext.ts";
|
|
6
9
|
import {
|
|
7
10
|
Artifacts,
|
|
8
11
|
ArtifactStore,
|
|
@@ -16,7 +19,7 @@ import {
|
|
|
16
19
|
Cli,
|
|
17
20
|
} from "./Cli/Cli.ts";
|
|
18
21
|
import type { ApplyStatus } from "./Cli/Event.ts";
|
|
19
|
-
import { havePropsChanged } from "./Diff.ts";
|
|
22
|
+
import { havePropsChanged, stripUnresolved } from "./Diff.ts";
|
|
20
23
|
import type { Input } from "./Input.ts";
|
|
21
24
|
import { generateInstanceId, InstanceId } from "./InstanceId.ts";
|
|
22
25
|
import * as Output from "./Output.ts";
|
|
@@ -405,7 +408,14 @@ const executeNode = (
|
|
|
405
408
|
stack: stackName,
|
|
406
409
|
stage,
|
|
407
410
|
fqn,
|
|
408
|
-
|
|
411
|
+
// Early commits (`creating`/`replacing`) persist plan props that may
|
|
412
|
+
// still hold unresolved Output exprs; strip them so state stores only
|
|
413
|
+
// plain data (see stripUnresolved in Diff.ts).
|
|
414
|
+
value: {
|
|
415
|
+
...value,
|
|
416
|
+
props: stripUnresolved(value.props),
|
|
417
|
+
namespace,
|
|
418
|
+
} as S,
|
|
409
419
|
});
|
|
410
420
|
|
|
411
421
|
const scopedSession = {
|
|
@@ -584,6 +594,7 @@ const executeNode = (
|
|
|
584
594
|
attr = yield* node.provider
|
|
585
595
|
.precreate({
|
|
586
596
|
id: logicalId,
|
|
597
|
+
fqn,
|
|
587
598
|
news: node.props,
|
|
588
599
|
session: scopedSession,
|
|
589
600
|
instanceId,
|
|
@@ -643,6 +654,7 @@ const executeNode = (
|
|
|
643
654
|
attr = yield* node.provider
|
|
644
655
|
.reconcile({
|
|
645
656
|
id: logicalId,
|
|
657
|
+
fqn,
|
|
646
658
|
news,
|
|
647
659
|
instanceId,
|
|
648
660
|
bindings: bindingOutputs,
|
|
@@ -765,6 +777,7 @@ const executeNode = (
|
|
|
765
777
|
const attr = yield* node.provider
|
|
766
778
|
.reconcile({
|
|
767
779
|
id: logicalId,
|
|
780
|
+
fqn,
|
|
768
781
|
news,
|
|
769
782
|
instanceId,
|
|
770
783
|
bindings: bindingOutputs,
|
|
@@ -887,6 +900,7 @@ const executeNode = (
|
|
|
887
900
|
yield* node.provider
|
|
888
901
|
.delete({
|
|
889
902
|
id: logicalId,
|
|
903
|
+
fqn,
|
|
890
904
|
instanceId: old.instanceId,
|
|
891
905
|
olds: old.props as never,
|
|
892
906
|
output: old.attr,
|
|
@@ -933,6 +947,7 @@ const executeNode = (
|
|
|
933
947
|
attr = yield* node.provider
|
|
934
948
|
.precreate({
|
|
935
949
|
id: logicalId,
|
|
950
|
+
fqn,
|
|
936
951
|
news: node.props,
|
|
937
952
|
session: scopedSession,
|
|
938
953
|
instanceId,
|
|
@@ -993,6 +1008,7 @@ const executeNode = (
|
|
|
993
1008
|
attr = yield* node.provider
|
|
994
1009
|
.reconcile({
|
|
995
1010
|
id: logicalId,
|
|
1011
|
+
fqn,
|
|
996
1012
|
news,
|
|
997
1013
|
instanceId,
|
|
998
1014
|
bindings: bindingOutputs,
|
|
@@ -1111,6 +1127,25 @@ const executeNode = (
|
|
|
1111
1127
|
// `--force` is set). The output value is written to `tracker[fqn].output`
|
|
1112
1128
|
// so downstream Output evaluation works identically to resource attrs.
|
|
1113
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* Run an Action body, resolving any Outputs it captured via `yield* output`
|
|
1132
|
+
* during init against the current tracker and exposing them to the body through
|
|
1133
|
+
* the resolve {@link RuntimeContext}. See {@link makeCaptureContext}.
|
|
1134
|
+
*/
|
|
1135
|
+
const runAction = Effect.fn("apply.runAction")(function* (
|
|
1136
|
+
task: ActionLike,
|
|
1137
|
+
input: any,
|
|
1138
|
+
outputs: Record<string, any>,
|
|
1139
|
+
) {
|
|
1140
|
+
const resolved: Record<string, unknown> = {};
|
|
1141
|
+
for (const [key, output] of Object.entries(task.Captures)) {
|
|
1142
|
+
resolved[key] = yield* Output.evaluate(output, outputs);
|
|
1143
|
+
}
|
|
1144
|
+
return yield* task
|
|
1145
|
+
.Run(input)
|
|
1146
|
+
.pipe(Effect.provideService(RuntimeContext, makeResolveContext(resolved)));
|
|
1147
|
+
});
|
|
1148
|
+
|
|
1114
1149
|
const executeActionNode = (
|
|
1115
1150
|
fqn: string,
|
|
1116
1151
|
node: ActionApply,
|
|
@@ -1189,9 +1224,12 @@ const executeActionNode = (
|
|
|
1189
1224
|
// until its run actually starts.
|
|
1190
1225
|
yield* report("pending");
|
|
1191
1226
|
yield* waitForDeps(
|
|
1192
|
-
|
|
1193
|
-
(
|
|
1194
|
-
|
|
1227
|
+
[
|
|
1228
|
+
...new Set([
|
|
1229
|
+
...Object.keys(Output.resolveUpstream(node.input)),
|
|
1230
|
+
...Object.keys(Output.upstreamAny(task.Captures)),
|
|
1231
|
+
]),
|
|
1232
|
+
].filter((f) => f in readyStable),
|
|
1195
1233
|
);
|
|
1196
1234
|
|
|
1197
1235
|
const outputs = getOutputs();
|
|
@@ -1210,7 +1248,7 @@ const executeActionNode = (
|
|
|
1210
1248
|
});
|
|
1211
1249
|
yield* report("running");
|
|
1212
1250
|
|
|
1213
|
-
const result = yield* task
|
|
1251
|
+
const result = yield* runAction(task, resolvedInput, outputs);
|
|
1214
1252
|
|
|
1215
1253
|
yield* commit<RanActionState>({
|
|
1216
1254
|
kind: "action",
|
|
@@ -1346,6 +1384,7 @@ const converge = Effect.fn(function* (
|
|
|
1346
1384
|
const attr = yield* node.provider
|
|
1347
1385
|
.reconcile({
|
|
1348
1386
|
id: logicalId,
|
|
1387
|
+
fqn,
|
|
1349
1388
|
news: newProps,
|
|
1350
1389
|
instanceId,
|
|
1351
1390
|
bindings: newBindings,
|
|
@@ -1433,7 +1472,7 @@ const converge = Effect.fn(function* (
|
|
|
1433
1472
|
} satisfies RunningActionState,
|
|
1434
1473
|
});
|
|
1435
1474
|
|
|
1436
|
-
const result = yield* node.def
|
|
1475
|
+
const result = yield* runAction(node.def, newInput, outputs);
|
|
1437
1476
|
|
|
1438
1477
|
yield* state.set({
|
|
1439
1478
|
stack: stackName,
|
|
@@ -1570,7 +1609,13 @@ const collectGarbage = Effect.fn(function* (
|
|
|
1570
1609
|
stack: stackName,
|
|
1571
1610
|
stage,
|
|
1572
1611
|
fqn,
|
|
1573
|
-
|
|
1612
|
+
// Same rule as the lifecycle commit above: state only stores
|
|
1613
|
+
// plain data, never unresolved Output exprs.
|
|
1614
|
+
value: {
|
|
1615
|
+
...value,
|
|
1616
|
+
props: stripUnresolved(value.props),
|
|
1617
|
+
namespace,
|
|
1618
|
+
} as S,
|
|
1574
1619
|
});
|
|
1575
1620
|
|
|
1576
1621
|
const report = (status: ApplyStatus) =>
|
|
@@ -1648,6 +1693,7 @@ const collectGarbage = Effect.fn(function* (
|
|
|
1648
1693
|
yield* provider
|
|
1649
1694
|
.delete({
|
|
1650
1695
|
id: logicalId,
|
|
1696
|
+
fqn,
|
|
1651
1697
|
instanceId,
|
|
1652
1698
|
olds: props as never,
|
|
1653
1699
|
output: attr,
|
package/src/Auth/AuthProvider.ts
CHANGED
|
@@ -5,6 +5,17 @@ import * as Schema from "effect/Schema";
|
|
|
5
5
|
import * as Semaphore from "effect/Semaphore";
|
|
6
6
|
import { withLock } from "./Lock.ts";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Canonical web host for OAuth provider-agnostic landing pages
|
|
10
|
+
* (`/auth/success`, `/auth/error`). The CLI's loopback server 302s the
|
|
11
|
+
* browser to one of these after handling the OAuth callback. Centralized
|
|
12
|
+
* here so the redirect target lives in exactly one place across all
|
|
13
|
+
* provider OAuth clients.
|
|
14
|
+
*/
|
|
15
|
+
export const AUTH_LANDING_HOST = "https://alchemy.run";
|
|
16
|
+
export const AUTH_SUCCESS_URL = `${AUTH_LANDING_HOST}/auth/success`;
|
|
17
|
+
export const AUTH_ERROR_URL = `${AUTH_LANDING_HOST}/auth/error`;
|
|
18
|
+
|
|
8
19
|
/**
|
|
9
20
|
* Methods on an {@link AuthProviderImpl} that mutate (or could trigger
|
|
10
21
|
* mutation of) on-disk credentials. The factory wraps these in a
|
package/src/Auth/Lock.ts
CHANGED
|
@@ -50,7 +50,10 @@ export const withLock = <A, E, R>(
|
|
|
50
50
|
try {
|
|
51
51
|
await fs.mkdir(lockDir, { recursive: true });
|
|
52
52
|
return await lock(lockPath, {
|
|
53
|
-
|
|
53
|
+
// A full single-process test run can build hundreds of provider
|
|
54
|
+
// layers concurrently. Each credential read briefly takes this
|
|
55
|
+
// lock, so tail waiters need enough budget to drain that queue.
|
|
56
|
+
retries: { retries: 2_400, minTimeout: 50, maxTimeout: 50 },
|
|
54
57
|
// The holder refreshes the lockfile mtime on a timer. Under heavy
|
|
55
58
|
// load (e.g. a full test run saturating every core) that timer can
|
|
56
59
|
// be starved for several seconds, so keep the stale threshold well
|
|
@@ -79,7 +82,7 @@ export const withLock = <A, E, R>(
|
|
|
79
82
|
) {
|
|
80
83
|
throw new Error(
|
|
81
84
|
`Timed out waiting for the alchemy auth lock '${lockPath}' — another alchemy ` +
|
|
82
|
-
`process has held it for over
|
|
85
|
+
`process has held it for over 120s. If no other alchemy process is running, ` +
|
|
83
86
|
`delete the lock file and retry.`,
|
|
84
87
|
{ cause: err },
|
|
85
88
|
);
|
package/src/Bundle/PurePlugin.ts
CHANGED
|
@@ -134,7 +134,7 @@ export const purePlugin = (
|
|
|
134
134
|
markSideEffectFreeOpt &&
|
|
135
135
|
!isEntry &&
|
|
136
136
|
isSideEffectFree(info.sideEffects);
|
|
137
|
-
const annotated =
|
|
137
|
+
const annotated = annotateModuleCached(code, id);
|
|
138
138
|
if (annotated === null) {
|
|
139
139
|
return markSideEffectFree ? { code, moduleSideEffects: false } : null;
|
|
140
140
|
}
|
|
@@ -433,6 +433,39 @@ interface AnnotatedModule {
|
|
|
433
433
|
readonly map: ReturnType<MagicString["generateMap"]>;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
+
/**
|
|
437
|
+
* Process-wide memo of {@link annotateModule} results keyed by module id.
|
|
438
|
+
*
|
|
439
|
+
* Parsing with oxc + generating the sourcemap dominates bundling CPU (it
|
|
440
|
+
* showed up as ~60% of the main-thread profile of a test run), and the same
|
|
441
|
+
* modules — effect/alchemy dist files — are re-transformed for EVERY bundle
|
|
442
|
+
* built in the process. The single-process test runner builds dozens of
|
|
443
|
+
* worker bundles per run, so this cache eliminates all repeat parses. The
|
|
444
|
+
* stored `code` is compared on lookup, so a changed file (e.g. dev watch
|
|
445
|
+
* mode) never serves a stale result.
|
|
446
|
+
*/
|
|
447
|
+
const annotateCache = new Map<
|
|
448
|
+
string,
|
|
449
|
+
{ readonly code: string; readonly result: AnnotatedModule | null }
|
|
450
|
+
>();
|
|
451
|
+
const ANNOTATE_CACHE_MAX = 10_000;
|
|
452
|
+
|
|
453
|
+
const annotateModuleCached = (
|
|
454
|
+
code: string,
|
|
455
|
+
filename: string,
|
|
456
|
+
): AnnotatedModule | null => {
|
|
457
|
+
const cached = annotateCache.get(filename);
|
|
458
|
+
if (cached !== undefined && cached.code === code) {
|
|
459
|
+
return cached.result;
|
|
460
|
+
}
|
|
461
|
+
const result = annotateModule(code, filename);
|
|
462
|
+
if (annotateCache.size >= ANNOTATE_CACHE_MAX) {
|
|
463
|
+
annotateCache.clear();
|
|
464
|
+
}
|
|
465
|
+
annotateCache.set(filename, { code, result });
|
|
466
|
+
return result;
|
|
467
|
+
};
|
|
468
|
+
|
|
436
469
|
/**
|
|
437
470
|
* Parses `code` and inserts `/*#__PURE__*\/` before every top-level
|
|
438
471
|
* `CallExpression` / `NewExpression` callee. Returns `null` if the file
|
package/src/Bundle/Vite.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { NonEmptyArray } from "effect/Array";
|
|
2
2
|
import * as Cause from "effect/Cause";
|
|
3
|
-
import * as Deferred from "effect/Deferred";
|
|
4
3
|
import * as Effect from "effect/Effect";
|
|
5
4
|
import * as FileSystem from "effect/FileSystem";
|
|
6
5
|
import * as Path from "effect/Path";
|
|
6
|
+
import type { PlatformError } from "effect/PlatformError";
|
|
7
7
|
import type * as vite from "vite";
|
|
8
|
+
import { cachedFunction } from "../Util/cached-function.ts";
|
|
8
9
|
import { sha256 } from "../Util/index.ts";
|
|
9
10
|
import {
|
|
10
11
|
BundleError,
|
|
@@ -18,6 +19,7 @@ export interface ViteBuildOutput {
|
|
|
18
19
|
readonly clientDirectory: string | undefined;
|
|
19
20
|
// This is emitted as an Effect instead of a value so we can process it in parallel with reading the client assets.
|
|
20
21
|
readonly serverBundle: Effect.Effect<BundleOutput | undefined, BundleError>;
|
|
22
|
+
readonly externalWorkspaces: Effect.Effect<Set<string>, PlatformError>;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
// `@vitejs/plugin-rsc` writes these modules separately after build completes instead of emitting them as chunks.
|
|
@@ -45,15 +47,68 @@ export const viteBuildOutputPlugin = Effect.fn(function* ({
|
|
|
45
47
|
string,
|
|
46
48
|
Effect.Effect<BundleFile, BundleError>
|
|
47
49
|
>();
|
|
48
|
-
const
|
|
50
|
+
const maybeExternalWorkspaces = new Set<string>();
|
|
49
51
|
|
|
52
|
+
const findUp = yield* cachedFunction(
|
|
53
|
+
(
|
|
54
|
+
dir: string,
|
|
55
|
+
filenames: Array<string>,
|
|
56
|
+
): Effect.Effect<string | undefined, PlatformError> =>
|
|
57
|
+
Effect.filter(
|
|
58
|
+
filenames.map((filename) => path.join(dir, filename)),
|
|
59
|
+
fs.exists,
|
|
60
|
+
{ concurrency: "unbounded" },
|
|
61
|
+
).pipe(
|
|
62
|
+
Effect.flatMap(([match]) => {
|
|
63
|
+
if (match) {
|
|
64
|
+
return Effect.succeed(match);
|
|
65
|
+
}
|
|
66
|
+
const parent = path.dirname(dir);
|
|
67
|
+
if (parent === dir) {
|
|
68
|
+
return Effect.undefined;
|
|
69
|
+
}
|
|
70
|
+
return findUp(parent, filenames);
|
|
71
|
+
}),
|
|
72
|
+
),
|
|
73
|
+
);
|
|
74
|
+
const collectExternalWorkspaces = (): Effect.Effect<
|
|
75
|
+
Set<string>,
|
|
76
|
+
PlatformError
|
|
77
|
+
> =>
|
|
78
|
+
Effect.forEach(maybeExternalWorkspaces, (directory) =>
|
|
79
|
+
findUp(directory, ["package.json"]),
|
|
80
|
+
).pipe(
|
|
81
|
+
Effect.map(
|
|
82
|
+
(paths) =>
|
|
83
|
+
new Set(paths.filter((file) => file !== undefined).map(path.dirname)),
|
|
84
|
+
),
|
|
85
|
+
);
|
|
50
86
|
const plugin: vite.Plugin = {
|
|
51
87
|
name: "alchemy:build-output",
|
|
52
88
|
sharedDuringBuild: true,
|
|
89
|
+
// Collect the client output directory and server chunks as each
|
|
90
|
+
// environment writes its bundle. We deliberately do NOT resolve the build
|
|
91
|
+
// result from a `buildApp` hook: on Vite 8, when a project declares no
|
|
92
|
+
// `builder.buildApp` (e.g. a plain client-only SPA), `builder.buildApp()`
|
|
93
|
+
// runs post-order `buildApp` hooks *before* the default environment builds,
|
|
94
|
+
// so a hook fires while the output is still empty (issue #792). Instead,
|
|
95
|
+
// `viteBuild` reads `output` *after* `builder.buildApp()` resolves — by
|
|
96
|
+
// which point every environment that actually built has run `writeBundle`.
|
|
53
97
|
async writeBundle(_, bundle) {
|
|
98
|
+
const root = path.resolve(this.environment.config.root);
|
|
99
|
+
for (const id of this.getModuleIds()) {
|
|
100
|
+
if (
|
|
101
|
+
!path.isAbsolute(id) ||
|
|
102
|
+
id.includes("node_modules") ||
|
|
103
|
+
id.startsWith(root)
|
|
104
|
+
) {
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
maybeExternalWorkspaces.add(path.dirname(id));
|
|
108
|
+
}
|
|
54
109
|
if (this.environment.name === "client") {
|
|
55
110
|
clientDirectory = path.resolve(
|
|
56
|
-
|
|
111
|
+
root,
|
|
57
112
|
this.environment.config.build.outDir,
|
|
58
113
|
);
|
|
59
114
|
return;
|
|
@@ -107,18 +162,6 @@ export const viteBuildOutputPlugin = Effect.fn(function* ({
|
|
|
107
162
|
}),
|
|
108
163
|
);
|
|
109
164
|
},
|
|
110
|
-
buildApp: {
|
|
111
|
-
order: "post",
|
|
112
|
-
async handler() {
|
|
113
|
-
Deferred.doneUnsafe(
|
|
114
|
-
deferred,
|
|
115
|
-
Effect.succeed({
|
|
116
|
-
clientDirectory,
|
|
117
|
-
serverBundle: makeServerBundle(),
|
|
118
|
-
}),
|
|
119
|
-
);
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
165
|
};
|
|
123
166
|
|
|
124
167
|
// The server bundle may include chunks from more than one Vite environment, so we need to prefix them with the environment-specific output directory.
|
|
@@ -199,6 +242,14 @@ export const viteBuildOutputPlugin = Effect.fn(function* ({
|
|
|
199
242
|
|
|
200
243
|
return {
|
|
201
244
|
plugin,
|
|
202
|
-
|
|
245
|
+
// Read lazily so callers observe the state collected during the build.
|
|
246
|
+
// Only safe to await *after* `builder.buildApp()` has resolved.
|
|
247
|
+
output: Effect.sync(
|
|
248
|
+
(): ViteBuildOutput => ({
|
|
249
|
+
clientDirectory,
|
|
250
|
+
serverBundle: makeServerBundle(),
|
|
251
|
+
externalWorkspaces: collectExternalWorkspaces(),
|
|
252
|
+
}),
|
|
253
|
+
),
|
|
203
254
|
};
|
|
204
255
|
});
|
package/src/Cli/LoggingCli.ts
CHANGED
|
@@ -113,22 +113,25 @@ export const LoggingCli = Layer.succeed(
|
|
|
113
113
|
|
|
114
114
|
const counts = { ok: 0, fail: 0 };
|
|
115
115
|
return {
|
|
116
|
+
// Write through the Effect Console SERVICE (not the global
|
|
117
|
+
// `console`) so environments that override it — e.g. the
|
|
118
|
+
// alchemy-test runner's per-test buffering console — capture
|
|
119
|
+
// apply progress instead of having it leak to stdout.
|
|
116
120
|
emit: (event: ApplyEvent) =>
|
|
117
|
-
Effect.
|
|
121
|
+
Effect.suspend(() => {
|
|
118
122
|
if (event.kind === "annotate") {
|
|
119
|
-
|
|
120
|
-
return;
|
|
123
|
+
return Console.log(`${tag(event.id)} ${blue(event.message)}`);
|
|
121
124
|
}
|
|
122
125
|
const id = event.bindingId
|
|
123
126
|
? `${event.id}/${event.bindingId}`
|
|
124
127
|
: event.id;
|
|
125
128
|
const status = statusColor(event.status)(event.status);
|
|
126
129
|
const msg = event.message ? ` ${dim("—")} ${event.message}` : "";
|
|
127
|
-
console.log(`${tag(id)} ${status}${msg}`);
|
|
128
130
|
if (isTerminal(event.status)) {
|
|
129
131
|
if (event.status === "fail") counts.fail++;
|
|
130
132
|
else counts.ok++;
|
|
131
133
|
}
|
|
134
|
+
return Console.log(`${tag(id)} ${status}${msg}`);
|
|
132
135
|
}),
|
|
133
136
|
done: () =>
|
|
134
137
|
Console.log(
|