alchemy 2.0.0-beta.76 → 2.0.0-beta.77
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 +1 -1
- package/THIRD_PARTY_LICENSES.md +11 -11
- package/bin/cli.js +88 -11
- package/bin/exec.js +11828 -5720
- package/bin/exec.js.map +1 -1
- package/bin/register-oxc.js +27 -0
- package/lib/AWS/AMP/Scraper.js +1 -1
- package/lib/AWS/AMP/Scraper.js.map +1 -1
- package/lib/AWS/AppRunner/Service.d.ts +11 -27
- package/lib/AWS/AppRunner/Service.d.ts.map +1 -1
- package/lib/AWS/AppRunner/Service.js +7 -21
- package/lib/AWS/AppRunner/Service.js.map +1 -1
- package/lib/AWS/Assets.d.ts +1 -1
- package/lib/AWS/Assets.js +2 -2
- package/lib/AWS/Assets.js.map +1 -1
- package/lib/AWS/AuthProvider.d.ts +40 -53
- package/lib/AWS/AuthProvider.d.ts.map +1 -1
- package/lib/AWS/AuthProvider.js +480 -215
- package/lib/AWS/AuthProvider.js.map +1 -1
- package/lib/AWS/Batch/JobDefinition.d.ts +11 -27
- package/lib/AWS/Batch/JobDefinition.d.ts.map +1 -1
- package/lib/AWS/Batch/JobDefinition.js +7 -21
- package/lib/AWS/Batch/JobDefinition.js.map +1 -1
- package/lib/AWS/EC2/GetAmi.d.ts +2 -0
- package/lib/AWS/EC2/GetAmi.d.ts.map +1 -1
- package/lib/AWS/EC2/Instance.d.ts +11 -27
- package/lib/AWS/EC2/Instance.d.ts.map +1 -1
- package/lib/AWS/EC2/Instance.js +7 -21
- package/lib/AWS/EC2/Instance.js.map +1 -1
- package/lib/AWS/EC2/hosted.d.ts +5 -6
- package/lib/AWS/EC2/hosted.d.ts.map +1 -1
- package/lib/AWS/EC2/hosted.js.map +1 -1
- package/lib/AWS/ECR/Image.d.ts +1 -1
- package/lib/AWS/ECR/ImageSource.d.ts +4 -5
- package/lib/AWS/ECR/ImageSource.d.ts.map +1 -1
- package/lib/AWS/ECR/ImageSource.js.map +1 -1
- package/lib/AWS/ECS/Service.d.ts +7 -21
- package/lib/AWS/ECS/Service.d.ts.map +1 -1
- package/lib/AWS/ECS/Service.js +7 -21
- package/lib/AWS/ECS/Service.js.map +1 -1
- package/lib/AWS/ECS/Task.d.ts +7 -21
- package/lib/AWS/ECS/Task.d.ts.map +1 -1
- package/lib/AWS/ECS/Task.js +7 -21
- package/lib/AWS/ECS/Task.js.map +1 -1
- package/lib/AWS/ElastiCache/CacheCluster.d.ts +60 -0
- package/lib/AWS/ElastiCache/CacheCluster.d.ts.map +1 -0
- package/lib/AWS/ElastiCache/CacheCluster.js +199 -0
- package/lib/AWS/ElastiCache/CacheCluster.js.map +1 -0
- package/lib/AWS/ElastiCache/ConnectCacheCluster.d.ts +46 -0
- package/lib/AWS/ElastiCache/ConnectCacheCluster.d.ts.map +1 -0
- package/lib/AWS/ElastiCache/ConnectCacheCluster.js +5 -0
- package/lib/AWS/ElastiCache/ConnectCacheCluster.js.map +1 -0
- package/lib/AWS/ElastiCache/ConnectCacheClusterHttp.d.ts +4 -0
- package/lib/AWS/ElastiCache/ConnectCacheClusterHttp.d.ts.map +1 -0
- package/lib/AWS/ElastiCache/ConnectCacheClusterHttp.js +52 -0
- package/lib/AWS/ElastiCache/ConnectCacheClusterHttp.js.map +1 -0
- package/lib/AWS/ElastiCache/ConnectReplicationGroup.d.ts +47 -0
- package/lib/AWS/ElastiCache/ConnectReplicationGroup.d.ts.map +1 -0
- package/lib/AWS/ElastiCache/ConnectReplicationGroup.js +5 -0
- package/lib/AWS/ElastiCache/ConnectReplicationGroup.js.map +1 -0
- package/lib/AWS/ElastiCache/ConnectReplicationGroupHttp.d.ts +4 -0
- package/lib/AWS/ElastiCache/ConnectReplicationGroupHttp.d.ts.map +1 -0
- package/lib/AWS/ElastiCache/ConnectReplicationGroupHttp.js +77 -0
- package/lib/AWS/ElastiCache/ConnectReplicationGroupHttp.js.map +1 -0
- package/lib/AWS/ElastiCache/ReplicationGroup.d.ts +95 -0
- package/lib/AWS/ElastiCache/ReplicationGroup.d.ts.map +1 -0
- package/lib/AWS/ElastiCache/ReplicationGroup.js +383 -0
- package/lib/AWS/ElastiCache/ReplicationGroup.js.map +1 -0
- package/lib/AWS/ElastiCache/SubnetGroup.d.ts +39 -0
- package/lib/AWS/ElastiCache/SubnetGroup.d.ts.map +1 -0
- package/lib/AWS/ElastiCache/SubnetGroup.js +136 -0
- package/lib/AWS/ElastiCache/SubnetGroup.js.map +1 -0
- package/lib/AWS/ElastiCache/index.d.ts +7 -0
- package/lib/AWS/ElastiCache/index.d.ts.map +1 -1
- package/lib/AWS/ElastiCache/index.js +7 -0
- package/lib/AWS/ElastiCache/index.js.map +1 -1
- package/lib/AWS/ElastiCache/internal.d.ts +13 -0
- package/lib/AWS/ElastiCache/internal.d.ts.map +1 -0
- package/lib/AWS/ElastiCache/internal.js +19 -0
- package/lib/AWS/ElastiCache/internal.js.map +1 -0
- package/lib/AWS/Environment.d.ts +2 -3
- package/lib/AWS/Environment.d.ts.map +1 -1
- package/lib/AWS/Environment.js +11 -41
- package/lib/AWS/Environment.js.map +1 -1
- package/lib/AWS/IAM/actions.generated.js +1 -1
- package/lib/AWS/IAM/actions.generated.js.map +1 -1
- package/lib/AWS/IdentityCenter/AccountAssignment.js +6 -0
- package/lib/AWS/IdentityCenter/AccountAssignment.js.map +1 -1
- package/lib/AWS/Lambda/Function.d.ts +14 -23
- package/lib/AWS/Lambda/Function.d.ts.map +1 -1
- package/lib/AWS/Lambda/Function.js +15 -20
- package/lib/AWS/Lambda/Function.js.map +1 -1
- package/lib/AWS/Lambda/MicrovmImage.d.ts +12 -28
- package/lib/AWS/Lambda/MicrovmImage.d.ts.map +1 -1
- package/lib/AWS/Lambda/MicrovmImage.js +8 -22
- package/lib/AWS/Lambda/MicrovmImage.js.map +1 -1
- package/lib/AWS/Local/DevWatchProvider.d.ts.map +1 -1
- package/lib/AWS/Local/DevWatchProvider.js +10 -1
- package/lib/AWS/Local/DevWatchProvider.js.map +1 -1
- package/lib/AWS/Organizations/Account.d.ts +2 -2
- package/lib/AWS/Organizations/Account.d.ts.map +1 -1
- package/lib/AWS/Organizations/Account.js +16 -8
- package/lib/AWS/Organizations/Account.js.map +1 -1
- package/lib/AWS/Organizations/DelegatedAdministrator.d.ts +2 -3
- package/lib/AWS/Organizations/DelegatedAdministrator.d.ts.map +1 -1
- package/lib/AWS/Organizations/DelegatedAdministrator.js +5 -5
- package/lib/AWS/Organizations/DelegatedAdministrator.js.map +1 -1
- package/lib/AWS/Organizations/Organization.d.ts +1 -1
- package/lib/AWS/Organizations/Organization.d.ts.map +1 -1
- package/lib/AWS/Organizations/Organization.js +2 -2
- package/lib/AWS/Organizations/Organization.js.map +1 -1
- package/lib/AWS/Organizations/common.d.ts +9 -0
- package/lib/AWS/Organizations/common.d.ts.map +1 -1
- package/lib/AWS/Organizations/common.js +13 -0
- package/lib/AWS/Organizations/common.js.map +1 -1
- package/lib/AWS/Providers.d.ts.map +1 -1
- package/lib/AWS/Providers.js +4 -1
- package/lib/AWS/Providers.js.map +1 -1
- package/lib/AWS/StateStore/State.d.ts +1 -1
- package/lib/AWS/StateStore/State.d.ts.map +1 -1
- package/lib/Alchemist/Errors.d.ts +31 -0
- package/lib/Alchemist/Errors.d.ts.map +1 -0
- package/lib/Alchemist/Errors.js +19 -0
- package/lib/Alchemist/Errors.js.map +1 -0
- package/lib/Alchemist/Progress.d.ts +16 -0
- package/lib/Alchemist/Progress.d.ts.map +1 -0
- package/lib/Alchemist/Progress.js +129 -0
- package/lib/Alchemist/Progress.js.map +1 -0
- package/lib/Alchemist/Runtime.d.ts +22 -0
- package/lib/Alchemist/Runtime.d.ts.map +1 -0
- package/lib/Alchemist/Runtime.js +28 -0
- package/lib/Alchemist/Runtime.js.map +1 -0
- package/lib/Alchemist/Session.d.ts +124 -0
- package/lib/Alchemist/Session.d.ts.map +1 -0
- package/lib/Alchemist/Session.js +223 -0
- package/lib/Alchemist/Session.js.map +1 -0
- package/lib/Alchemist/index.d.ts +15 -0
- package/lib/Alchemist/index.d.ts.map +1 -0
- package/lib/Alchemist/index.js +15 -0
- package/lib/Alchemist/index.js.map +1 -0
- package/lib/Alchemist/routes/aws.d.ts +21 -0
- package/lib/Alchemist/routes/aws.d.ts.map +1 -0
- package/lib/Alchemist/routes/aws.js +54 -0
- package/lib/Alchemist/routes/aws.js.map +1 -0
- package/lib/Alchemist/routes/cloudflare.d.ts +63 -0
- package/lib/Alchemist/routes/cloudflare.d.ts.map +1 -0
- package/lib/Alchemist/routes/cloudflare.js +113 -0
- package/lib/Alchemist/routes/cloudflare.js.map +1 -0
- package/lib/Alchemist/routes/cloudflareToken.d.ts +93 -0
- package/lib/Alchemist/routes/cloudflareToken.d.ts.map +1 -0
- package/lib/Alchemist/routes/cloudflareToken.js +111 -0
- package/lib/Alchemist/routes/cloudflareToken.js.map +1 -0
- package/lib/Alchemist/routes/drift.d.ts +55 -0
- package/lib/Alchemist/routes/drift.d.ts.map +1 -0
- package/lib/Alchemist/routes/drift.js +52 -0
- package/lib/Alchemist/routes/drift.js.map +1 -0
- package/lib/Alchemist/routes/logs.d.ts +41 -0
- package/lib/Alchemist/routes/logs.d.ts.map +1 -0
- package/lib/Alchemist/routes/logs.js +112 -0
- package/lib/Alchemist/routes/logs.js.map +1 -0
- package/lib/Alchemist/routes/nuke.d.ts +46 -0
- package/lib/Alchemist/routes/nuke.d.ts.map +1 -0
- package/lib/Alchemist/routes/nuke.js +80 -0
- package/lib/Alchemist/routes/nuke.js.map +1 -0
- package/lib/Alchemist/routes/profile.d.ts +133 -0
- package/lib/Alchemist/routes/profile.d.ts.map +1 -0
- package/lib/Alchemist/routes/profile.js +257 -0
- package/lib/Alchemist/routes/profile.js.map +1 -0
- package/lib/Alchemist/routes/provider.d.ts +33 -0
- package/lib/Alchemist/routes/provider.d.ts.map +1 -0
- package/lib/Alchemist/routes/provider.js +65 -0
- package/lib/Alchemist/routes/provider.js.map +1 -0
- package/lib/Alchemist/routes/stack.d.ts +78 -0
- package/lib/Alchemist/routes/stack.d.ts.map +1 -0
- package/lib/Alchemist/routes/stack.js +67 -0
- package/lib/Alchemist/routes/stack.js.map +1 -0
- package/lib/Alchemist/routes/state.d.ts +35 -0
- package/lib/Alchemist/routes/state.d.ts.map +1 -0
- package/lib/Alchemist/routes/state.js +42 -0
- package/lib/Alchemist/routes/state.js.map +1 -0
- package/lib/Apply.d.ts +8 -6
- package/lib/Apply.d.ts.map +1 -1
- package/lib/Apply.js +209 -103
- package/lib/Apply.js.map +1 -1
- package/lib/Auth/AuthProvider.d.ts +201 -25
- package/lib/Auth/AuthProvider.d.ts.map +1 -1
- package/lib/Auth/AuthProvider.js +180 -40
- package/lib/Auth/AuthProvider.js.map +1 -1
- package/lib/Auth/BrowserOAuth.d.ts +27 -0
- package/lib/Auth/BrowserOAuth.d.ts.map +1 -0
- package/lib/Auth/BrowserOAuth.js +41 -0
- package/lib/Auth/BrowserOAuth.js.map +1 -0
- package/lib/Auth/Credentials.d.ts +11 -6
- package/lib/Auth/Credentials.d.ts.map +1 -1
- package/lib/Auth/Credentials.js +62 -23
- package/lib/Auth/Credentials.js.map +1 -1
- package/lib/Auth/CredentialsCache.d.ts +15 -0
- package/lib/Auth/CredentialsCache.d.ts.map +1 -0
- package/lib/Auth/CredentialsCache.js +34 -0
- package/lib/Auth/CredentialsCache.js.map +1 -0
- package/lib/Auth/Demand.d.ts +59 -34
- package/lib/Auth/Demand.d.ts.map +1 -1
- package/lib/Auth/Demand.js +150 -60
- package/lib/Auth/Demand.js.map +1 -1
- package/lib/Auth/Env.d.ts +4 -4
- package/lib/Auth/Env.d.ts.map +1 -1
- package/lib/Auth/Env.js +18 -9
- package/lib/Auth/Env.js.map +1 -1
- package/lib/Auth/Inspect.d.ts +33 -0
- package/lib/Auth/Inspect.d.ts.map +1 -0
- package/lib/Auth/Inspect.js +67 -0
- package/lib/Auth/Inspect.js.map +1 -0
- package/lib/Auth/Lock.d.ts +6 -0
- package/lib/Auth/Lock.d.ts.map +1 -1
- package/lib/Auth/Lock.js +22 -11
- package/lib/Auth/Lock.js.map +1 -1
- package/lib/Auth/OAuthFlow.d.ts +119 -0
- package/lib/Auth/OAuthFlow.d.ts.map +1 -0
- package/lib/Auth/OAuthFlow.js +314 -0
- package/lib/Auth/OAuthFlow.js.map +1 -0
- package/lib/Auth/Paths.d.ts +18 -0
- package/lib/Auth/Paths.d.ts.map +1 -0
- package/lib/Auth/Paths.js +20 -0
- package/lib/Auth/Paths.js.map +1 -0
- package/lib/Auth/Profile.d.ts +91 -67
- package/lib/Auth/Profile.d.ts.map +1 -1
- package/lib/Auth/Profile.js +449 -92
- package/lib/Auth/Profile.js.map +1 -1
- package/lib/Auth/Resolve.d.ts +42 -0
- package/lib/Auth/Resolve.d.ts.map +1 -0
- package/lib/Auth/Resolve.js +90 -0
- package/lib/Auth/Resolve.js.map +1 -0
- package/lib/Auth/StoredAuthProvider.d.ts +84 -0
- package/lib/Auth/StoredAuthProvider.d.ts.map +1 -0
- package/lib/Auth/StoredAuthProvider.js +179 -0
- package/lib/Auth/StoredAuthProvider.js.map +1 -0
- package/lib/Auth/index.d.ts +1 -0
- package/lib/Auth/index.d.ts.map +1 -1
- package/lib/Auth/index.js +1 -0
- package/lib/Auth/index.js.map +1 -1
- package/lib/Axiom/AuthProvider.d.ts +17 -26
- package/lib/Axiom/AuthProvider.d.ts.map +1 -1
- package/lib/Axiom/AuthProvider.js +89 -172
- package/lib/Axiom/AuthProvider.js.map +1 -1
- package/lib/Axiom/Credentials.d.ts +2 -4
- package/lib/Axiom/Credentials.d.ts.map +1 -1
- package/lib/Axiom/Credentials.js +5 -10
- package/lib/Axiom/Credentials.js.map +1 -1
- package/lib/Axiom/Providers.d.ts +2 -2
- package/lib/Axiom/Providers.d.ts.map +1 -1
- package/lib/Axiom/Providers.js +3 -3
- package/lib/Axiom/Providers.js.map +1 -1
- package/lib/Bundle/Bundle.d.ts +3 -5
- package/lib/Bundle/Bundle.d.ts.map +1 -1
- package/lib/Bundle/Bundle.js.map +1 -1
- package/lib/Cli/CliKit/CliKit.d.ts +92 -0
- package/lib/Cli/CliKit/CliKit.d.ts.map +1 -0
- package/lib/Cli/CliKit/CliKit.js +27 -0
- package/lib/Cli/CliKit/CliKit.js.map +1 -0
- package/lib/Cli/CliKit/index.d.ts +9 -0
- package/lib/Cli/CliKit/index.d.ts.map +1 -0
- package/lib/Cli/CliKit/index.js +9 -0
- package/lib/Cli/CliKit/index.js.map +1 -0
- package/lib/Cli/CliKit/interaction.d.ts +13 -0
- package/lib/Cli/CliKit/interaction.d.ts.map +1 -0
- package/lib/Cli/CliKit/interaction.js +17 -0
- package/lib/Cli/CliKit/interaction.js.map +1 -0
- package/lib/Cli/CliKit/layer.d.ts +7 -0
- package/lib/Cli/CliKit/layer.d.ts.map +1 -0
- package/lib/Cli/CliKit/layer.js +34 -0
- package/lib/Cli/CliKit/layer.js.map +1 -0
- package/lib/Cli/DevOptions.d.ts +17 -0
- package/lib/Cli/DevOptions.d.ts.map +1 -0
- package/lib/Cli/DevOptions.js +16 -0
- package/lib/Cli/DevOptions.js.map +1 -0
- package/lib/Cli/Format.d.ts +5 -0
- package/lib/Cli/Format.d.ts.map +1 -0
- package/lib/Cli/Format.js +27 -0
- package/lib/Cli/Format.js.map +1 -0
- package/lib/Cli/GlobalLog.d.ts +41 -0
- package/lib/Cli/GlobalLog.d.ts.map +1 -0
- package/lib/Cli/GlobalLog.js +112 -0
- package/lib/Cli/GlobalLog.js.map +1 -0
- package/lib/Cli/LoggingCli.d.ts +4 -3
- package/lib/Cli/LoggingCli.d.ts.map +1 -1
- package/lib/Cli/LoggingCli.js +240 -100
- package/lib/Cli/LoggingCli.js.map +1 -1
- package/lib/Cli/ModeTag.d.ts +1 -1
- package/lib/Cli/ModeTag.js +1 -1
- package/lib/Cli/NamespaceTree.d.ts +18 -8
- package/lib/Cli/NamespaceTree.d.ts.map +1 -1
- package/lib/Cli/NamespaceTree.js +52 -11
- package/lib/Cli/NamespaceTree.js.map +1 -1
- package/lib/Cli/PlainCliFormatter.d.ts +11 -0
- package/lib/Cli/PlainCliFormatter.d.ts.map +1 -0
- package/lib/Cli/PlainCliFormatter.js +70 -0
- package/lib/Cli/PlainCliFormatter.js.map +1 -0
- package/lib/Cli/PropertyDiff.d.ts +37 -0
- package/lib/Cli/PropertyDiff.d.ts.map +1 -0
- package/lib/Cli/PropertyDiff.js +162 -0
- package/lib/Cli/PropertyDiff.js.map +1 -0
- package/lib/Cli/checkVersion.d.ts.map +1 -1
- package/lib/Cli/checkVersion.js +10 -6
- package/lib/Cli/checkVersion.js.map +1 -1
- package/lib/Cli/commands/aws.d.ts +2 -4
- package/lib/Cli/commands/aws.d.ts.map +1 -1
- package/lib/Cli/commands/aws.js +43 -55
- package/lib/Cli/commands/aws.js.map +1 -1
- package/lib/Cli/commands/cloudflare.d.ts +6 -7
- package/lib/Cli/commands/cloudflare.d.ts.map +1 -1
- package/lib/Cli/commands/cloudflare.js +149 -307
- package/lib/Cli/commands/cloudflare.js.map +1 -1
- package/lib/Cli/commands/compat.d.ts +11 -0
- package/lib/Cli/commands/compat.d.ts.map +1 -0
- package/lib/Cli/commands/compat.js +19 -0
- package/lib/Cli/commands/compat.js.map +1 -0
- package/lib/Cli/commands/confirm.d.ts +33 -0
- package/lib/Cli/commands/confirm.d.ts.map +1 -0
- package/lib/Cli/commands/confirm.js +39 -0
- package/lib/Cli/commands/confirm.js.map +1 -0
- package/lib/Cli/commands/deploy.d.ts +20 -32
- package/lib/Cli/commands/deploy.d.ts.map +1 -1
- package/lib/Cli/commands/deploy.js +140 -140
- package/lib/Cli/commands/deploy.js.map +1 -1
- package/lib/Cli/commands/dev.d.ts +5 -4
- package/lib/Cli/commands/dev.d.ts.map +1 -1
- package/lib/Cli/commands/dev.js +52 -26
- package/lib/Cli/commands/dev.js.map +1 -1
- package/lib/Cli/commands/drift.d.ts +12 -0
- package/lib/Cli/commands/drift.d.ts.map +1 -0
- package/lib/Cli/commands/drift.js +68 -0
- package/lib/Cli/commands/drift.js.map +1 -0
- package/lib/Cli/commands/errors.d.ts +35 -0
- package/lib/Cli/commands/errors.d.ts.map +1 -0
- package/lib/Cli/commands/errors.js +106 -0
- package/lib/Cli/commands/errors.js.map +1 -0
- package/lib/Cli/commands/flags.d.ts +46 -0
- package/lib/Cli/commands/flags.d.ts.map +1 -0
- package/lib/Cli/commands/flags.js +98 -0
- package/lib/Cli/commands/flags.js.map +1 -0
- package/lib/Cli/commands/instrument.d.ts +3 -0
- package/lib/Cli/commands/instrument.d.ts.map +1 -0
- package/lib/Cli/commands/instrument.js +6 -0
- package/lib/Cli/commands/instrument.js.map +1 -0
- package/lib/Cli/commands/logs.d.ts +5 -4
- package/lib/Cli/commands/logs.d.ts.map +1 -1
- package/lib/Cli/commands/logs.js +63 -88
- package/lib/Cli/commands/logs.js.map +1 -1
- package/lib/Cli/commands/nuke.d.ts +3 -2
- package/lib/Cli/commands/nuke.d.ts.map +1 -1
- package/lib/Cli/commands/nuke.js +89 -588
- package/lib/Cli/commands/nuke.js.map +1 -1
- package/lib/Cli/commands/profile/commands.d.ts +9 -0
- package/lib/Cli/commands/profile/commands.d.ts.map +1 -0
- package/lib/Cli/commands/profile/commands.js +276 -0
- package/lib/Cli/commands/profile/commands.js.map +1 -0
- package/lib/Cli/commands/profile/flows.d.ts +36 -0
- package/lib/Cli/commands/profile/flows.d.ts.map +1 -0
- package/lib/Cli/commands/profile/flows.js +155 -0
- package/lib/Cli/commands/profile/flows.js.map +1 -0
- package/lib/Cli/commands/profile/hub.d.ts +8 -0
- package/lib/Cli/commands/profile/hub.d.ts.map +1 -0
- package/lib/Cli/commands/profile/hub.js +154 -0
- package/lib/Cli/commands/profile/hub.js.map +1 -0
- package/lib/Cli/commands/profile/index.d.ts +2 -0
- package/lib/Cli/commands/profile/index.d.ts.map +1 -0
- package/lib/Cli/commands/profile/index.js +2 -0
- package/lib/Cli/commands/profile/index.js.map +1 -0
- package/lib/Cli/commands/provider.d.ts +17 -0
- package/lib/Cli/commands/provider.d.ts.map +1 -0
- package/lib/Cli/commands/provider.js +44 -0
- package/lib/Cli/commands/provider.js.map +1 -0
- package/lib/Cli/commands/render.d.ts +12 -0
- package/lib/Cli/commands/render.d.ts.map +1 -0
- package/lib/Cli/commands/render.js +82 -0
- package/lib/Cli/commands/render.js.map +1 -0
- package/lib/Cli/commands/state.d.ts +8 -1
- package/lib/Cli/commands/state.d.ts.map +1 -1
- package/lib/Cli/commands/state.js +125 -248
- package/lib/Cli/commands/state.js.map +1 -1
- package/lib/Cli/components/types.d.ts +104 -0
- package/lib/Cli/components/types.d.ts.map +1 -0
- package/lib/Cli/components/types.js +4 -0
- package/lib/Cli/components/types.js.map +1 -0
- package/lib/Cli/components/ui/Data.d.ts +15 -0
- package/lib/Cli/components/ui/Data.d.ts.map +1 -0
- package/lib/Cli/components/ui/Data.js +8 -0
- package/lib/Cli/components/ui/Data.js.map +1 -0
- package/lib/Cli/components/ui/Environment.d.ts +45 -0
- package/lib/Cli/components/ui/Environment.d.ts.map +1 -0
- package/lib/Cli/components/ui/Environment.js +38 -0
- package/lib/Cli/components/ui/Environment.js.map +1 -0
- package/lib/Cli/components/ui/Feedback.d.ts +57 -0
- package/lib/Cli/components/ui/Feedback.d.ts.map +1 -0
- package/lib/Cli/components/ui/Feedback.js +83 -0
- package/lib/Cli/components/ui/Feedback.js.map +1 -0
- package/lib/Cli/components/ui/Interactive.d.ts +157 -0
- package/lib/Cli/components/ui/Interactive.d.ts.map +1 -0
- package/lib/Cli/components/ui/Interactive.js +527 -0
- package/lib/Cli/components/ui/Interactive.js.map +1 -0
- package/lib/Cli/components/ui/Layout.d.ts +74 -0
- package/lib/Cli/components/ui/Layout.d.ts.map +1 -0
- package/lib/Cli/components/ui/Layout.js +91 -0
- package/lib/Cli/components/ui/Layout.js.map +1 -0
- package/lib/Cli/components/ui/Live.d.ts +49 -0
- package/lib/Cli/components/ui/Live.d.ts.map +1 -0
- package/lib/Cli/components/ui/Live.js +43 -0
- package/lib/Cli/components/ui/Live.js.map +1 -0
- package/lib/Cli/components/ui/ProgressBar.d.ts +16 -0
- package/lib/Cli/components/ui/ProgressBar.d.ts.map +1 -0
- package/lib/Cli/components/ui/ProgressBar.js +17 -0
- package/lib/Cli/components/ui/ProgressBar.js.map +1 -0
- package/lib/Cli/components/ui/Transcript.d.ts +12 -0
- package/lib/Cli/components/ui/Transcript.d.ts.map +1 -0
- package/lib/Cli/components/ui/Transcript.js +14 -0
- package/lib/Cli/components/ui/Transcript.js.map +1 -0
- package/lib/Cli/components/ui/Typography.d.ts +17 -0
- package/lib/Cli/components/ui/Typography.d.ts.map +1 -0
- package/lib/Cli/components/ui/Typography.js +21 -0
- package/lib/Cli/components/ui/Typography.js.map +1 -0
- package/lib/Cli/components/ui/index.d.ts +16 -0
- package/lib/Cli/components/ui/index.d.ts.map +1 -0
- package/lib/Cli/components/ui/index.js +16 -0
- package/lib/Cli/components/ui/index.js.map +1 -0
- package/lib/Cli/components/view/ApprovePlan.d.ts +17 -0
- package/lib/Cli/components/view/ApprovePlan.d.ts.map +1 -0
- package/lib/Cli/components/view/ApprovePlan.js +59 -0
- package/lib/Cli/components/view/ApprovePlan.js.map +1 -0
- package/lib/Cli/components/view/Help.d.ts +4 -0
- package/lib/Cli/components/view/Help.d.ts.map +1 -0
- package/lib/Cli/components/view/Help.js +116 -0
- package/lib/Cli/components/view/Help.js.map +1 -0
- package/lib/Cli/components/view/Logo.d.ts +7 -0
- package/lib/Cli/components/view/Logo.d.ts.map +1 -0
- package/lib/Cli/components/view/Logo.js +118 -0
- package/lib/Cli/components/view/Logo.js.map +1 -0
- package/lib/Cli/components/view/Nuke.d.ts +36 -0
- package/lib/Cli/components/view/Nuke.d.ts.map +1 -0
- package/lib/Cli/components/view/Nuke.js +148 -0
- package/lib/Cli/components/view/Nuke.js.map +1 -0
- package/lib/Cli/components/view/PlanDecision.d.ts +15 -0
- package/lib/Cli/components/view/PlanDecision.d.ts.map +1 -0
- package/lib/Cli/components/view/PlanDecision.js +26 -0
- package/lib/Cli/components/view/PlanDecision.js.map +1 -0
- package/lib/Cli/components/view/PlanRow.d.ts +17 -0
- package/lib/Cli/components/view/PlanRow.d.ts.map +1 -0
- package/lib/Cli/components/view/PlanRow.js +14 -0
- package/lib/Cli/components/view/PlanRow.js.map +1 -0
- package/lib/Cli/components/view/PlanTree.d.ts +116 -0
- package/lib/Cli/components/view/PlanTree.d.ts.map +1 -0
- package/lib/Cli/components/view/PlanTree.js +207 -0
- package/lib/Cli/components/view/PlanTree.js.map +1 -0
- package/lib/Cli/components/view/PlanView.d.ts +42 -0
- package/lib/Cli/components/view/PlanView.d.ts.map +1 -0
- package/lib/Cli/components/view/PlanView.js +310 -0
- package/lib/Cli/components/view/PlanView.js.map +1 -0
- package/lib/Cli/components/view/Profile.d.ts +130 -0
- package/lib/Cli/components/view/Profile.d.ts.map +1 -0
- package/lib/Cli/components/view/Profile.js +147 -0
- package/lib/Cli/components/view/Profile.js.map +1 -0
- package/lib/Cli/components/view/ProfileDashboard.d.ts +152 -0
- package/lib/Cli/components/view/ProfileDashboard.d.ts.map +1 -0
- package/lib/Cli/components/view/ProfileDashboard.js +485 -0
- package/lib/Cli/components/view/ProfileDashboard.js.map +1 -0
- package/lib/Cli/components/view/Prompts.d.ts +10 -0
- package/lib/Cli/components/view/Prompts.d.ts.map +1 -0
- package/lib/Cli/components/view/Prompts.js +440 -0
- package/lib/Cli/components/view/Prompts.js.map +1 -0
- package/lib/Cli/components/view/Runtime.d.ts +8 -0
- package/lib/Cli/components/view/Runtime.d.ts.map +1 -0
- package/lib/Cli/components/view/Runtime.js +670 -0
- package/lib/Cli/components/view/Runtime.js.map +1 -0
- package/lib/Cli/components/view/SigilCli.d.ts +5 -0
- package/lib/Cli/components/view/SigilCli.d.ts.map +1 -0
- package/lib/Cli/components/view/SigilCli.js +134 -0
- package/lib/Cli/components/view/SigilCli.js.map +1 -0
- package/lib/Cli/components/view/StackOutputs.d.ts +10 -0
- package/lib/Cli/components/view/StackOutputs.d.ts.map +1 -0
- package/lib/Cli/components/view/StackOutputs.js +14 -0
- package/lib/Cli/components/view/StackOutputs.js.map +1 -0
- package/lib/Cli/components/view/StateExplorer.d.ts +118 -0
- package/lib/Cli/components/view/StateExplorer.d.ts.map +1 -0
- package/lib/Cli/components/view/StateExplorer.js +664 -0
- package/lib/Cli/components/view/StateExplorer.js.map +1 -0
- package/lib/Cli/components/view/statusStyle.d.ts +18 -0
- package/lib/Cli/components/view/statusStyle.d.ts.map +1 -0
- package/lib/Cli/components/view/statusStyle.js +69 -0
- package/lib/Cli/components/view/statusStyle.js.map +1 -0
- package/lib/Cli/components/view/usePlanPresentation.d.ts +25 -0
- package/lib/Cli/components/view/usePlanPresentation.d.ts.map +1 -0
- package/lib/Cli/components/view/usePlanPresentation.js +54 -0
- package/lib/Cli/components/view/usePlanPresentation.js.map +1 -0
- package/lib/Cli/components/view/usePlanViewport.d.ts +31 -0
- package/lib/Cli/components/view/usePlanViewport.d.ts.map +1 -0
- package/lib/Cli/components/view/usePlanViewport.js +113 -0
- package/lib/Cli/components/view/usePlanViewport.js.map +1 -0
- package/lib/Cli/exec.d.ts +5 -1
- package/lib/Cli/exec.d.ts.map +1 -1
- package/lib/Cli/exec.js +173 -19
- package/lib/Cli/exec.js.map +1 -1
- package/lib/Cli/main.d.ts +4 -1
- package/lib/Cli/main.d.ts.map +1 -1
- package/lib/Cli/main.js +129 -38
- package/lib/Cli/main.js.map +1 -1
- package/lib/Cli/selectCli.d.ts +5 -3
- package/lib/Cli/selectCli.d.ts.map +1 -1
- package/lib/Cli/selectCli.js +16 -9
- package/lib/Cli/selectCli.js.map +1 -1
- package/lib/Cloudflare/ApiToken/UserApiToken.d.ts +1 -1
- package/lib/Cloudflare/ApiToken/UserApiToken.js +1 -1
- package/lib/Cloudflare/Auth/AuthConfig.d.ts +60 -0
- package/lib/Cloudflare/Auth/AuthConfig.d.ts.map +1 -0
- package/lib/Cloudflare/Auth/AuthConfig.js +68 -0
- package/lib/Cloudflare/Auth/AuthConfig.js.map +1 -0
- package/lib/Cloudflare/Auth/AuthProvider.d.ts +2 -142
- package/lib/Cloudflare/Auth/AuthProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Auth/AuthProvider.js +473 -327
- package/lib/Cloudflare/Auth/AuthProvider.js.map +1 -1
- package/lib/Cloudflare/Auth/OAuthClient.d.ts +16 -48
- package/lib/Cloudflare/Auth/OAuthClient.d.ts.map +1 -1
- package/lib/Cloudflare/Auth/OAuthClient.js +25 -260
- package/lib/Cloudflare/Auth/OAuthClient.js.map +1 -1
- package/lib/Cloudflare/Auth/OAuthScopes.d.ts +88 -0
- package/lib/Cloudflare/Auth/OAuthScopes.d.ts.map +1 -0
- package/lib/Cloudflare/Auth/OAuthScopes.js +887 -0
- package/lib/Cloudflare/Auth/OAuthScopes.js.map +1 -0
- package/lib/Cloudflare/Auth/TokenPolicy.d.ts +34 -0
- package/lib/Cloudflare/Auth/TokenPolicy.d.ts.map +1 -0
- package/lib/Cloudflare/Auth/TokenPolicy.js +51 -0
- package/lib/Cloudflare/Auth/TokenPolicy.js.map +1 -0
- package/lib/Cloudflare/CloudflareEnvironment.d.ts +2 -3
- package/lib/Cloudflare/CloudflareEnvironment.d.ts.map +1 -1
- package/lib/Cloudflare/CloudflareEnvironment.js +7 -11
- package/lib/Cloudflare/CloudflareEnvironment.js.map +1 -1
- package/lib/Cloudflare/Containers/Container.d.ts +10 -25
- package/lib/Cloudflare/Containers/Container.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/Container.js +9 -23
- package/lib/Cloudflare/Containers/Container.js.map +1 -1
- package/lib/Cloudflare/Containers/ContainerApplication.d.ts +12 -27
- package/lib/Cloudflare/Containers/ContainerApplication.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/ContainerApplication.js.map +1 -1
- package/lib/Cloudflare/Containers/StartContainer.d.ts +1 -1
- package/lib/Cloudflare/Containers/StartContainer.d.ts.map +1 -1
- package/lib/Cloudflare/Credentials.d.ts +6 -20
- package/lib/Cloudflare/Credentials.d.ts.map +1 -1
- package/lib/Cloudflare/Credentials.js +12 -54
- package/lib/Cloudflare/Credentials.js.map +1 -1
- package/lib/Cloudflare/D1/ImportDatabase.d.ts +1 -1
- package/lib/Cloudflare/D1/ImportDatabase.d.ts.map +1 -1
- package/lib/Cloudflare/EdgeSession.d.ts +1 -1
- package/lib/Cloudflare/EdgeSession.d.ts.map +1 -1
- package/lib/Cloudflare/EdgeSession.js +1 -1
- package/lib/Cloudflare/EdgeSession.js.map +1 -1
- package/lib/Cloudflare/Logs.d.ts.map +1 -1
- package/lib/Cloudflare/Logs.js +10 -6
- package/lib/Cloudflare/Logs.js.map +1 -1
- package/lib/Cloudflare/Pages/Project.d.ts +1 -1
- package/lib/Cloudflare/Pages/Project.js +1 -1
- package/lib/Cloudflare/Providers.d.ts +2 -2
- package/lib/Cloudflare/Providers.d.ts.map +1 -1
- package/lib/Cloudflare/Providers.js +2 -2
- package/lib/Cloudflare/Providers.js.map +1 -1
- package/lib/Cloudflare/StateStore/Api.d.ts +3 -0
- package/lib/Cloudflare/StateStore/Api.d.ts.map +1 -1
- package/lib/Cloudflare/StateStore/Api.js +2 -2
- package/lib/Cloudflare/StateStore/Api.js.map +1 -1
- package/lib/Cloudflare/StateStore/CredentialsFile.d.ts +10 -6
- package/lib/Cloudflare/StateStore/CredentialsFile.d.ts.map +1 -1
- package/lib/Cloudflare/StateStore/CredentialsFile.js +23 -1
- package/lib/Cloudflare/StateStore/CredentialsFile.js.map +1 -1
- package/lib/Cloudflare/StateStore/State.d.ts +9 -5
- package/lib/Cloudflare/StateStore/State.d.ts.map +1 -1
- package/lib/Cloudflare/StateStore/State.js +132 -99
- package/lib/Cloudflare/StateStore/State.js.map +1 -1
- package/lib/Cloudflare/Vectorize/SearchIndexHttpClient.js +1 -1
- package/lib/Cloudflare/Vectorize/SearchIndexHttpClient.js.map +1 -1
- package/lib/Cloudflare/Website/Nextjs.d.ts.map +1 -1
- package/lib/Cloudflare/Website/Nextjs.js +4 -12
- package/lib/Cloudflare/Website/Nextjs.js.map +1 -1
- package/lib/Cloudflare/Website/Vocs.d.ts +1 -1
- package/lib/Cloudflare/Website/Vocs.d.ts.map +1 -1
- package/lib/Cloudflare/Website/Vocs.js +3 -7
- package/lib/Cloudflare/Website/Vocs.js.map +1 -1
- package/lib/Cloudflare/Workers/Assets.d.ts +2 -2
- package/lib/Cloudflare/Workers/Assets.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Assets.js +74 -26
- package/lib/Cloudflare/Workers/Assets.js.map +1 -1
- package/lib/Cloudflare/Workers/BrowserHttpClient.d.ts +2 -2
- package/lib/Cloudflare/Workers/BrowserHttpClient.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/BrowserHttpClient.js +10 -3
- package/lib/Cloudflare/Workers/BrowserHttpClient.js.map +1 -1
- package/lib/Cloudflare/Workers/CloudflareTracer.d.ts +9 -0
- package/lib/Cloudflare/Workers/CloudflareTracer.d.ts.map +1 -0
- package/lib/Cloudflare/Workers/CloudflareTracer.js +87 -0
- package/lib/Cloudflare/Workers/CloudflareTracer.js.map +1 -0
- package/lib/Cloudflare/Workers/Compatibility.d.ts +13 -0
- package/lib/Cloudflare/Workers/Compatibility.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Compatibility.js +31 -6
- package/lib/Cloudflare/Workers/Compatibility.js.map +1 -1
- package/lib/Cloudflare/Workers/DurableObject.d.ts +50 -4
- package/lib/Cloudflare/Workers/DurableObject.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/DurableObject.js +44 -3
- 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 +4 -0
- package/lib/Cloudflare/Workers/DurableObjectBridge.js.map +1 -1
- package/lib/Cloudflare/Workers/DurableObjectState.d.ts +25 -2
- package/lib/Cloudflare/Workers/DurableObjectState.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/DurableObjectState.js +7 -2
- package/lib/Cloudflare/Workers/DurableObjectState.js.map +1 -1
- package/lib/Cloudflare/Workers/DurableObjectStorage.d.ts +7 -1
- package/lib/Cloudflare/Workers/DurableObjectStorage.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/DurableObjectStorage.js +6 -1
- package/lib/Cloudflare/Workers/DurableObjectStorage.js.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js +125 -58
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/RpcWorker.d.ts +12 -5
- package/lib/Cloudflare/Workers/RpcWorker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/RpcWorker.js +8 -2
- package/lib/Cloudflare/Workers/RpcWorker.js.map +1 -1
- package/lib/Cloudflare/Workers/Source.d.ts +3 -0
- package/lib/Cloudflare/Workers/Source.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Source.js +3 -1
- package/lib/Cloudflare/Workers/Source.js.map +1 -1
- package/lib/Cloudflare/Workers/Sources/Python.d.ts +2 -0
- package/lib/Cloudflare/Workers/Sources/Python.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Sources/Python.js +16 -12
- package/lib/Cloudflare/Workers/Sources/Python.js.map +1 -1
- package/lib/Cloudflare/Workers/Sources/Rolldown.js +1 -1
- package/lib/Cloudflare/Workers/Sources/Rolldown.js.map +1 -1
- package/lib/Cloudflare/Workers/Sources/Vite.d.ts +1 -1
- package/lib/Cloudflare/Workers/Sources/Vite.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Sources/Vite.js +6 -4
- package/lib/Cloudflare/Workers/Sources/Vite.js.map +1 -1
- package/lib/Cloudflare/Workers/Telemetry.d.ts +113 -0
- package/lib/Cloudflare/Workers/Telemetry.d.ts.map +1 -0
- package/lib/Cloudflare/Workers/Telemetry.js +129 -0
- package/lib/Cloudflare/Workers/Telemetry.js.map +1 -0
- package/lib/Cloudflare/Workers/ViteBuildChildRunner.js +6 -1
- package/lib/Cloudflare/Workers/ViteBuildChildRunner.js.map +1 -1
- package/lib/Cloudflare/Workers/ViteChild.d.ts +2 -2
- package/lib/Cloudflare/Workers/ViteChild.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/ViteChild.js +19 -17
- package/lib/Cloudflare/Workers/ViteChild.js.map +1 -1
- package/lib/Cloudflare/Workers/ViteChild.shared.d.ts +1 -0
- package/lib/Cloudflare/Workers/ViteChild.shared.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/ViteChild.shared.js.map +1 -1
- package/lib/Cloudflare/Workers/ViteChildRunner.js +2 -1
- package/lib/Cloudflare/Workers/ViteChildRunner.js.map +1 -1
- package/lib/Cloudflare/Workers/Worker.d.ts +101 -52
- package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.js +91 -50
- package/lib/Cloudflare/Workers/Worker.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts +9 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js +23 -0
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts +6 -0
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerLoader.d.ts +30 -4
- package/lib/Cloudflare/Workers/WorkerLoader.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerLoader.js +36 -5
- package/lib/Cloudflare/Workers/WorkerLoader.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerProvider.js +52 -45
- package/lib/Cloudflare/Workers/WorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/cloudflare_workers.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/cloudflare_workers.js +4 -1
- 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 +84 -0
- package/lib/Cloudflare/Workflows/Workflow.d.ts.map +1 -1
- package/lib/Cloudflare/Workflows/Workflow.js +47 -0
- package/lib/Cloudflare/Workflows/Workflow.js.map +1 -1
- package/lib/Cloudflare/Workflows/WorkflowBridge.js +7 -4
- package/lib/Cloudflare/Workflows/WorkflowBridge.js.map +1 -1
- package/lib/Command/Command.d.ts +1 -1
- package/lib/Command/Command.d.ts.map +1 -1
- package/lib/Command/Command.js +2 -2
- package/lib/Command/Command.js.map +1 -1
- package/lib/Command/Dev.d.ts +5 -2
- package/lib/Command/Dev.d.ts.map +1 -1
- package/lib/Command/Dev.js +31 -7
- package/lib/Command/Dev.js.map +1 -1
- package/lib/Command/Providers.d.ts +1 -1
- package/lib/Command/Providers.d.ts.map +1 -1
- package/lib/Deploy.d.ts +1 -1
- package/lib/Deploy.d.ts.map +1 -1
- package/lib/Destroy.d.ts +1 -1
- package/lib/Destroy.d.ts.map +1 -1
- package/lib/Docker/BuildHash.d.ts +13 -0
- package/lib/Docker/BuildHash.d.ts.map +1 -1
- package/lib/Docker/BuildHash.js +53 -3
- package/lib/Docker/BuildHash.js.map +1 -1
- package/lib/Docker/Docker.d.ts +1 -1
- package/lib/Docker/Docker.d.ts.map +1 -1
- package/lib/Docker/Docker.js +1 -1
- package/lib/Docker/Docker.js.map +1 -1
- package/lib/Docker/Service.d.ts +7 -21
- package/lib/Docker/Service.d.ts.map +1 -1
- package/lib/Docker/Service.js +7 -21
- package/lib/Docker/Service.js.map +1 -1
- package/lib/Docker/ServiceImage.d.ts +4 -5
- package/lib/Docker/ServiceImage.d.ts.map +1 -1
- package/lib/Docker/ServiceImage.js.map +1 -1
- package/lib/Drift.d.ts +91 -0
- package/lib/Drift.d.ts.map +1 -0
- package/lib/{Sync.js → Drift.js} +98 -29
- package/lib/Drift.js.map +1 -0
- package/lib/Drizzle/Schema.d.ts.map +1 -1
- package/lib/Drizzle/Schema.js +5 -5
- package/lib/Drizzle/Schema.js.map +1 -1
- package/lib/Fly/App.d.ts +1 -1
- package/lib/Fly/App.d.ts.map +1 -1
- package/lib/Fly/AuthProvider.d.ts +6 -20
- package/lib/Fly/AuthProvider.d.ts.map +1 -1
- package/lib/Fly/AuthProvider.js +32 -124
- package/lib/Fly/AuthProvider.js.map +1 -1
- package/lib/Fly/Bucket.d.ts +1 -1
- package/lib/Fly/Bucket.d.ts.map +1 -1
- package/lib/Fly/Catalog.d.ts +1 -1
- package/lib/Fly/Catalog.d.ts.map +1 -1
- package/lib/Fly/CheckpointHttp.d.ts.map +1 -1
- package/lib/Fly/CheckpointHttp.js +2 -2
- package/lib/Fly/CheckpointHttp.js.map +1 -1
- package/lib/Fly/Credentials.d.ts +15 -6
- package/lib/Fly/Credentials.d.ts.map +1 -1
- package/lib/Fly/Credentials.js +25 -13
- package/lib/Fly/Credentials.js.map +1 -1
- package/lib/Fly/DecryptHttp.d.ts.map +1 -1
- package/lib/Fly/DecryptHttp.js +2 -2
- package/lib/Fly/DecryptHttp.js.map +1 -1
- package/lib/Fly/EncryptHttp.d.ts.map +1 -1
- package/lib/Fly/EncryptHttp.js +2 -2
- package/lib/Fly/EncryptHttp.js.map +1 -1
- package/lib/Fly/Environment.d.ts +1 -1
- package/lib/Fly/Environment.d.ts.map +1 -1
- package/lib/Fly/ExecHttp.d.ts.map +1 -1
- package/lib/Fly/ExecHttp.js +2 -2
- package/lib/Fly/ExecHttp.js.map +1 -1
- package/lib/Fly/GetSecretHttp.d.ts.map +1 -1
- package/lib/Fly/GetSecretHttp.js +2 -2
- package/lib/Fly/GetSecretHttp.js.map +1 -1
- package/lib/Fly/ListSecretsHttp.d.ts.map +1 -1
- package/lib/Fly/ListSecretsHttp.js +2 -2
- package/lib/Fly/ListSecretsHttp.js.map +1 -1
- package/lib/Fly/Machine.d.ts +65 -0
- package/lib/Fly/Machine.d.ts.map +1 -1
- package/lib/Fly/Machine.js +34 -19
- package/lib/Fly/Machine.js.map +1 -1
- package/lib/Fly/Postgres.d.ts +1 -1
- package/lib/Fly/Postgres.d.ts.map +1 -1
- package/lib/Fly/Providers.d.ts +1 -1
- package/lib/Fly/Providers.d.ts.map +1 -1
- package/lib/Fly/Providers.js +2 -2
- package/lib/Fly/Providers.js.map +1 -1
- package/lib/Fly/Redis.d.ts +1 -1
- package/lib/Fly/Redis.d.ts.map +1 -1
- package/lib/Fly/Service.d.ts +43 -0
- package/lib/Fly/Service.d.ts.map +1 -1
- package/lib/Fly/Service.js +44 -19
- package/lib/Fly/Service.js.map +1 -1
- package/lib/Fly/SignHttp.d.ts.map +1 -1
- package/lib/Fly/SignHttp.js +2 -2
- package/lib/Fly/SignHttp.js.map +1 -1
- package/lib/Fly/VerifyHttp.d.ts.map +1 -1
- package/lib/Fly/VerifyHttp.js +2 -2
- package/lib/Fly/VerifyHttp.js.map +1 -1
- package/lib/Fly/Volume.d.ts +8 -8
- package/lib/Fly/Volume.d.ts.map +1 -1
- package/lib/Fly/WriteSecretHttp.d.ts.map +1 -1
- package/lib/Fly/WriteSecretHttp.js +2 -2
- package/lib/Fly/WriteSecretHttp.js.map +1 -1
- package/lib/Fly/replicas.d.ts +12 -10
- package/lib/Fly/replicas.d.ts.map +1 -1
- package/lib/Fly/replicas.js +35 -0
- package/lib/Fly/replicas.js.map +1 -1
- package/lib/GitHub/AuthProvider.d.ts +20 -29
- package/lib/GitHub/AuthProvider.d.ts.map +1 -1
- package/lib/GitHub/AuthProvider.js +141 -75
- package/lib/GitHub/AuthProvider.js.map +1 -1
- package/lib/GitHub/Credentials.d.ts +2 -3
- package/lib/GitHub/Credentials.d.ts.map +1 -1
- package/lib/GitHub/Credentials.js +6 -10
- package/lib/GitHub/Credentials.js.map +1 -1
- package/lib/GitHub/Providers.d.ts +3 -3
- package/lib/GitHub/Providers.d.ts.map +1 -1
- package/lib/GitHub/Providers.js +4 -4
- package/lib/GitHub/Providers.js.map +1 -1
- package/lib/Hetzner/AuthProvider.d.ts +7 -20
- package/lib/Hetzner/AuthProvider.d.ts.map +1 -1
- package/lib/Hetzner/AuthProvider.js +42 -130
- package/lib/Hetzner/AuthProvider.js.map +1 -1
- package/lib/Hetzner/Catalog.d.ts +5 -5
- package/lib/Hetzner/Catalog.d.ts.map +1 -1
- package/lib/Hetzner/Credentials.d.ts +1 -3
- package/lib/Hetzner/Credentials.d.ts.map +1 -1
- package/lib/Hetzner/Credentials.js +4 -9
- package/lib/Hetzner/Credentials.js.map +1 -1
- package/lib/Hetzner/PlacementGroup.d.ts +1 -1
- package/lib/Hetzner/PlacementGroup.d.ts.map +1 -1
- package/lib/Hetzner/Providers.d.ts +1 -1
- package/lib/Hetzner/Providers.d.ts.map +1 -1
- package/lib/Hetzner/Providers.js +2 -2
- package/lib/Hetzner/Providers.js.map +1 -1
- package/lib/Hetzner/hosted.d.ts +1 -1
- package/lib/Interaction.d.ts +186 -0
- package/lib/Interaction.d.ts.map +1 -0
- package/lib/Interaction.js +149 -0
- package/lib/Interaction.js.map +1 -0
- package/lib/Kubernetes/ClusterAdapter.d.ts +4 -5
- package/lib/Kubernetes/ClusterAdapter.d.ts.map +1 -1
- package/lib/Kubernetes/ClusterAdapter.js.map +1 -1
- package/lib/Kubernetes/Deployment.d.ts +7 -21
- package/lib/Kubernetes/Deployment.d.ts.map +1 -1
- package/lib/Kubernetes/Deployment.js +7 -21
- package/lib/Kubernetes/Deployment.js.map +1 -1
- package/lib/Kubernetes/Job.d.ts +7 -21
- package/lib/Kubernetes/Job.d.ts.map +1 -1
- package/lib/Kubernetes/Job.js +7 -21
- package/lib/Kubernetes/Job.js.map +1 -1
- package/lib/Local/DevLog.d.ts +32 -0
- package/lib/Local/DevLog.d.ts.map +1 -0
- package/lib/Local/DevLog.js +114 -0
- package/lib/Local/DevLog.js.map +1 -0
- package/lib/Local/LocalProvider.d.ts +1 -1
- package/lib/Local/LocalProvider.d.ts.map +1 -1
- package/lib/Local/LocalProvider.js +2 -2
- package/lib/Local/LocalProvider.js.map +1 -1
- package/lib/Local/RpcServer.d.ts.map +1 -1
- package/lib/Local/RpcServer.js +10 -1
- package/lib/Local/RpcServer.js.map +1 -1
- package/lib/Local/RpcServerEnvironment.d.ts +2 -2
- package/lib/Local/RpcServerEnvironment.d.ts.map +1 -1
- package/lib/Local/RpcServerEnvironment.js +3 -2
- package/lib/Local/RpcServerEnvironment.js.map +1 -1
- package/lib/Local/RpcSpawner.d.ts +14 -5
- package/lib/Local/RpcSpawner.d.ts.map +1 -1
- package/lib/Local/RpcSpawner.js +105 -38
- package/lib/Local/RpcSpawner.js.map +1 -1
- package/lib/Neon/AuthProvider.d.ts +4 -13
- package/lib/Neon/AuthProvider.d.ts.map +1 -1
- package/lib/Neon/AuthProvider.js +24 -107
- package/lib/Neon/AuthProvider.js.map +1 -1
- package/lib/Neon/Credentials.d.ts +1 -3
- package/lib/Neon/Credentials.d.ts.map +1 -1
- package/lib/Neon/Credentials.js +4 -9
- package/lib/Neon/Credentials.js.map +1 -1
- package/lib/Neon/Providers.d.ts +1 -1
- package/lib/Neon/Providers.d.ts.map +1 -1
- package/lib/Neon/Providers.js +2 -2
- package/lib/Neon/Providers.js.map +1 -1
- package/lib/Nuke.d.ts +89 -0
- package/lib/Nuke.d.ts.map +1 -0
- package/lib/Nuke.js +265 -0
- package/lib/Nuke.js.map +1 -0
- package/lib/Plan.d.ts +27 -5
- package/lib/Plan.d.ts.map +1 -1
- package/lib/Plan.js +167 -21
- package/lib/Plan.js.map +1 -1
- package/lib/Planetscale/AuthProvider.d.ts +25 -37
- package/lib/Planetscale/AuthProvider.d.ts.map +1 -1
- package/lib/Planetscale/AuthProvider.js +267 -150
- package/lib/Planetscale/AuthProvider.js.map +1 -1
- package/lib/Planetscale/Credentials.d.ts +2 -3
- package/lib/Planetscale/Credentials.d.ts.map +1 -1
- package/lib/Planetscale/Credentials.js +16 -13
- package/lib/Planetscale/Credentials.js.map +1 -1
- package/lib/Planetscale/OAuthClient.d.ts +8 -52
- package/lib/Planetscale/OAuthClient.d.ts.map +1 -1
- package/lib/Planetscale/OAuthClient.js +18 -240
- package/lib/Planetscale/OAuthClient.js.map +1 -1
- package/lib/Planetscale/Providers.d.ts +1 -1
- package/lib/Planetscale/Providers.d.ts.map +1 -1
- package/lib/Planetscale/Providers.js +2 -2
- package/lib/Planetscale/Providers.js.map +1 -1
- package/lib/Planetscale/Util.d.ts +1 -1
- package/lib/Planetscale/Util.d.ts.map +1 -1
- package/lib/Prisma/AuthProvider.d.ts +7 -15
- package/lib/Prisma/AuthProvider.d.ts.map +1 -1
- package/lib/Prisma/AuthProvider.js +54 -121
- package/lib/Prisma/AuthProvider.js.map +1 -1
- package/lib/Prisma/Compute.d.ts +7 -21
- package/lib/Prisma/Compute.d.ts.map +1 -1
- package/lib/Prisma/Compute.js +7 -21
- package/lib/Prisma/Compute.js.map +1 -1
- package/lib/Prisma/PrismaEnvironment.d.ts +1 -2
- package/lib/Prisma/PrismaEnvironment.d.ts.map +1 -1
- package/lib/Prisma/PrismaEnvironment.js +3 -8
- package/lib/Prisma/PrismaEnvironment.js.map +1 -1
- package/lib/Prisma/Providers.d.ts +3 -3
- package/lib/Prisma/Providers.d.ts.map +1 -1
- package/lib/Prisma/Providers.js +7 -7
- package/lib/Prisma/Providers.js.map +1 -1
- package/lib/Provider.d.ts +10 -2
- package/lib/Provider.d.ts.map +1 -1
- package/lib/Provider.js +9 -10
- package/lib/Provider.js.map +1 -1
- package/lib/Railway/AuditLog.d.ts +2 -2
- package/lib/Railway/AuditLog.d.ts.map +1 -1
- package/lib/Railway/AuthProvider.d.ts +19 -19
- package/lib/Railway/AuthProvider.d.ts.map +1 -1
- package/lib/Railway/AuthProvider.js +193 -127
- package/lib/Railway/AuthProvider.js.map +1 -1
- package/lib/Railway/Bucket.js +2 -2
- package/lib/Railway/CloudAgent.js +2 -2
- package/lib/Railway/Credentials.d.ts +2 -5
- package/lib/Railway/Credentials.d.ts.map +1 -1
- package/lib/Railway/Credentials.js +5 -11
- package/lib/Railway/Credentials.js.map +1 -1
- package/lib/Railway/CustomDomain.js +3 -3
- package/lib/Railway/Function.js +6 -6
- package/lib/Railway/Group.js +2 -2
- package/lib/Railway/LoginSession.d.ts +3 -3
- package/lib/Railway/LoginSession.js +5 -5
- package/lib/Railway/Mongo.js +13 -13
- package/lib/Railway/MySQL.js +13 -13
- package/lib/Railway/Postgres.js +13 -13
- package/lib/Railway/PrivateNetwork.js +2 -2
- package/lib/Railway/Project.d.ts +3 -3
- package/lib/Railway/Project.d.ts.map +1 -1
- package/lib/Railway/Project.js +3 -3
- package/lib/Railway/ProjectEnvironment.js +3 -3
- package/lib/Railway/Providers.d.ts +1 -1
- package/lib/Railway/Providers.d.ts.map +1 -1
- package/lib/Railway/Providers.js +2 -2
- package/lib/Railway/Providers.js.map +1 -1
- package/lib/Railway/Redis.js +5 -5
- package/lib/Railway/Sandbox.d.ts +6 -6
- package/lib/Railway/Sandbox.js +5 -5
- package/lib/Railway/Service.d.ts +72 -1
- package/lib/Railway/Service.d.ts.map +1 -1
- package/lib/Railway/Service.js +42 -0
- package/lib/Railway/Service.js.map +1 -1
- package/lib/Railway/ServiceDomain.d.ts +28 -2
- package/lib/Railway/ServiceDomain.d.ts.map +1 -1
- package/lib/Railway/ServiceDomain.js +134 -17
- package/lib/Railway/ServiceDomain.js.map +1 -1
- package/lib/Railway/ServiceProvider.d.ts +2 -10
- package/lib/Railway/ServiceProvider.d.ts.map +1 -1
- package/lib/Railway/ServiceProvider.js +170 -64
- package/lib/Railway/ServiceProvider.js.map +1 -1
- package/lib/Railway/TcpProxy.js +2 -2
- package/lib/Railway/Template.js +2 -2
- package/lib/Railway/Usage.js +2 -2
- package/lib/Railway/Variable.js +2 -2
- package/lib/Railway/Volume.d.ts +1 -1
- package/lib/Railway/Volume.d.ts.map +1 -1
- package/lib/Railway/Volume.js +4 -4
- package/lib/Railway/VolumeBackup.d.ts +2 -2
- package/lib/Railway/VolumeBackup.js +8 -8
- package/lib/Railway/local-context.d.ts +125 -0
- package/lib/Railway/local-context.d.ts.map +1 -0
- package/lib/Railway/local-context.js +254 -0
- package/lib/Railway/local-context.js.map +1 -0
- package/lib/Report.d.ts +248 -0
- package/lib/Report.d.ts.map +1 -0
- package/lib/Report.js +18 -0
- package/lib/Report.js.map +1 -0
- package/lib/Stack.d.ts +7 -6
- package/lib/Stack.d.ts.map +1 -1
- package/lib/Stack.js +2 -4
- package/lib/Stack.js.map +1 -1
- package/lib/State/Export.d.ts +6 -4
- package/lib/State/Export.d.ts.map +1 -1
- package/lib/State/Export.js +13 -18
- package/lib/State/Export.js.map +1 -1
- package/lib/State/HttpStateStore.d.ts +1 -1
- package/lib/State/HttpStateStore.d.ts.map +1 -1
- package/lib/State/HttpStateStore.js +10 -6
- package/lib/State/HttpStateStore.js.map +1 -1
- package/lib/State/LocalState.d.ts.map +1 -1
- package/lib/State/LocalState.js +6 -13
- package/lib/State/LocalState.js.map +1 -1
- package/lib/State/Tree.d.ts +62 -0
- package/lib/State/Tree.d.ts.map +1 -0
- package/lib/State/Tree.js +166 -0
- package/lib/State/Tree.js.map +1 -0
- package/lib/State/index.d.ts +1 -0
- package/lib/State/index.d.ts.map +1 -1
- package/lib/State/index.js +1 -0
- package/lib/State/index.js.map +1 -1
- package/lib/Telemetry/Layer.d.ts +6 -0
- package/lib/Telemetry/Layer.d.ts.map +1 -1
- package/lib/Telemetry/Layer.js +16 -5
- package/lib/Telemetry/Layer.js.map +1 -1
- package/lib/Telemetry.d.ts +5 -0
- package/lib/Telemetry.d.ts.map +1 -1
- package/lib/Telemetry.js +6 -1
- package/lib/Telemetry.js.map +1 -1
- package/lib/Test/Core.d.ts +4 -3
- package/lib/Test/Core.d.ts.map +1 -1
- package/lib/Test/Core.js +5 -3
- package/lib/Test/Core.js.map +1 -1
- package/lib/UserFacingError.d.ts +26 -0
- package/lib/UserFacingError.d.ts.map +1 -0
- package/lib/UserFacingError.js +25 -0
- package/lib/UserFacingError.js.map +1 -0
- package/lib/Util/AtomicFile.d.ts +19 -0
- package/lib/Util/AtomicFile.d.ts.map +1 -0
- package/lib/Util/AtomicFile.js +22 -0
- package/lib/Util/AtomicFile.js.map +1 -0
- package/lib/Util/ConsoleSink.d.ts +4 -0
- package/lib/Util/ConsoleSink.d.ts.map +1 -0
- package/lib/Util/ConsoleSink.js +24 -0
- package/lib/Util/ConsoleSink.js.map +1 -0
- package/lib/Util/LineBuffer.d.ts +9 -0
- package/lib/Util/LineBuffer.d.ts.map +1 -0
- package/lib/Util/LineBuffer.js +23 -0
- package/lib/Util/LineBuffer.js.map +1 -0
- package/lib/Util/Memoize.d.ts +20 -0
- package/lib/Util/Memoize.d.ts.map +1 -0
- package/lib/Util/Memoize.js +38 -0
- package/lib/Util/Memoize.js.map +1 -0
- package/lib/Util/Node.d.ts +22 -5
- package/lib/Util/Node.d.ts.map +1 -1
- package/lib/Util/Node.js +30 -10
- package/lib/Util/Node.js.map +1 -1
- package/lib/Util/PlatformServices.d.ts +6 -2
- package/lib/Util/PlatformServices.d.ts.map +1 -1
- package/lib/Util/PlatformServices.js +6 -2
- package/lib/Util/PlatformServices.js.map +1 -1
- package/lib/Util/ResourceOutput.d.ts +30 -0
- package/lib/Util/ResourceOutput.d.ts.map +1 -0
- package/lib/Util/ResourceOutput.js +60 -0
- package/lib/Util/ResourceOutput.js.map +1 -0
- package/lib/Util/Terminal.d.ts +23 -0
- package/lib/Util/Terminal.d.ts.map +1 -0
- package/lib/Util/Terminal.js +57 -0
- package/lib/Util/Terminal.js.map +1 -0
- package/lib/Util/Theme.d.ts +123 -0
- package/lib/Util/Theme.d.ts.map +1 -0
- package/lib/Util/Theme.js +133 -0
- package/lib/Util/Theme.js.map +1 -0
- package/lib/Util/interactive.d.ts +17 -12
- package/lib/Util/interactive.d.ts.map +1 -1
- package/lib/Util/interactive.js +81 -13
- package/lib/Util/interactive.js.map +1 -1
- package/lib/Util/scc.d.ts +11 -3
- package/lib/Util/scc.d.ts.map +1 -1
- package/lib/Util/scc.js +35 -22
- package/lib/Util/scc.js.map +1 -1
- package/lib/Util/tarGzip.d.ts +3 -1
- package/lib/Util/tarGzip.d.ts.map +1 -1
- package/lib/Util/tarGzip.js +15 -5
- package/lib/Util/tarGzip.js.map +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/package.json +40 -38
- package/src/AWS/AGENTS.md +1 -1
- package/src/AWS/AMP/Scraper.ts +1 -1
- package/src/AWS/AppRunner/Service.ts +11 -27
- package/src/AWS/Assets.ts +2 -2
- package/src/AWS/AuthProvider.ts +748 -429
- package/src/AWS/Batch/JobDefinition.ts +11 -27
- package/src/AWS/EC2/Instance.ts +12 -28
- package/src/AWS/EC2/InternetGateway.ts +1 -1
- package/src/AWS/EC2/NatGateway.ts +1 -1
- package/src/AWS/EC2/NetworkInterface.ts +1 -1
- package/src/AWS/EC2/NetworkInterfaceAttachment.ts +1 -1
- package/src/AWS/EC2/RouteTable.ts +1 -1
- package/src/AWS/EC2/RouteTableAssociation.ts +1 -1
- package/src/AWS/EC2/Snapshot.ts +1 -1
- package/src/AWS/EC2/Subnet.ts +1 -1
- package/src/AWS/EC2/Volume.ts +1 -1
- package/src/AWS/EC2/VolumeAttachment.ts +1 -1
- package/src/AWS/EC2/Vpc.ts +1 -1
- package/src/AWS/EC2/VpcEndpoint.ts +1 -1
- package/src/AWS/EC2/hosted.ts +5 -6
- package/src/AWS/ECR/ImageSource.ts +4 -5
- package/src/AWS/ECS/Service.ts +7 -21
- package/src/AWS/ECS/Task.ts +7 -21
- package/src/AWS/ElastiCache/CacheCluster.ts +323 -0
- package/src/AWS/ElastiCache/ConnectCacheCluster.ts +58 -0
- package/src/AWS/ElastiCache/ConnectCacheClusterHttp.ts +77 -0
- package/src/AWS/ElastiCache/ConnectReplicationGroup.ts +62 -0
- package/src/AWS/ElastiCache/ConnectReplicationGroupHttp.ts +110 -0
- package/src/AWS/ElastiCache/ReplicationGroup.ts +594 -0
- package/src/AWS/ElastiCache/SubnetGroup.ts +208 -0
- package/src/AWS/ElastiCache/index.ts +7 -0
- package/src/AWS/ElastiCache/internal.ts +36 -0
- package/src/AWS/Environment.ts +15 -48
- package/src/AWS/IAM/actions.generated.ts +1 -1
- package/src/AWS/IdentityCenter/AccountAssignment.ts +7 -0
- package/src/AWS/Lambda/Function.ts +26 -28
- package/src/AWS/Lambda/MicrovmImage.ts +12 -28
- package/src/AWS/Lambda/MicrovmProvider.ts +1 -1
- package/src/AWS/Lambda/NetworkConnector.ts +1 -1
- package/src/AWS/Local/DevWatchProvider.ts +10 -1
- package/src/AWS/Organizations/Account.ts +18 -10
- package/src/AWS/Organizations/DelegatedAdministrator.ts +7 -7
- package/src/AWS/Organizations/Organization.ts +3 -5
- package/src/AWS/Organizations/common.ts +17 -0
- package/src/AWS/Providers.ts +12 -0
- package/src/AWS/S3/Bucket.ts +1 -1
- package/src/Alchemist/Errors.ts +36 -0
- package/src/Alchemist/Progress.ts +175 -0
- package/src/Alchemist/Runtime.ts +40 -0
- package/src/Alchemist/Session.ts +460 -0
- package/src/Alchemist/index.ts +24 -0
- package/src/Alchemist/routes/aws.ts +88 -0
- package/src/Alchemist/routes/cloudflare.ts +188 -0
- package/src/Alchemist/routes/cloudflareToken.ts +215 -0
- package/src/Alchemist/routes/drift.ts +94 -0
- package/src/Alchemist/routes/logs.ts +185 -0
- package/src/Alchemist/routes/nuke.ts +146 -0
- package/src/Alchemist/routes/profile.ts +427 -0
- package/src/Alchemist/routes/provider.ts +107 -0
- package/src/Alchemist/routes/stack.ts +137 -0
- package/src/Alchemist/routes/state.ts +77 -0
- package/src/Apply.ts +312 -173
- package/src/Auth/AuthProvider.ts +416 -158
- package/src/Auth/BrowserOAuth.ts +68 -0
- package/src/Auth/Credentials.ts +155 -46
- package/src/Auth/CredentialsCache.ts +57 -0
- package/src/Auth/Demand.ts +208 -83
- package/src/Auth/Env.ts +38 -14
- package/src/Auth/Inspect.ts +129 -0
- package/src/Auth/Lock.ts +26 -11
- package/src/Auth/OAuthFlow.ts +551 -0
- package/src/Auth/Paths.ts +30 -0
- package/src/Auth/Profile.ts +768 -164
- package/src/Auth/Resolve.ts +136 -0
- package/src/Auth/StoredAuthProvider.ts +291 -0
- package/src/Auth/index.ts +1 -0
- package/src/Axiom/AuthProvider.ts +112 -314
- package/src/Axiom/Credentials.ts +5 -13
- package/src/Axiom/Providers.ts +3 -3
- package/src/Bundle/Bundle.ts +3 -5
- package/src/Cli/CliKit/CliKit.ts +183 -0
- package/src/Cli/CliKit/index.ts +50 -0
- package/src/Cli/CliKit/interaction.ts +19 -0
- package/src/Cli/CliKit/layer.ts +50 -0
- package/src/Cli/DevOptions.ts +19 -0
- package/src/Cli/Format.ts +31 -0
- package/src/Cli/GlobalLog.ts +147 -0
- package/src/Cli/LoggingCli.ts +312 -108
- package/src/Cli/ModeTag.ts +1 -1
- package/src/Cli/NamespaceTree.ts +94 -21
- package/src/Cli/PlainCliFormatter.ts +75 -0
- package/src/Cli/PropertyDiff.ts +229 -0
- package/src/Cli/checkVersion.ts +19 -6
- package/src/Cli/commands/aws.ts +67 -100
- package/src/Cli/commands/cloudflare.ts +195 -435
- package/src/Cli/commands/compat.ts +25 -0
- package/src/Cli/commands/confirm.ts +46 -0
- package/src/Cli/commands/deploy.ts +225 -212
- package/src/Cli/commands/dev.ts +72 -34
- package/src/Cli/commands/drift.ts +107 -0
- package/src/Cli/commands/errors.ts +162 -0
- package/src/Cli/commands/flags.ts +199 -0
- package/src/Cli/commands/instrument.ts +18 -0
- package/src/Cli/commands/logs.ts +125 -143
- package/src/Cli/commands/nuke.ts +138 -811
- package/src/Cli/commands/profile/commands.ts +482 -0
- package/src/Cli/commands/profile/flows.ts +218 -0
- package/src/Cli/commands/profile/hub.ts +191 -0
- package/src/Cli/commands/profile/index.ts +1 -0
- package/src/Cli/commands/provider.ts +63 -0
- package/src/Cli/commands/render.ts +121 -0
- package/src/Cli/commands/state.ts +250 -387
- package/src/Cli/components/types.ts +141 -0
- package/src/Cli/components/ui/Data.tsx +44 -0
- package/src/Cli/components/ui/Environment.tsx +86 -0
- package/src/Cli/components/ui/Feedback.tsx +269 -0
- package/src/Cli/components/ui/Interactive.tsx +1062 -0
- package/src/Cli/components/ui/Layout.tsx +252 -0
- package/src/Cli/components/ui/Live.tsx +131 -0
- package/src/Cli/components/ui/ProgressBar.tsx +57 -0
- package/src/Cli/components/ui/Transcript.tsx +42 -0
- package/src/Cli/components/ui/Typography.tsx +83 -0
- package/src/Cli/components/ui/index.ts +68 -0
- package/src/Cli/components/view/ApprovePlan.tsx +101 -0
- package/src/Cli/components/view/Help.tsx +381 -0
- package/src/Cli/components/view/Logo.tsx +168 -0
- package/src/Cli/components/view/Nuke.tsx +258 -0
- package/src/Cli/components/view/PlanDecision.tsx +80 -0
- package/src/Cli/components/view/PlanRow.tsx +39 -0
- package/src/Cli/components/view/PlanTree.ts +354 -0
- package/src/Cli/components/view/PlanView.tsx +825 -0
- package/src/Cli/components/view/Profile.tsx +446 -0
- package/src/Cli/components/view/ProfileDashboard.tsx +929 -0
- package/src/Cli/components/view/Prompts.tsx +793 -0
- package/src/Cli/components/view/Runtime.tsx +975 -0
- package/src/Cli/components/view/SigilCli.tsx +186 -0
- package/src/Cli/components/view/StackOutputs.tsx +38 -0
- package/src/Cli/components/view/StateExplorer.tsx +1179 -0
- package/src/Cli/components/view/statusStyle.ts +97 -0
- package/src/Cli/components/view/usePlanPresentation.ts +82 -0
- package/src/Cli/components/view/usePlanViewport.ts +172 -0
- package/src/Cli/exec.ts +278 -32
- package/src/Cli/main.ts +189 -42
- package/src/Cli/selectCli.ts +30 -15
- package/src/Cloudflare/ApiToken/UserApiToken.ts +1 -1
- package/src/Cloudflare/Auth/AuthConfig.ts +117 -0
- package/src/Cloudflare/Auth/AuthProvider.ts +712 -608
- package/src/Cloudflare/Auth/OAuthClient.ts +40 -366
- package/src/Cloudflare/Auth/OAuthScopes.ts +921 -0
- package/src/Cloudflare/Auth/TokenPolicy.ts +79 -0
- package/src/Cloudflare/CloudflareEnvironment.ts +7 -17
- package/src/Cloudflare/Containers/Container.ts +12 -24
- package/src/Cloudflare/Containers/ContainerApplication.ts +12 -27
- package/src/Cloudflare/Credentials.ts +18 -72
- package/src/Cloudflare/EdgeSession.ts +2 -3
- package/src/Cloudflare/Logs.ts +16 -10
- package/src/Cloudflare/Pages/Project.ts +1 -1
- package/src/Cloudflare/Providers.ts +2 -2
- package/src/Cloudflare/StateStore/Api.ts +2 -2
- package/src/Cloudflare/StateStore/CredentialsFile.ts +11 -6
- package/src/Cloudflare/StateStore/State.ts +247 -194
- package/src/Cloudflare/Vectorize/SearchIndexHttpClient.ts +2 -2
- package/src/Cloudflare/Website/Nextjs.ts +4 -15
- package/src/Cloudflare/Website/Vocs.ts +3 -7
- package/src/Cloudflare/Workers/Assets.ts +106 -38
- package/src/Cloudflare/Workers/BrowserHttpClient.ts +10 -3
- package/src/Cloudflare/Workers/CloudflareTracer.ts +113 -0
- package/src/Cloudflare/Workers/Compatibility.ts +37 -7
- package/src/Cloudflare/Workers/DurableObject.ts +50 -4
- package/src/Cloudflare/Workers/DurableObjectBridge.ts +8 -0
- package/src/Cloudflare/Workers/DurableObjectState.ts +46 -9
- package/src/Cloudflare/Workers/DurableObjectStorage.ts +25 -12
- package/src/Cloudflare/Workers/LocalWorkerProvider.ts +172 -58
- package/src/Cloudflare/Workers/RpcWorker.ts +44 -18
- package/src/Cloudflare/Workers/Source.ts +9 -1
- package/src/Cloudflare/Workers/Sources/Python.ts +18 -12
- package/src/Cloudflare/Workers/Sources/Rolldown.ts +1 -1
- package/src/Cloudflare/Workers/Sources/Vite.ts +42 -34
- package/src/Cloudflare/Workers/Telemetry.ts +170 -0
- package/src/Cloudflare/Workers/ViteBuildChildRunner.ts +6 -1
- package/src/Cloudflare/Workers/ViteChild.shared.ts +1 -0
- package/src/Cloudflare/Workers/ViteChild.ts +21 -19
- package/src/Cloudflare/Workers/ViteChildRunner.ts +2 -1
- package/src/Cloudflare/Workers/Worker.ts +101 -50
- package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +29 -0
- package/src/Cloudflare/Workers/WorkerLoader.ts +40 -8
- package/src/Cloudflare/Workers/WorkerProvider.ts +64 -29
- package/src/Cloudflare/Workers/cloudflare_workers.ts +5 -1
- package/src/Cloudflare/Workers/index.ts +1 -0
- package/src/Cloudflare/Workflows/Workflow.ts +105 -0
- package/src/Cloudflare/Workflows/WorkflowBridge.ts +5 -3
- package/src/Command/Command.ts +11 -3
- package/src/Command/Dev.ts +33 -8
- package/src/Docker/BuildHash.ts +75 -8
- package/src/Docker/Docker.ts +7 -2
- package/src/Docker/Service.ts +7 -21
- package/src/Docker/ServiceImage.ts +4 -5
- package/src/{Sync.ts → Drift.ts} +161 -59
- package/src/Drizzle/Schema.ts +5 -7
- package/src/Fly/AuthProvider.ts +44 -232
- package/src/Fly/CheckpointHttp.ts +5 -2
- package/src/Fly/Credentials.ts +29 -16
- package/src/Fly/DecryptHttp.ts +5 -2
- package/src/Fly/EncryptHttp.ts +5 -2
- package/src/Fly/ExecHttp.ts +5 -2
- package/src/Fly/GetSecretHttp.ts +5 -2
- package/src/Fly/ListSecretsHttp.ts +5 -2
- package/src/Fly/Machine.ts +67 -20
- package/src/Fly/Providers.ts +2 -2
- package/src/Fly/Service.ts +44 -20
- package/src/Fly/SignHttp.ts +5 -2
- package/src/Fly/VerifyHttp.ts +5 -2
- package/src/Fly/WriteSecretHttp.ts +5 -2
- package/src/Fly/replicas.ts +47 -1
- package/src/GitHub/AuthProvider.ts +225 -143
- package/src/GitHub/Credentials.ts +6 -13
- package/src/GitHub/Providers.ts +4 -4
- package/src/Hetzner/AuthProvider.ts +50 -238
- package/src/Hetzner/Credentials.ts +4 -12
- package/src/Hetzner/Providers.ts +2 -2
- package/src/Interaction.ts +354 -0
- package/src/Kubernetes/ClusterAdapter.ts +4 -5
- package/src/Kubernetes/Deployment.ts +7 -21
- package/src/Kubernetes/Job.ts +7 -21
- package/src/Local/DevLog.ts +135 -0
- package/src/Local/LocalProvider.ts +3 -3
- package/src/Local/RpcServer.ts +11 -0
- package/src/Local/RpcServerEnvironment.ts +3 -2
- package/src/Local/RpcSpawner.ts +161 -78
- package/src/Neon/AuthProvider.ts +31 -203
- package/src/Neon/Credentials.ts +4 -12
- package/src/Neon/Providers.ts +2 -2
- package/src/Nuke.ts +463 -0
- package/src/Plan.ts +920 -708
- package/src/Planetscale/AuthProvider.ts +397 -324
- package/src/Planetscale/Credentials.ts +21 -19
- package/src/Planetscale/OAuthClient.ts +34 -328
- package/src/Planetscale/Providers.ts +2 -2
- package/src/Planetscale/Util.ts +1 -1
- package/src/Prisma/AuthProvider.ts +62 -240
- package/src/Prisma/Compute.ts +7 -21
- package/src/Prisma/PrismaEnvironment.ts +6 -14
- package/src/Prisma/Providers.ts +7 -7
- package/src/Provider.ts +12 -13
- package/src/Railway/AuthProvider.ts +291 -235
- package/src/Railway/Bucket.ts +6 -6
- package/src/Railway/CloudAgent.ts +4 -4
- package/src/Railway/Credentials.ts +5 -14
- package/src/Railway/CustomDomain.ts +5 -5
- package/src/Railway/Function.ts +10 -10
- package/src/Railway/Group.ts +2 -2
- package/src/Railway/LoginSession.ts +5 -5
- package/src/Railway/Mongo.ts +19 -19
- package/src/Railway/MySQL.ts +19 -19
- package/src/Railway/Postgres.ts +19 -19
- package/src/Railway/PrivateNetwork.ts +2 -2
- package/src/Railway/Project.ts +7 -7
- package/src/Railway/ProjectEnvironment.ts +7 -7
- package/src/Railway/Providers.ts +2 -2
- package/src/Railway/Redis.ts +9 -9
- package/src/Railway/Sandbox.ts +10 -10
- package/src/Railway/Service.ts +72 -1
- package/src/Railway/ServiceDomain.ts +253 -27
- package/src/Railway/ServiceProvider.ts +234 -87
- package/src/Railway/TcpProxy.ts +4 -4
- package/src/Railway/Template.ts +12 -12
- package/src/Railway/Usage.ts +2 -2
- package/src/Railway/Variable.ts +2 -2
- package/src/Railway/Volume.ts +4 -4
- package/src/Railway/VolumeBackup.ts +11 -11
- package/src/Railway/local-context.ts +333 -0
- package/src/Report.ts +365 -0
- package/src/Stack.ts +12 -8
- package/src/State/Export.ts +28 -47
- package/src/State/HttpStateStore.ts +15 -8
- package/src/State/LocalState.ts +6 -16
- package/src/State/Tree.ts +277 -0
- package/src/State/index.ts +1 -0
- package/src/Telemetry/Layer.ts +16 -5
- package/src/Telemetry.ts +6 -1
- package/src/Test/Core.ts +10 -4
- package/src/UserFacingError.ts +35 -0
- package/src/Util/AtomicFile.ts +36 -0
- package/src/Util/ConsoleSink.ts +23 -0
- package/src/Util/LineBuffer.ts +20 -0
- package/src/Util/Memoize.ts +48 -0
- package/src/Util/Node.ts +35 -14
- package/src/Util/PlatformServices.ts +11 -1
- package/src/Util/ResourceOutput.ts +77 -0
- package/src/Util/Terminal.ts +81 -0
- package/src/Util/Theme.ts +150 -0
- package/src/Util/interactive.ts +103 -16
- package/src/Util/scc.ts +43 -23
- package/src/Util/tarGzip.ts +33 -5
- package/src/index.ts +4 -2
- package/lib/Cli/Cli.d.ts +0 -21
- package/lib/Cli/Cli.d.ts.map +0 -1
- package/lib/Cli/Cli.js +0 -5
- package/lib/Cli/Cli.js.map +0 -1
- package/lib/Cli/Event.d.ts +0 -29
- package/lib/Cli/Event.d.ts.map +0 -1
- package/lib/Cli/Event.js +0 -1
- package/lib/Cli/Event.js.map +0 -1
- package/lib/Cli/commands/_shared.d.ts +0 -138
- package/lib/Cli/commands/_shared.d.ts.map +0 -1
- package/lib/Cli/commands/_shared.js +0 -298
- package/lib/Cli/commands/_shared.js.map +0 -1
- package/lib/Cli/commands/login.d.ts +0 -14
- package/lib/Cli/commands/login.d.ts.map +0 -1
- package/lib/Cli/commands/login.js +0 -115
- package/lib/Cli/commands/login.js.map +0 -1
- package/lib/Cli/commands/profile.d.ts +0 -25
- package/lib/Cli/commands/profile.d.ts.map +0 -1
- package/lib/Cli/commands/profile.js +0 -83
- package/lib/Cli/commands/profile.js.map +0 -1
- package/lib/Cli/commands/sync.d.ts +0 -22
- package/lib/Cli/commands/sync.d.ts.map +0 -1
- package/lib/Cli/commands/sync.js +0 -64
- package/lib/Cli/commands/sync.js.map +0 -1
- package/lib/Cli/commands/tail.d.ts +0 -9
- package/lib/Cli/commands/tail.d.ts.map +0 -1
- package/lib/Cli/commands/tail.js +0 -97
- package/lib/Cli/commands/tail.js.map +0 -1
- package/lib/Cli/tui/InkCLI.d.ts +0 -4
- package/lib/Cli/tui/InkCLI.d.ts.map +0 -1
- package/lib/Cli/tui/InkCLI.js +0 -53
- package/lib/Cli/tui/InkCLI.js.map +0 -1
- package/lib/Cli/tui/components/ApprovePlan.d.ts +0 -9
- package/lib/Cli/tui/components/ApprovePlan.d.ts.map +0 -1
- package/lib/Cli/tui/components/ApprovePlan.js +0 -21
- package/lib/Cli/tui/components/ApprovePlan.js.map +0 -1
- package/lib/Cli/tui/components/Nuke.d.ts +0 -36
- package/lib/Cli/tui/components/Nuke.d.ts.map +0 -1
- package/lib/Cli/tui/components/Nuke.js +0 -132
- package/lib/Cli/tui/components/Nuke.js.map +0 -1
- package/lib/Cli/tui/components/Plan.d.ts +0 -8
- package/lib/Cli/tui/components/Plan.d.ts.map +0 -1
- package/lib/Cli/tui/components/Plan.js +0 -87
- package/lib/Cli/tui/components/Plan.js.map +0 -1
- package/lib/Cli/tui/components/PlanProgress.d.ts +0 -55
- package/lib/Cli/tui/components/PlanProgress.d.ts.map +0 -1
- package/lib/Cli/tui/components/PlanProgress.js +0 -292
- package/lib/Cli/tui/components/PlanProgress.js.map +0 -1
- package/lib/Sync.d.ts +0 -109
- package/lib/Sync.d.ts.map +0 -1
- package/lib/Sync.js.map +0 -1
- package/lib/Util/Clank.d.ts +0 -45
- package/lib/Util/Clank.d.ts.map +0 -1
- package/lib/Util/Clank.js +0 -79
- package/lib/Util/Clank.js.map +0 -1
- package/src/Cli/Cli.ts +0 -23
- package/src/Cli/Event.ts +0 -51
- package/src/Cli/commands/_shared.ts +0 -498
- package/src/Cli/commands/login.ts +0 -169
- package/src/Cli/commands/profile.ts +0 -132
- package/src/Cli/commands/sync.ts +0 -123
- package/src/Cli/commands/tail.ts +0 -155
- package/src/Cli/tui/InkCLI.tsx +0 -69
- package/src/Cli/tui/components/ApprovePlan.tsx +0 -44
- package/src/Cli/tui/components/Nuke.tsx +0 -273
- package/src/Cli/tui/components/Plan.tsx +0 -211
- package/src/Cli/tui/components/PlanProgress.tsx +0 -455
- package/src/Util/Clank.ts +0 -103
package/src/Cli/commands/nuke.ts
CHANGED
|
@@ -1,388 +1,106 @@
|
|
|
1
|
+
import * as Clock from "effect/Clock";
|
|
1
2
|
import * as Console from "effect/Console";
|
|
2
|
-
import
|
|
3
|
+
import * as Duration from "effect/Duration";
|
|
3
4
|
import * as Effect from "effect/Effect";
|
|
4
|
-
import * as
|
|
5
|
-
import * as Logger from "effect/Logger";
|
|
6
|
-
import { MinimumLogLevel } from "effect/References";
|
|
7
|
-
import * as Schedule from "effect/Schedule";
|
|
5
|
+
import * as Option from "effect/Option";
|
|
8
6
|
import { Command, Flag } from "effect/unstable/cli";
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
import * as Nuke from "../../Alchemist/routes/nuke.ts";
|
|
8
|
+
import * as CliKit from "../../Cli/CliKit/index.ts";
|
|
9
|
+
import { formatElapsed } from "../Format.ts";
|
|
10
|
+
import {
|
|
11
|
+
renderNukeScan,
|
|
12
|
+
renderNukeDelete,
|
|
13
|
+
reviewNuke,
|
|
14
|
+
} from "../components/view/Nuke.tsx";
|
|
15
|
+
import { exitDeclined, UserInputError } from "./errors.ts";
|
|
18
16
|
import {
|
|
19
|
-
|
|
20
|
-
dryRun,
|
|
17
|
+
configPath,
|
|
21
18
|
envFile,
|
|
22
|
-
|
|
19
|
+
optionalConfig,
|
|
23
20
|
profile,
|
|
24
|
-
|
|
21
|
+
resolveConfig,
|
|
25
22
|
yes,
|
|
26
|
-
} from "./
|
|
23
|
+
} from "./flags.ts";
|
|
24
|
+
import { instrumentCommand } from "./instrument.ts";
|
|
27
25
|
|
|
28
26
|
const includeFlag = Flag.string("include").pipe(
|
|
29
|
-
Flag.withDescription(
|
|
30
|
-
"Glob of provider IDs to include (e.g. 'Cloudflare.*' or 'Cloudflare.Worker'). " +
|
|
31
|
-
"Repeatable; when omitted, every provider is included.",
|
|
32
|
-
),
|
|
27
|
+
Flag.withDescription("Glob of provider IDs to include (repeatable)"),
|
|
33
28
|
Flag.atLeast(0),
|
|
34
29
|
);
|
|
35
|
-
|
|
36
30
|
const excludeFlag = Flag.string("exclude").pipe(
|
|
37
|
-
Flag.withDescription(
|
|
38
|
-
"Glob of provider IDs to exclude (applied after --include). Repeatable.",
|
|
39
|
-
),
|
|
31
|
+
Flag.withDescription("Glob of provider IDs to exclude (repeatable)"),
|
|
40
32
|
Flag.atLeast(0),
|
|
41
33
|
);
|
|
42
|
-
|
|
43
34
|
const filterFlag = Flag.string("filter").pipe(
|
|
44
35
|
Flag.withDescription(
|
|
45
|
-
"JavaScript expression evaluated with
|
|
46
|
-
'(e.g. \'resource.Type === "Cloudflare.Worker" && ' +
|
|
47
|
-
'resource.workerName.startsWith("alchemy-")\'). Any resource for which ' +
|
|
48
|
-
"an expression is truthy is SPARED. Repeatable.",
|
|
36
|
+
"JavaScript expression evaluated with resource in scope; matching resources are excluded from deletion (repeatable)",
|
|
49
37
|
),
|
|
50
38
|
Flag.atLeast(0),
|
|
51
39
|
);
|
|
52
|
-
|
|
53
|
-
const verboseFlag = Flag.boolean("verbose").pipe(
|
|
54
|
-
Flag.withAlias("v"),
|
|
55
|
-
Flag.withDescription(
|
|
56
|
-
"List every individual resource that will be deleted, not just per-provider counts.",
|
|
57
|
-
),
|
|
58
|
-
Flag.withDefault(false),
|
|
59
|
-
);
|
|
60
|
-
|
|
61
40
|
const concurrencyFlag = Flag.integer("concurrency").pipe(
|
|
62
41
|
Flag.withDescription(
|
|
63
|
-
"
|
|
64
|
-
"provider are always deleted concurrently). Use 0 for unbounded. " +
|
|
65
|
-
"Default: 16 — unbounded tends to be slower because it triggers " +
|
|
66
|
-
"provider-side rate limiting and retry backoff.",
|
|
42
|
+
"Maximum providers processed in parallel; 0 is unbounded",
|
|
67
43
|
),
|
|
68
44
|
Flag.withDefault(16),
|
|
69
|
-
Flag.map((
|
|
45
|
+
Flag.map((value): number | "unbounded" => (value <= 0 ? "unbounded" : value)),
|
|
70
46
|
);
|
|
71
|
-
|
|
72
47
|
const timeoutFlag = Flag.integer("timeout").pipe(
|
|
73
|
-
Flag.withDescription(
|
|
74
|
-
"Per-provider timeout (seconds) for each list/delete call, so one slow or " +
|
|
75
|
-
"hanging provider can't stall the whole run. Default: 120.",
|
|
76
|
-
),
|
|
48
|
+
Flag.withDescription("Per-provider timeout in seconds"),
|
|
77
49
|
Flag.withDefault(120),
|
|
50
|
+
Flag.map(Duration.seconds),
|
|
78
51
|
);
|
|
79
|
-
|
|
80
52
|
const independentFlag = Flag.boolean("independent").pipe(
|
|
81
|
-
Flag.withDescription(
|
|
82
|
-
"Delete every resource independently instead of in coordinated passes. " +
|
|
83
|
-
"In pass mode a single slow or hanging delete delays the next pass for " +
|
|
84
|
-
"everything; with --independent each resource retries its own delete " +
|
|
85
|
-
"with backoff, in parallel, until it succeeds or --retries is " +
|
|
86
|
-
"exhausted. Dependency violations resolve naturally as the blocking " +
|
|
87
|
-
"resources are deleted concurrently.",
|
|
88
|
-
),
|
|
53
|
+
Flag.withDescription("Retry each resource independently"),
|
|
89
54
|
Flag.withDefault(false),
|
|
90
55
|
);
|
|
91
|
-
|
|
92
56
|
const retriesFlag = Flag.integer("retries").pipe(
|
|
93
|
-
Flag.withDescription(
|
|
94
|
-
"With --independent: retries per resource after the initial delete " +
|
|
95
|
-
"attempt (each attempt still bounded by --timeout). Default: 10.",
|
|
96
|
-
),
|
|
57
|
+
Flag.withDescription("Independent retries per resource"),
|
|
97
58
|
Flag.withDefault(10),
|
|
98
59
|
);
|
|
99
|
-
|
|
100
60
|
const localFlag = Flag.boolean("local").pipe(
|
|
101
|
-
Flag.withDescription(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"touched.",
|
|
107
|
-
),
|
|
61
|
+
Flag.withDescription("Target only locally emulated providers"),
|
|
62
|
+
Flag.withDefault(false),
|
|
63
|
+
);
|
|
64
|
+
const dryRunFlag = Flag.boolean("dry-run").pipe(
|
|
65
|
+
Flag.withDescription("Scan and show targets without deleting"),
|
|
108
66
|
Flag.withDefault(false),
|
|
109
67
|
);
|
|
110
68
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Walk the built provider context and extract every resource provider keyed
|
|
138
|
-
* by its provider ID (e.g. `"Cloudflare.Worker"`). Providers live inside a
|
|
139
|
-
* {@link ProviderCollectionService}; we also pick up any directly-registered
|
|
140
|
-
* provider whose key looks like a resource type. Only providers exposing a
|
|
141
|
-
* `list` method are returned — policies and bindings are skipped.
|
|
142
|
-
*
|
|
143
|
-
* With `mode: "local"` only providers registered via `ProviderLayer.dual`
|
|
144
|
-
* (the ones carrying {@link ProviderService.modes}) are returned, resolving
|
|
145
|
-
* to their local variant — an AWS resource emulated by floci, a Cloudflare
|
|
146
|
-
* resource emulated by the local runtime. Mode-agnostic providers are
|
|
147
|
-
* deliberately dropped: they have a single implementation that talks to the
|
|
148
|
-
* real cloud, so including them would make `--local` delete live
|
|
149
|
-
* infrastructure.
|
|
150
|
-
*/
|
|
151
|
-
const discoverProviders = (
|
|
152
|
-
context: Context.Context<never>,
|
|
153
|
-
mode: ProviderMode,
|
|
154
|
-
): DiscoveredProvider[] => {
|
|
155
|
-
// Resources opted out of teardown (`nuke.singleton` settings whose delete
|
|
156
|
-
// only resets, or `nuke.skip` resources that can never be deleted) would be
|
|
157
|
-
// re-enumerated and "re-deleted" every run — skip them.
|
|
158
|
-
const isNukeable = (p: ProviderService) =>
|
|
159
|
-
!p.nuke?.singleton && !p.nuke?.skip;
|
|
160
|
-
const out = new Map<string, ProviderService>();
|
|
161
|
-
for (const [key, value] of context.mapUnsafe.entries()) {
|
|
162
|
-
if (isProviderCollection(value)) {
|
|
163
|
-
for (const [id, provider] of Object.entries(value.providers)) {
|
|
164
|
-
if (
|
|
165
|
-
provider &&
|
|
166
|
-
typeof provider.list === "function" &&
|
|
167
|
-
isNukeable(provider)
|
|
168
|
-
) {
|
|
169
|
-
out.set(id, provider);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
} else if (
|
|
173
|
-
typeof key === "string" &&
|
|
174
|
-
key.includes(".") &&
|
|
175
|
-
hasListAndDelete(value) &&
|
|
176
|
-
isNukeable(value)
|
|
177
|
-
) {
|
|
178
|
-
out.set(key, value);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return [...out.entries()]
|
|
182
|
-
.flatMap(([id, provider]): DiscoveredProvider[] => {
|
|
183
|
-
if (mode === "live") return [{ id, resolve: Effect.succeed(provider) }];
|
|
184
|
-
// No `modes` => mode-agnostic (single, live implementation).
|
|
185
|
-
const local = provider.modes?.local;
|
|
186
|
-
return local ? [{ id, resolve: local }] : [];
|
|
187
|
-
})
|
|
188
|
-
.sort((a, b) => a.id.localeCompare(b.id));
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Compile a `--filter` expression into a predicate. The expression is
|
|
193
|
-
* evaluated with `{ resource }` placed on the scope chain via `with`, so it
|
|
194
|
-
* can reference `resource.Type`, `resource.LogicalId`, and any attribute
|
|
195
|
-
* directly. A throwing or non-boolean expression is treated as `false`.
|
|
196
|
-
*/
|
|
197
|
-
const compileFilter = (
|
|
198
|
-
expr: string,
|
|
199
|
-
): ((resource: Record<string, unknown>) => boolean) => {
|
|
200
|
-
// `new Function` bodies are sloppy-mode, so `with` is permitted here even
|
|
201
|
-
// though this module is ESM/strict.
|
|
202
|
-
const fn = new Function(
|
|
203
|
-
"scope",
|
|
204
|
-
`with (scope) { return (${expr}); }`,
|
|
205
|
-
) as (scope: { resource: Record<string, unknown> }) => unknown;
|
|
206
|
-
return (resource) => {
|
|
207
|
-
try {
|
|
208
|
-
return Boolean(fn({ resource }));
|
|
209
|
-
} catch {
|
|
210
|
-
return false;
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* High-signal identifier attributes, most human-friendly first. These are the
|
|
217
|
-
* explicit per-resource identifier keys observed across the AWS / Cloudflare /
|
|
218
|
-
* Planetscale / Neon / GitHub providers (e.g. `Worker.workerName`,
|
|
219
|
-
* `Function.functionName`, `Table.tableName`, `Zone.name`, `Route.pattern`).
|
|
220
|
-
* The generic suffix passes in {@link displayName} cover everything else.
|
|
221
|
-
*/
|
|
222
|
-
const PRIMARY_NAME_KEYS = [
|
|
223
|
-
"workerName",
|
|
224
|
-
"functionName",
|
|
225
|
-
"bucketName",
|
|
226
|
-
"tableName",
|
|
227
|
-
"queueName",
|
|
228
|
-
"streamName",
|
|
229
|
-
"topicName",
|
|
230
|
-
"roleName",
|
|
231
|
-
"userName",
|
|
232
|
-
"groupName",
|
|
233
|
-
"clusterName",
|
|
234
|
-
"serviceName",
|
|
235
|
-
"repositoryName",
|
|
236
|
-
"databaseName",
|
|
237
|
-
"branchName",
|
|
238
|
-
"projectName",
|
|
239
|
-
"tunnelName",
|
|
240
|
-
"secretName",
|
|
241
|
-
"storeName",
|
|
242
|
-
"scriptName",
|
|
243
|
-
"workflowName",
|
|
244
|
-
"loadBalancerName",
|
|
245
|
-
"indexName",
|
|
246
|
-
"applicationName",
|
|
247
|
-
"fullName",
|
|
248
|
-
"domainName",
|
|
249
|
-
"hostname",
|
|
250
|
-
"dnsName",
|
|
251
|
-
"pattern",
|
|
252
|
-
"displayName",
|
|
253
|
-
"friendlyName",
|
|
254
|
-
"commonName",
|
|
255
|
-
"slug",
|
|
256
|
-
"name",
|
|
257
|
-
];
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* Generic identifiers shared by many resources that make poor display labels.
|
|
261
|
-
* Only used as a last resort, after suffix-based matching.
|
|
262
|
-
*/
|
|
263
|
-
const WEAK_KEYS = ["accountId", "zoneId"];
|
|
264
|
-
|
|
265
|
-
const stringAttr = (
|
|
266
|
-
attr: Record<string, unknown>,
|
|
267
|
-
key: string,
|
|
268
|
-
): string | undefined => {
|
|
269
|
-
const value = attr[key];
|
|
270
|
-
return typeof value === "string" && value.length > 0 ? value : undefined;
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
/** First non-weak string attribute whose key ends with one of `suffixes`. */
|
|
274
|
-
const findBySuffix = (
|
|
275
|
-
attr: Record<string, unknown>,
|
|
276
|
-
suffixes: string[],
|
|
277
|
-
): string | undefined => {
|
|
278
|
-
for (const key of Object.keys(attr)) {
|
|
279
|
-
if (WEAK_KEYS.includes(key)) continue;
|
|
280
|
-
if (suffixes.some((s) => key.endsWith(s))) {
|
|
281
|
-
const value = stringAttr(attr, key);
|
|
282
|
-
if (value) return value;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
return undefined;
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Best-effort human-readable identifier for a discovered resource. Tries, in
|
|
290
|
-
* order: an explicit high-signal key ({@link PRIMARY_NAME_KEYS}), then any
|
|
291
|
-
* `*Name`, `*Arn`, `*Url`/endpoint/host, or `*Id` attribute, then a weak
|
|
292
|
-
* generic id, then any string value.
|
|
293
|
-
*/
|
|
294
|
-
const displayName = (attr: Record<string, unknown>): string =>
|
|
295
|
-
PRIMARY_NAME_KEYS.map((key) => stringAttr(attr, key)).find(Boolean) ??
|
|
296
|
-
findBySuffix(attr, ["Name", "name"]) ??
|
|
297
|
-
findBySuffix(attr, ["Arn", "arn"]) ??
|
|
298
|
-
findBySuffix(attr, ["Url", "url"]) ??
|
|
299
|
-
stringAttr(attr, "endpoint") ??
|
|
300
|
-
stringAttr(attr, "host") ??
|
|
301
|
-
findBySuffix(attr, ["Id", "id"]) ??
|
|
302
|
-
WEAK_KEYS.map((key) => stringAttr(attr, key)).find(Boolean) ??
|
|
303
|
-
Object.values(attr).find(
|
|
304
|
-
(value): value is string => typeof value === "string" && value.length > 0,
|
|
305
|
-
) ??
|
|
306
|
-
"";
|
|
307
|
-
|
|
308
|
-
const groupBy = <T>(items: T[], key: (item: T) => string): Map<string, T[]> => {
|
|
309
|
-
const out = new Map<string, T[]>();
|
|
310
|
-
for (const item of items) {
|
|
311
|
-
const k = key(item);
|
|
312
|
-
const list = out.get(k);
|
|
313
|
-
if (list) list.push(item);
|
|
314
|
-
else out.set(k, [item]);
|
|
315
|
-
}
|
|
316
|
-
return out;
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
const addEdge = (map: Map<string, Set<string>>, from: string, to: string) => {
|
|
320
|
-
const set = map.get(from) ?? new Set<string>();
|
|
321
|
-
set.add(to);
|
|
322
|
-
map.set(from, set);
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Strongly-connected components of the type-level teardown-dependency graph
|
|
327
|
-
* (Tarjan). Components are emitted in reverse topological order of the
|
|
328
|
-
* condensation — every component's successors are emitted before it — so
|
|
329
|
-
* callers can compute layers by iterating the result backwards.
|
|
330
|
-
*/
|
|
331
|
-
const stronglyConnectedComponents = (
|
|
332
|
-
nodes: readonly string[],
|
|
333
|
-
successors: Map<string, Set<string>>,
|
|
334
|
-
): string[][] => {
|
|
335
|
-
const index = new Map<string, number>();
|
|
336
|
-
const low = new Map<string, number>();
|
|
337
|
-
const onStack = new Set<string>();
|
|
338
|
-
const stack: string[] = [];
|
|
339
|
-
const components: string[][] = [];
|
|
340
|
-
let counter = 0;
|
|
341
|
-
const strongConnect = (v: string): void => {
|
|
342
|
-
index.set(v, counter);
|
|
343
|
-
low.set(v, counter);
|
|
344
|
-
counter += 1;
|
|
345
|
-
stack.push(v);
|
|
346
|
-
onStack.add(v);
|
|
347
|
-
for (const w of successors.get(v) ?? []) {
|
|
348
|
-
if (!index.has(w)) {
|
|
349
|
-
strongConnect(w);
|
|
350
|
-
low.set(v, Math.min(low.get(v)!, low.get(w)!));
|
|
351
|
-
} else if (onStack.has(w)) {
|
|
352
|
-
low.set(v, Math.min(low.get(v)!, index.get(w)!));
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
if (low.get(v) === index.get(v)) {
|
|
356
|
-
const component: string[] = [];
|
|
357
|
-
for (;;) {
|
|
358
|
-
const w = stack.pop()!;
|
|
359
|
-
onStack.delete(w);
|
|
360
|
-
component.push(w);
|
|
361
|
-
if (w === v) break;
|
|
362
|
-
}
|
|
363
|
-
components.push(component);
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
|
-
for (const v of nodes) {
|
|
367
|
-
if (!index.has(v)) strongConnect(v);
|
|
368
|
-
}
|
|
369
|
-
return components;
|
|
370
|
-
};
|
|
69
|
+
// A broken filter must abort the nuke, not silently widen the kill list:
|
|
70
|
+
// compile and evaluation errors both fail the command before any deletion.
|
|
71
|
+
const compileFilter = (expression: string) =>
|
|
72
|
+
Effect.try({
|
|
73
|
+
try: () =>
|
|
74
|
+
new Function(
|
|
75
|
+
"scope",
|
|
76
|
+
`with (scope) { return (${expression}); }`,
|
|
77
|
+
) as (scope: { resource: Record<string, unknown> }) => unknown,
|
|
78
|
+
catch: (cause) =>
|
|
79
|
+
new UserInputError({
|
|
80
|
+
message: `--filter expression ${JSON.stringify(expression)} failed to compile: ${cause}`,
|
|
81
|
+
}),
|
|
82
|
+
}).pipe(
|
|
83
|
+
Effect.map(
|
|
84
|
+
(predicate) => (resource: Record<string, unknown>) =>
|
|
85
|
+
Effect.try({
|
|
86
|
+
try: () => Boolean(predicate({ resource })),
|
|
87
|
+
catch: (cause) =>
|
|
88
|
+
new UserInputError({
|
|
89
|
+
message: `--filter expression ${JSON.stringify(expression)} threw while evaluating a resource: ${cause}`,
|
|
90
|
+
}),
|
|
91
|
+
}),
|
|
92
|
+
),
|
|
93
|
+
);
|
|
371
94
|
|
|
372
|
-
const nukeSession: ScopedPlanStatusSession = {
|
|
373
|
-
emit: () => Effect.void,
|
|
374
|
-
done: () => Effect.void,
|
|
375
|
-
note: () => Effect.void,
|
|
376
|
-
};
|
|
377
95
|
const nukeCommand = Command.make(
|
|
378
96
|
"nuke",
|
|
379
97
|
{
|
|
380
|
-
|
|
98
|
+
config: optionalConfig,
|
|
99
|
+
configPath,
|
|
381
100
|
envFile,
|
|
382
101
|
profile,
|
|
383
102
|
yes,
|
|
384
|
-
dryRun,
|
|
385
|
-
verbose: verboseFlag,
|
|
103
|
+
dryRun: dryRunFlag,
|
|
386
104
|
concurrency: concurrencyFlag,
|
|
387
105
|
timeout: timeoutFlag,
|
|
388
106
|
independent: independentFlag,
|
|
@@ -392,488 +110,97 @@ const nukeCommand = Command.make(
|
|
|
392
110
|
filter: filterFlag,
|
|
393
111
|
local: localFlag,
|
|
394
112
|
},
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
yes,
|
|
404
|
-
dryRun,
|
|
405
|
-
verbose,
|
|
406
|
-
concurrency,
|
|
407
|
-
timeout,
|
|
408
|
-
independent,
|
|
409
|
-
retries,
|
|
410
|
-
include,
|
|
411
|
-
exclude,
|
|
412
|
-
filter,
|
|
413
|
-
local,
|
|
414
|
-
}) {
|
|
415
|
-
// DEBUG=1 routes provider logs to the console (instead of the
|
|
416
|
-
// .alchemy/log/out file) at Debug level and disables the TUI so the
|
|
417
|
-
// log stream isn't clobbered by the progress renderer.
|
|
418
|
-
const debug = !!process.env.DEBUG;
|
|
419
|
-
const interactive = !isNonInteractive() && !debug;
|
|
420
|
-
|
|
421
|
-
// Build the user's providers() (+ state) layer so the resulting context
|
|
422
|
-
// holds every resource provider plus the cloud-environment services
|
|
423
|
-
// their `list`/`delete` need at call time. DEBUG=1 routes provider logs
|
|
424
|
-
// to the console at Debug level instead of the .alchemy/log/out file.
|
|
425
|
-
const { context } = yield* buildStackProviders({
|
|
426
|
-
main,
|
|
427
|
-
envFile,
|
|
428
|
-
profile,
|
|
429
|
-
logger: debug ? Logger.layer([Logger.defaultLogger]) : undefined,
|
|
430
|
-
extra: Layer.succeed(MinimumLogLevel, debug ? "Debug" : "Info"),
|
|
431
|
-
});
|
|
432
|
-
|
|
433
|
-
const mode: ProviderMode = local ? "local" : "live";
|
|
434
|
-
const discovered = discoverProviders(
|
|
435
|
-
context as Context.Context<never>,
|
|
436
|
-
mode,
|
|
437
|
-
);
|
|
438
|
-
|
|
439
|
-
const matchInclude =
|
|
440
|
-
include.length > 0 ? picomatch([...include]) : () => true;
|
|
441
|
-
const matchExclude =
|
|
442
|
-
exclude.length > 0 ? picomatch([...exclude]) : () => false;
|
|
443
|
-
const selected = discovered.filter(
|
|
444
|
-
(p) => matchInclude(p.id) && !matchExclude(p.id),
|
|
445
|
-
);
|
|
446
|
-
|
|
447
|
-
if (local) {
|
|
448
|
-
yield* Console.log(
|
|
449
|
-
`Local mode: ${selected.length} emulated provider(s). ` +
|
|
450
|
-
"Real cloud resources are never touched.",
|
|
451
|
-
);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
if (selected.length === 0) {
|
|
455
|
-
yield* Console.log(
|
|
456
|
-
local
|
|
457
|
-
? "No local providers match the given --include/--exclude."
|
|
458
|
-
: "No providers match the given --include/--exclude.",
|
|
459
|
-
);
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
// Predicates that SPARE a matching resource from deletion. Applied
|
|
464
|
-
// during the scan so the live counts reflect the filter rather than
|
|
465
|
-
// the raw discovered total.
|
|
466
|
-
const predicates = filter.map(compileFilter);
|
|
467
|
-
const isSpared = (attr: Record<string, unknown>, id: string) =>
|
|
468
|
-
predicates.some((p) =>
|
|
469
|
-
p({ ...attr, Type: id, LogicalId: displayName(attr) }),
|
|
470
|
-
);
|
|
471
|
-
|
|
472
|
-
// ---- Scan phase --------------------------------------------------
|
|
473
|
-
const scanUI = interactive
|
|
474
|
-
? yield* Effect.sync(() => NukeUI.renderScan(selected.length))
|
|
475
|
-
: undefined;
|
|
476
|
-
const emitScan = (event: NukeUI.ScanEvent) =>
|
|
477
|
-
scanUI ? Effect.sync(() => scanUI.emit(event)) : Effect.void;
|
|
478
|
-
|
|
479
|
-
const listed = yield* Effect.all(
|
|
480
|
-
selected.map(({ id, resolve }) =>
|
|
481
|
-
Effect.gen(function* () {
|
|
482
|
-
yield* emitScan({ kind: "start", id });
|
|
483
|
-
// Resolving is a no-op in live mode; in local mode it builds the
|
|
484
|
-
// provider's local variant (and, on first use, whatever runtime
|
|
485
|
-
// it emulates against). Both it and the listing are guarded, so
|
|
486
|
-
// a provider whose local runtime can't start is skipped with a
|
|
487
|
-
// logged warning instead of aborting the whole run.
|
|
488
|
-
const scanned = yield* Effect.gen(function* () {
|
|
489
|
-
const provider = yield* resolve;
|
|
490
|
-
const attrs = yield* provider
|
|
491
|
-
.list()
|
|
492
|
-
.pipe(Effect.timeout(`${timeout} seconds`));
|
|
493
|
-
return { provider, attrs };
|
|
494
|
-
}).pipe(
|
|
495
|
-
// Log inside the provided scope so the failure lands in the
|
|
496
|
-
// stack's file logger (.alchemy/log/out), then swallow it so a
|
|
497
|
-
// single broken/slow provider doesn't abort the whole scan.
|
|
498
|
-
Effect.tapCause((cause) =>
|
|
499
|
-
Effect.logWarning(`nuke: scan failed for ${id}`, cause),
|
|
500
|
-
),
|
|
501
|
-
Effect.provide(context),
|
|
502
|
-
Effect.matchCause({
|
|
503
|
-
onSuccess: (scanned) => scanned,
|
|
504
|
-
onFailure: () => undefined,
|
|
505
|
-
}),
|
|
506
|
-
);
|
|
507
|
-
const items = (scanned?.attrs ?? []).map((raw) => {
|
|
508
|
-
const attr = (raw ?? {}) as Record<string, unknown>;
|
|
509
|
-
return {
|
|
510
|
-
attr,
|
|
511
|
-
name: displayName(attr),
|
|
512
|
-
spared: isSpared(attr, id),
|
|
513
|
-
};
|
|
514
|
-
});
|
|
515
|
-
yield* emitScan({
|
|
516
|
-
kind: "done",
|
|
517
|
-
id,
|
|
518
|
-
count: items.filter((i) => !i.spared).length,
|
|
519
|
-
});
|
|
520
|
-
return { id, provider: scanned?.provider, items };
|
|
113
|
+
(args) =>
|
|
114
|
+
resolveConfig(args).pipe(
|
|
115
|
+
Effect.flatMap(
|
|
116
|
+
instrumentCommand(
|
|
117
|
+
"unsafe.nuke",
|
|
118
|
+
(args: { profile: string | undefined; main: string }) => ({
|
|
119
|
+
"alchemy.profile": args.profile ?? "",
|
|
120
|
+
"alchemy.main": args.main,
|
|
521
121
|
}),
|
|
522
|
-
)
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
: items.map(({ attr, name, spared }) => ({
|
|
538
|
-
id,
|
|
539
|
-
provider,
|
|
540
|
-
attr,
|
|
541
|
-
name,
|
|
542
|
-
spared,
|
|
543
|
-
})),
|
|
544
|
-
);
|
|
545
|
-
|
|
546
|
-
const targets = candidates.filter((c) => !c.spared);
|
|
547
|
-
const filteredTotal = candidates.length - targets.length;
|
|
548
|
-
|
|
549
|
-
// ---- Report ------------------------------------------------------
|
|
550
|
-
// One line per provider type with its to-delete count and how many were
|
|
551
|
-
// filtered out by --filter. With --verbose, also enumerate each
|
|
552
|
-
// individual resource that will be deleted.
|
|
553
|
-
const byType = [...groupBy(candidates, (c) => c.id).entries()].sort(
|
|
554
|
-
(a, b) => a[0].localeCompare(b[0]),
|
|
555
|
-
);
|
|
556
|
-
yield* Console.log("");
|
|
557
|
-
yield* Effect.forEach(
|
|
558
|
-
byType,
|
|
559
|
-
([id, items]) =>
|
|
560
|
-
Effect.gen(function* () {
|
|
561
|
-
const toDelete = items.filter((c) => !c.spared);
|
|
562
|
-
const filtered = items.length - toDelete.length;
|
|
563
|
-
yield* Console.log(
|
|
564
|
-
`${id} ${toDelete.length} to delete` +
|
|
565
|
-
(filtered > 0 ? ` (${filtered} filtered out)` : ""),
|
|
122
|
+
)(
|
|
123
|
+
Effect.fn(function* (args) {
|
|
124
|
+
const scan = yield* Nuke.scan({
|
|
125
|
+
entrypoint: args.main,
|
|
126
|
+
profile: args.profile,
|
|
127
|
+
envFile: Option.getOrUndefined(args.envFile),
|
|
128
|
+
mode: args.local ? "local" : "live",
|
|
129
|
+
include: args.include,
|
|
130
|
+
exclude: args.exclude,
|
|
131
|
+
concurrency: args.concurrency,
|
|
132
|
+
providerTimeoutSeconds: Duration.toSeconds(args.timeout),
|
|
133
|
+
}).pipe(renderNukeScan());
|
|
134
|
+
const predicates = yield* Effect.forEach(
|
|
135
|
+
args.filter,
|
|
136
|
+
compileFilter,
|
|
566
137
|
);
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
(
|
|
571
|
-
|
|
138
|
+
const targets: Array<(typeof scan.resources)[number]> = [];
|
|
139
|
+
for (const resource of scan.resources) {
|
|
140
|
+
const matches = yield* Effect.forEach(predicates, (predicate) =>
|
|
141
|
+
predicate({
|
|
142
|
+
...resource.attributes,
|
|
143
|
+
Type: resource.providerId,
|
|
144
|
+
LogicalId: resource.displayName,
|
|
145
|
+
}),
|
|
572
146
|
);
|
|
147
|
+
if (!matches.some(Boolean)) targets.push(resource);
|
|
573
148
|
}
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
yield* Console.log("");
|
|
579
|
-
yield* Console.log(
|
|
580
|
-
filteredTotal > 0
|
|
581
|
-
? `${targets.length} resource(s) to delete (${filteredTotal} filtered out).`
|
|
582
|
-
: `${targets.length} resource(s) to delete.`,
|
|
583
|
-
);
|
|
584
|
-
|
|
585
|
-
if (targets.length === 0) {
|
|
586
|
-
yield* Console.log("Nothing to delete.");
|
|
587
|
-
return;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
if (dryRun) {
|
|
591
|
-
yield* Console.log(
|
|
592
|
-
"Dry run: nothing was deleted. Re-run without --dry-run to delete.",
|
|
593
|
-
);
|
|
594
|
-
return;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
// ---- Confirm -----------------------------------------------------
|
|
598
|
-
const approved = yes
|
|
599
|
-
? true
|
|
600
|
-
: yield* Clank.confirm({
|
|
601
|
-
message:
|
|
602
|
-
`Permanently DELETE ${targets.length} ` +
|
|
603
|
-
`${local ? "locally emulated " : ""}resource(s)? ` +
|
|
604
|
-
`This cannot be undone.`,
|
|
605
|
-
initialValue: false,
|
|
606
|
-
});
|
|
607
|
-
if (!approved) {
|
|
608
|
-
yield* Console.log("Aborted.");
|
|
609
|
-
return;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
// ---- Delete phase ------------------------------------------------
|
|
613
|
-
const totals = [...groupBy(targets, (t) => t.id).entries()].map(
|
|
614
|
-
([id, items]) => ({ id, total: items.length }),
|
|
615
|
-
);
|
|
616
|
-
const deleteUI = interactive
|
|
617
|
-
? yield* Effect.sync(() => NukeUI.renderDelete(totals))
|
|
618
|
-
: undefined;
|
|
619
|
-
const emitDelete = (event: NukeUI.DeleteEvent) =>
|
|
620
|
-
deleteUI ? Effect.sync(() => deleteUI.emit(event)) : Effect.void;
|
|
621
|
-
|
|
622
|
-
// One delete attempt for a single resource, bounded by --timeout, with
|
|
623
|
-
// the failure cause logged to the stack's file logger. Failure stays on
|
|
624
|
-
// the error channel so callers can retry or fold it as they see fit.
|
|
625
|
-
const attemptDelete = (item: (typeof targets)[number]) =>
|
|
626
|
-
item.provider
|
|
627
|
-
.delete({
|
|
628
|
-
id: displayName(item.attr),
|
|
629
|
-
// Enumerated straight from the cloud, so there is no
|
|
630
|
-
// Alchemy namespace — an un-namespaced fqn is just the id.
|
|
631
|
-
fqn: displayName(item.attr),
|
|
632
|
-
instanceId: "",
|
|
633
|
-
olds: item.attr as never,
|
|
634
|
-
output: item.attr as never,
|
|
635
|
-
session: nukeSession,
|
|
636
|
-
bindings: [],
|
|
637
|
-
// Nuke is an explicit, operator-confirmed account
|
|
638
|
-
// teardown: allow destructive prerequisites (e.g.
|
|
639
|
-
// emptying a bucket) that normal destroys gate behind
|
|
640
|
-
// props such as `forceDestroy` — `olds` here is cloud
|
|
641
|
-
// Attributes, not the originally-deployed Props.
|
|
642
|
-
force: true,
|
|
643
|
-
})
|
|
644
|
-
.pipe(
|
|
645
|
-
Effect.timeout(`${timeout} seconds`),
|
|
646
|
-
Effect.tapCause((cause) =>
|
|
647
|
-
Effect.logWarning(
|
|
648
|
-
`nuke: delete failed for ${item.id} ${displayName(item.attr)}`,
|
|
649
|
-
cause,
|
|
650
|
-
),
|
|
651
|
-
),
|
|
652
|
-
Effect.provide(context),
|
|
653
|
-
);
|
|
654
|
-
|
|
655
|
-
const retrySchedule = Schedule.min([
|
|
656
|
-
Schedule.exponential("1 second"),
|
|
657
|
-
Schedule.spaced("15 seconds"),
|
|
658
|
-
]);
|
|
659
|
-
|
|
660
|
-
let pass = 0;
|
|
661
|
-
|
|
662
|
-
// Delete one tier of resources to completion, returning the items
|
|
663
|
-
// that could not be deleted.
|
|
664
|
-
const runTier = (tier: typeof targets) =>
|
|
665
|
-
Effect.gen(function* () {
|
|
666
|
-
if (tier.length === 0) return [] as typeof targets;
|
|
667
|
-
if (independent) {
|
|
668
|
-
// Independent mode: no pass barrier. Every resource retries its
|
|
669
|
-
// own delete with capped exponential backoff, all in parallel
|
|
670
|
-
// (provider groups bounded by --concurrency, resources within a
|
|
671
|
-
// provider unbounded, matching pass mode). A dependency
|
|
672
|
-
// violation resolves on a later attempt once the blocking
|
|
673
|
-
// resource's concurrent delete lands — a hanging delete only
|
|
674
|
-
// ever stalls itself.
|
|
675
|
-
pass += 1;
|
|
676
|
-
yield* emitDelete({ kind: "pass", pass });
|
|
677
|
-
const results = yield* Effect.all(
|
|
678
|
-
[...groupBy(tier, (t) => t.id).values()].map((items) =>
|
|
679
|
-
Effect.all(
|
|
680
|
-
items.map((item) =>
|
|
681
|
-
attemptDelete(item).pipe(
|
|
682
|
-
Effect.retry({ schedule: retrySchedule, times: retries }),
|
|
683
|
-
Effect.matchCause({
|
|
684
|
-
onSuccess: () => ({ item, ok: true as const }),
|
|
685
|
-
onFailure: () => ({ item, ok: false as const }),
|
|
686
|
-
}),
|
|
687
|
-
// Only the final outcome is emitted, so the UI's
|
|
688
|
-
// failure count reflects exhausted resources, not
|
|
689
|
-
// transient attempts.
|
|
690
|
-
Effect.tap((r) =>
|
|
691
|
-
r.ok
|
|
692
|
-
? emitDelete({ kind: "deleted", id: item.id })
|
|
693
|
-
: emitDelete({ kind: "failed", id: item.id }),
|
|
694
|
-
),
|
|
695
|
-
),
|
|
696
|
-
),
|
|
697
|
-
{ concurrency: "unbounded" },
|
|
698
|
-
),
|
|
699
|
-
),
|
|
700
|
-
{ concurrency },
|
|
701
|
-
);
|
|
702
|
-
return results.flat().flatMap((r) => (r.ok ? [] : [r.item]));
|
|
703
|
-
}
|
|
704
|
-
let remaining = tier;
|
|
705
|
-
while (remaining.length > 0) {
|
|
706
|
-
pass += 1;
|
|
707
|
-
yield* emitDelete({ kind: "pass", pass });
|
|
708
|
-
|
|
709
|
-
const byType = groupBy(remaining, (t) => t.id);
|
|
710
|
-
const results = yield* Effect.all(
|
|
711
|
-
[...byType.values()].map((items) =>
|
|
712
|
-
Effect.all(
|
|
713
|
-
items.map((item) =>
|
|
714
|
-
attemptDelete(item).pipe(
|
|
715
|
-
Effect.matchCause({
|
|
716
|
-
onSuccess: () => ({ item, ok: true as const }),
|
|
717
|
-
onFailure: () => ({ item, ok: false as const }),
|
|
718
|
-
}),
|
|
719
|
-
Effect.tap((r) =>
|
|
720
|
-
r.ok
|
|
721
|
-
? emitDelete({ kind: "deleted", id: item.id })
|
|
722
|
-
: emitDelete({ kind: "failed", id: item.id }),
|
|
723
|
-
),
|
|
724
|
-
),
|
|
725
|
-
),
|
|
726
|
-
{ concurrency: "unbounded" },
|
|
727
|
-
),
|
|
728
|
-
),
|
|
729
|
-
{ concurrency },
|
|
730
|
-
);
|
|
731
|
-
|
|
732
|
-
const failed = results
|
|
733
|
-
.flat()
|
|
734
|
-
.flatMap((r) => (r.ok ? [] : [r.item]));
|
|
735
|
-
// No resource deleted this pass: dependencies can't resolve
|
|
736
|
-
// further, so stop instead of looping forever.
|
|
737
|
-
if (failed.length === remaining.length) {
|
|
738
|
-
return failed;
|
|
149
|
+
if (targets.length === 0) {
|
|
150
|
+
yield* CliKit.accessors.output.info("Nothing to delete.");
|
|
151
|
+
return;
|
|
739
152
|
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
// node ENIs by assuming the instance group's execution role inside
|
|
749
|
-
// the cluster's VPC — deleting the role or network mid-teardown
|
|
750
|
-
// wedges the cluster in `Deleting` forever). Edge A→B means every A
|
|
751
|
-
// must be fully GONE before any B is deleted. Only types present in
|
|
752
|
-
// the target set participate, so the constraint costs nothing when no
|
|
753
|
-
// dependent resources exist; declaration cycles collapse into one
|
|
754
|
-
// concurrent wave (handled by the intra-wave retry machinery) with a
|
|
755
|
-
// logged warning instead of failing.
|
|
756
|
-
const typeIds = [...new Set(targets.map((t) => t.id))];
|
|
757
|
-
const providerOfType = new Map(targets.map((t) => [t.id, t.provider]));
|
|
758
|
-
const successors = new Map<string, Set<string>>();
|
|
759
|
-
const predecessors = new Map<string, Set<string>>();
|
|
760
|
-
for (const id of typeIds) {
|
|
761
|
-
const globs = providerOfType.get(id)?.nuke?.dependsOn;
|
|
762
|
-
if (!globs || globs.length === 0) continue;
|
|
763
|
-
const matches = picomatch([...globs]);
|
|
764
|
-
for (const other of typeIds) {
|
|
765
|
-
if (other === id || !matches(other)) continue;
|
|
766
|
-
addEdge(successors, id, other);
|
|
767
|
-
addEdge(predecessors, other, id);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
const components = stronglyConnectedComponents(typeIds, successors);
|
|
772
|
-
for (const component of components) {
|
|
773
|
-
if (component.length > 1) {
|
|
774
|
-
yield* Effect.logWarning(
|
|
775
|
-
`nuke: teardown-dependency cycle between ${component.join(", ")} — deleting them concurrently`,
|
|
776
|
-
).pipe(Effect.provide(context));
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
const compOf = new Map<string, number>();
|
|
780
|
-
components.forEach((component, i) => {
|
|
781
|
-
for (const node of component) compOf.set(node, i);
|
|
782
|
-
});
|
|
783
|
-
// Layer each component: 0 for sources, else 1 + max predecessor
|
|
784
|
-
// layer. Tarjan emits components in reverse topological order, so
|
|
785
|
-
// iterating backwards visits predecessors before dependents.
|
|
786
|
-
const layerOfComp: number[] = new Array(components.length).fill(0);
|
|
787
|
-
for (let i = components.length - 1; i >= 0; i--) {
|
|
788
|
-
let layer = 0;
|
|
789
|
-
for (const node of components[i]!) {
|
|
790
|
-
for (const pred of predecessors.get(node) ?? []) {
|
|
791
|
-
const predComp = compOf.get(pred)!;
|
|
792
|
-
if (predComp !== i) {
|
|
793
|
-
layer = Math.max(layer, layerOfComp[predComp]! + 1);
|
|
153
|
+
const approved = yield* reviewNuke(targets, {
|
|
154
|
+
mode: scan.mode,
|
|
155
|
+
yes: args.yes,
|
|
156
|
+
dryRun: args.dryRun,
|
|
157
|
+
});
|
|
158
|
+
if (!approved) {
|
|
159
|
+
yield* CliKit.accessors.output.info("Aborted.");
|
|
160
|
+
return yield* exitDeclined;
|
|
794
161
|
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
}
|
|
799
|
-
const waves: string[][] = [];
|
|
800
|
-
components.forEach((component, i) => {
|
|
801
|
-
(waves[layerOfComp[i]!] ??= []).push(...component);
|
|
802
|
-
});
|
|
803
|
-
|
|
804
|
-
// ---- Execute waves -------------------------------------------------
|
|
805
|
-
const targetsOfType = groupBy(targets, (t) => t.id);
|
|
806
|
-
const remainingCount = new Map(
|
|
807
|
-
[...targetsOfType.entries()].map(([id, items]) => [id, items.length]),
|
|
808
|
-
);
|
|
809
|
-
const remaining: typeof targets = [];
|
|
810
|
-
const held: string[] = [];
|
|
811
|
-
for (const wave of waves) {
|
|
812
|
-
const runnable: typeof targets = [];
|
|
813
|
-
for (const typeId of wave) {
|
|
814
|
-
const items = targetsOfType.get(typeId) ?? [];
|
|
815
|
-
// A dependent type still has undeleted resources — deleting this
|
|
816
|
-
// type now could wedge their in-flight teardown, which is exactly
|
|
817
|
-
// what the ordering exists to prevent. Hold it back and report.
|
|
818
|
-
const blockers = [...(predecessors.get(typeId) ?? [])].filter(
|
|
819
|
-
(pred) =>
|
|
820
|
-
compOf.get(pred) !== compOf.get(typeId) &&
|
|
821
|
-
(remainingCount.get(pred) ?? 0) > 0,
|
|
822
|
-
);
|
|
823
|
-
if (blockers.length > 0) {
|
|
824
|
-
held.push(`${typeId} (blocked by ${blockers.join(", ")})`);
|
|
825
|
-
remaining.push(...items);
|
|
826
|
-
for (const item of items) {
|
|
827
|
-
yield* emitDelete({ kind: "failed", id: item.id });
|
|
162
|
+
if (args.dryRun) {
|
|
163
|
+
yield* Console.log("Dry run complete: nothing was deleted.");
|
|
164
|
+
return;
|
|
828
165
|
}
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
if (remaining.length > 0) {
|
|
859
|
-
yield* Console.log(
|
|
860
|
-
`${remaining.length} resource(s) could not be deleted.`,
|
|
861
|
-
);
|
|
862
|
-
}
|
|
863
|
-
}),
|
|
864
|
-
),
|
|
166
|
+
const deleteStartedAt = yield* Clock.currentTimeMillis;
|
|
167
|
+
const result = yield* Nuke.execute({
|
|
168
|
+
scan,
|
|
169
|
+
resources: targets,
|
|
170
|
+
strategy: args.independent
|
|
171
|
+
? { _tag: "independent", retries: args.retries }
|
|
172
|
+
: { _tag: "coordinated" },
|
|
173
|
+
concurrency: args.concurrency,
|
|
174
|
+
providerTimeoutSeconds: Duration.toSeconds(args.timeout),
|
|
175
|
+
}).pipe(renderNukeDelete(targets, scan.mode));
|
|
176
|
+
const deleteElapsed =
|
|
177
|
+
(yield* Clock.currentTimeMillis) - deleteStartedAt;
|
|
178
|
+
yield* CliKit.accessors.output.success(
|
|
179
|
+
`Deleted ${result.deleted.length} resource(s) over ${result.passes} pass(es) (${formatElapsed(deleteElapsed)}).`,
|
|
180
|
+
);
|
|
181
|
+
if (result.held.length > 0) {
|
|
182
|
+
yield* CliKit.accessors.output.warning(
|
|
183
|
+
`${result.held.length} resource(s) were held back.`,
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
if (result.failed.length > 0) {
|
|
187
|
+
yield* CliKit.accessors.output.error(
|
|
188
|
+
`${result.failed.length} resource(s) could not be deleted.`,
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
}),
|
|
192
|
+
),
|
|
193
|
+
),
|
|
194
|
+
),
|
|
865
195
|
).pipe(
|
|
866
|
-
// hide the command because it's dangerous and we don't want agents to discover and use it
|
|
867
|
-
Command.unlisted,
|
|
868
196
|
Command.withDescription(
|
|
869
|
-
"Enumerate
|
|
870
|
-
"them. DESTRUCTIVE — use --include/--exclude/--filter to scope it. " +
|
|
871
|
-
"Pass --local to target locally emulated resources (floci, the " +
|
|
872
|
-
"Cloudflare local runtime) instead of the real cloud.",
|
|
197
|
+
"Enumerate resources across the stack providers and delete them",
|
|
873
198
|
),
|
|
199
|
+
Command.unlisted,
|
|
874
200
|
);
|
|
875
201
|
|
|
876
202
|
export const unsafeCommand = Command.make("unsafe", {}).pipe(
|
|
877
|
-
Command.withDescription("Dangerous, irreversible operations
|
|
203
|
+
Command.withDescription("Dangerous, irreversible operations"),
|
|
878
204
|
Command.withSubcommands([nukeCommand]),
|
|
205
|
+
Command.unlisted,
|
|
879
206
|
);
|