alchemy 2.0.0-beta.84 → 2.0.0-beta.85
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/THIRD_PARTY_LICENSES.md +2 -2
- package/bin/cli.js +14 -6
- package/bin/register-oxc.js +16 -12
- package/lib/AdoptPolicy.d.ts +73 -0
- package/lib/AdoptPolicy.d.ts.map +1 -1
- package/lib/AdoptPolicy.js +54 -0
- package/lib/AdoptPolicy.js.map +1 -1
- package/lib/Alchemist/AuthRegistry.d.ts +31 -0
- package/lib/Alchemist/AuthRegistry.d.ts.map +1 -0
- package/lib/Alchemist/AuthRegistry.js +95 -0
- package/lib/Alchemist/AuthRegistry.js.map +1 -0
- package/lib/Alchemist/Drift.d.ts +70 -0
- package/lib/Alchemist/Drift.d.ts.map +1 -0
- package/lib/Alchemist/Drift.js +54 -0
- package/lib/Alchemist/Drift.js.map +1 -0
- package/lib/Alchemist/Entrypoint.d.ts +27 -3
- package/lib/Alchemist/Entrypoint.d.ts.map +1 -1
- package/lib/Alchemist/Entrypoint.js +34 -3
- package/lib/Alchemist/Entrypoint.js.map +1 -1
- package/lib/Alchemist/Errors.d.ts +1 -1
- package/lib/Alchemist/Errors.d.ts.map +1 -1
- package/lib/Alchemist/Errors.js +1 -1
- package/lib/Alchemist/Errors.js.map +1 -1
- package/lib/Alchemist/Logs.d.ts +46 -0
- package/lib/Alchemist/Logs.d.ts.map +1 -0
- package/lib/Alchemist/{routes/logs.js → Logs.js} +21 -26
- package/lib/Alchemist/Logs.js.map +1 -0
- package/lib/Alchemist/Nuke.d.ts +69 -0
- package/lib/Alchemist/Nuke.d.ts.map +1 -0
- package/lib/Alchemist/Nuke.js +35 -0
- package/lib/Alchemist/Nuke.js.map +1 -0
- package/lib/Alchemist/Operations.d.ts +168 -0
- package/lib/Alchemist/Operations.d.ts.map +1 -0
- package/lib/Alchemist/Operations.js +165 -0
- package/lib/Alchemist/Operations.js.map +1 -0
- package/lib/Alchemist/Profile.d.ts +132 -0
- package/lib/Alchemist/Profile.d.ts.map +1 -0
- package/lib/Alchemist/{routes/profile.js → Profile.js} +20 -21
- package/lib/Alchemist/Profile.js.map +1 -0
- package/lib/Alchemist/{routes/provider.d.ts → Provider.d.ts} +4 -4
- package/lib/Alchemist/Provider.d.ts.map +1 -0
- package/lib/Alchemist/{routes/provider.js → Provider.js} +7 -6
- package/lib/Alchemist/Provider.js.map +1 -0
- package/lib/Alchemist/Runtime.d.ts +10 -6
- package/lib/Alchemist/Runtime.d.ts.map +1 -1
- package/lib/Alchemist/Runtime.js +38 -2
- package/lib/Alchemist/Runtime.js.map +1 -1
- package/lib/Alchemist/{routes/state.d.ts → State.d.ts} +36 -16
- package/lib/Alchemist/State.d.ts.map +1 -0
- package/lib/Alchemist/{routes/state.js → State.js} +50 -15
- package/lib/Alchemist/State.js.map +1 -0
- package/lib/Alchemist/index.d.ts +11 -10
- package/lib/Alchemist/index.d.ts.map +1 -1
- package/lib/Alchemist/index.js +10 -9
- package/lib/Alchemist/index.js.map +1 -1
- package/lib/Apply.d.ts +2 -8
- package/lib/Apply.d.ts.map +1 -1
- package/lib/Apply.js +364 -184
- package/lib/Apply.js.map +1 -1
- package/lib/Auth/AuthProvider.d.ts +24 -11
- package/lib/Auth/AuthProvider.d.ts.map +1 -1
- package/lib/Auth/AuthProvider.js +28 -12
- package/lib/Auth/AuthProvider.js.map +1 -1
- package/lib/Auth/BrowserOAuth.d.ts +6 -8
- package/lib/Auth/BrowserOAuth.d.ts.map +1 -1
- package/lib/Auth/BrowserOAuth.js +25 -41
- package/lib/Auth/BrowserOAuth.js.map +1 -1
- package/lib/Auth/Credentials.d.ts.map +1 -1
- package/lib/Auth/Credentials.js +2 -2
- package/lib/Auth/Credentials.js.map +1 -1
- package/lib/Auth/Demand.d.ts +4 -4
- package/lib/Auth/Demand.d.ts.map +1 -1
- package/lib/Auth/Demand.js +16 -10
- package/lib/Auth/Demand.js.map +1 -1
- package/lib/Auth/Env.d.ts +2 -1
- package/lib/Auth/Env.d.ts.map +1 -1
- package/lib/Auth/Env.js +4 -2
- package/lib/Auth/Env.js.map +1 -1
- package/lib/Auth/Inspect.d.ts +2 -2
- package/lib/Auth/Inspect.d.ts.map +1 -1
- package/lib/Auth/Inspect.js +3 -1
- package/lib/Auth/Inspect.js.map +1 -1
- package/lib/Auth/Lock.d.ts.map +1 -1
- package/lib/Auth/Lock.js +4 -8
- package/lib/Auth/Lock.js.map +1 -1
- package/lib/Auth/OAuthFlow.d.ts +3 -12
- package/lib/Auth/OAuthFlow.d.ts.map +1 -1
- package/lib/Auth/OAuthFlow.js +7 -17
- package/lib/Auth/OAuthFlow.js.map +1 -1
- package/lib/Auth/Paths.d.ts +2 -1
- package/lib/Auth/Paths.d.ts.map +1 -1
- package/lib/Auth/Paths.js +3 -2
- package/lib/Auth/Paths.js.map +1 -1
- package/lib/Auth/Profile.d.ts +10 -0
- package/lib/Auth/Profile.d.ts.map +1 -1
- package/lib/Auth/Profile.js +19 -2
- package/lib/Auth/Profile.js.map +1 -1
- package/lib/Auth/Registry.d.ts +20 -0
- package/lib/Auth/Registry.d.ts.map +1 -0
- package/lib/Auth/Registry.js +17 -0
- package/lib/Auth/Registry.js.map +1 -0
- package/lib/Auth/Resolve.d.ts +34 -2
- package/lib/Auth/Resolve.d.ts.map +1 -1
- package/lib/Auth/Resolve.js +51 -3
- package/lib/Auth/Resolve.js.map +1 -1
- package/lib/Auth/StoredAuthProvider.d.ts +1 -1
- package/lib/Auth/StoredAuthProvider.d.ts.map +1 -1
- package/lib/Auth/StoredAuthProvider.js +1 -2
- package/lib/Auth/StoredAuthProvider.js.map +1 -1
- package/lib/Binding.d.ts.map +1 -1
- package/lib/Binding.js +3 -1
- package/lib/Binding.js.map +1 -1
- package/lib/Bundle/Bundle.d.ts +5 -0
- package/lib/Bundle/Bundle.d.ts.map +1 -1
- package/lib/Bundle/Bundle.js +36 -6
- package/lib/Bundle/Bundle.js.map +1 -1
- package/lib/Bundle/NamespaceImportPlugin.d.ts +55 -0
- package/lib/Bundle/NamespaceImportPlugin.d.ts.map +1 -0
- package/lib/Bundle/NamespaceImportPlugin.js +226 -0
- package/lib/Bundle/NamespaceImportPlugin.js.map +1 -0
- package/lib/Bundle/index.d.ts +1 -0
- package/lib/Bundle/index.d.ts.map +1 -1
- package/lib/Bundle/index.js +1 -0
- package/lib/Bundle/index.js.map +1 -1
- package/lib/Cli/Format.d.ts.map +1 -1
- package/lib/Cli/Format.js +2 -1
- package/lib/Cli/Format.js.map +1 -1
- package/lib/Cli/GlobalLog.d.ts +72 -26
- package/lib/Cli/GlobalLog.d.ts.map +1 -1
- package/lib/Cli/GlobalLog.js +151 -59
- package/lib/Cli/GlobalLog.js.map +1 -1
- package/lib/Cli/LoggingCli.d.ts.map +1 -1
- package/lib/Cli/LoggingCli.js +24 -18
- package/lib/Cli/LoggingCli.js.map +1 -1
- package/lib/Cli/PlainCliFormatter.d.ts.map +1 -1
- package/lib/Cli/PlainCliFormatter.js +4 -1
- package/lib/Cli/PlainCliFormatter.js.map +1 -1
- package/lib/Cli/Present.d.ts +14 -0
- package/lib/Cli/Present.d.ts.map +1 -0
- package/lib/Cli/Present.js +22 -0
- package/lib/Cli/Present.js.map +1 -0
- package/lib/Cli/SigilRenderer.d.ts +58 -0
- package/lib/Cli/SigilRenderer.d.ts.map +1 -0
- package/lib/Cli/SigilRenderer.js +39 -0
- package/lib/Cli/SigilRenderer.js.map +1 -0
- package/lib/Cli/checkVersion.d.ts +11 -14
- package/lib/Cli/checkVersion.d.ts.map +1 -1
- package/lib/Cli/checkVersion.js +19 -77
- package/lib/Cli/checkVersion.js.map +1 -1
- package/lib/Cli/commands/confirm.d.ts +2 -2
- package/lib/Cli/commands/confirm.d.ts.map +1 -1
- package/lib/Cli/commands/confirm.js +3 -3
- package/lib/Cli/commands/confirm.js.map +1 -1
- package/lib/Cli/commands/deploy.d.ts +4 -4
- package/lib/Cli/commands/deploy.d.ts.map +1 -1
- package/lib/Cli/commands/deploy.js +40 -39
- package/lib/Cli/commands/deploy.js.map +1 -1
- package/lib/Cli/commands/dev.d.ts.map +1 -1
- package/lib/Cli/commands/dev.js +41 -3
- package/lib/Cli/commands/dev.js.map +1 -1
- package/lib/Cli/commands/drift.d.ts +2 -2
- package/lib/Cli/commands/drift.d.ts.map +1 -1
- package/lib/Cli/commands/drift.js +14 -13
- package/lib/Cli/commands/drift.js.map +1 -1
- package/lib/Cli/commands/errors.d.ts.map +1 -1
- package/lib/Cli/commands/errors.js +2 -1
- package/lib/Cli/commands/errors.js.map +1 -1
- package/lib/Cli/commands/instrument.d.ts +15 -5
- package/lib/Cli/commands/instrument.d.ts.map +1 -1
- package/lib/Cli/commands/instrument.js +33 -8
- package/lib/Cli/commands/instrument.js.map +1 -1
- package/lib/Cli/commands/logs.d.ts +1 -1
- package/lib/Cli/commands/logs.d.ts.map +1 -1
- package/lib/Cli/commands/logs.js +22 -22
- 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 +19 -17
- package/lib/Cli/commands/nuke.js.map +1 -1
- package/lib/Cli/commands/profile/commands.d.ts +3 -2
- package/lib/Cli/commands/profile/commands.d.ts.map +1 -1
- package/lib/Cli/commands/profile/commands.js +26 -27
- package/lib/Cli/commands/profile/commands.js.map +1 -1
- package/lib/Cli/commands/profile/flows.d.ts +6 -5
- package/lib/Cli/commands/profile/flows.d.ts.map +1 -1
- package/lib/Cli/commands/profile/flows.js +19 -17
- package/lib/Cli/commands/profile/flows.js.map +1 -1
- package/lib/Cli/commands/profile/hub.d.ts +1 -2
- package/lib/Cli/commands/profile/hub.d.ts.map +1 -1
- package/lib/Cli/commands/profile/hub.js +15 -17
- package/lib/Cli/commands/profile/hub.js.map +1 -1
- package/lib/Cli/commands/provider.d.ts +3 -1
- package/lib/Cli/commands/provider.d.ts.map +1 -1
- package/lib/Cli/commands/provider.js +4 -4
- package/lib/Cli/commands/provider.js.map +1 -1
- package/lib/Cli/commands/render.d.ts +2 -4
- package/lib/Cli/commands/render.d.ts.map +1 -1
- package/lib/Cli/commands/render.js +33 -56
- package/lib/Cli/commands/render.js.map +1 -1
- package/lib/Cli/commands/state.d.ts +1 -2
- package/lib/Cli/commands/state.d.ts.map +1 -1
- package/lib/Cli/commands/state.js +74 -27
- package/lib/Cli/commands/state.js.map +1 -1
- package/lib/Cli/components/capabilities.d.ts +4 -0
- package/lib/Cli/components/capabilities.d.ts.map +1 -0
- package/lib/Cli/components/capabilities.js +18 -0
- package/lib/Cli/components/capabilities.js.map +1 -0
- package/lib/Cli/components/types.d.ts +2 -81
- package/lib/Cli/components/types.d.ts.map +1 -1
- package/lib/Cli/components/types.js +1 -3
- package/lib/Cli/components/types.js.map +1 -1
- package/lib/Cli/components/ui/Environment.d.ts +3 -3
- package/lib/Cli/components/ui/Environment.d.ts.map +1 -1
- package/lib/Cli/components/ui/Environment.js.map +1 -1
- package/lib/Cli/components/ui/Interactive.d.ts +17 -4
- package/lib/Cli/components/ui/Interactive.d.ts.map +1 -1
- package/lib/Cli/components/ui/Interactive.js +7 -11
- package/lib/Cli/components/ui/Interactive.js.map +1 -1
- package/lib/Cli/components/ui/Layout.d.ts +1 -1
- package/lib/Cli/components/ui/Layout.d.ts.map +1 -1
- package/lib/Cli/components/ui/Layout.js +1 -1
- package/lib/Cli/components/ui/Layout.js.map +1 -1
- package/lib/Cli/components/ui/Typography.d.ts +1 -1
- package/lib/Cli/components/ui/Typography.d.ts.map +1 -1
- package/lib/Cli/components/ui/Typography.js +1 -1
- package/lib/Cli/components/ui/Typography.js.map +1 -1
- package/lib/Cli/components/ui/index.d.ts +2 -2
- package/lib/Cli/components/ui/index.js +2 -2
- package/lib/Cli/components/view/ApprovePlan.d.ts +1 -1
- package/lib/Cli/components/view/ApprovePlan.d.ts.map +1 -1
- package/lib/Cli/components/view/ApprovePlan.js +2 -1
- package/lib/Cli/components/view/ApprovePlan.js.map +1 -1
- package/lib/Cli/components/view/Format.d.ts +5 -0
- package/lib/Cli/components/view/Format.d.ts.map +1 -0
- package/lib/Cli/components/view/Format.js +39 -0
- package/lib/Cli/components/view/Format.js.map +1 -0
- package/lib/Cli/components/view/Help.d.ts +2 -2
- package/lib/Cli/components/view/Help.d.ts.map +1 -1
- package/lib/Cli/components/view/Help.js +7 -5
- package/lib/Cli/components/view/Help.js.map +1 -1
- package/lib/Cli/components/view/Logo.js +1 -1
- package/lib/Cli/components/view/Logo.js.map +1 -1
- package/lib/Cli/components/view/Nuke.d.ts +8 -9
- package/lib/Cli/components/view/Nuke.d.ts.map +1 -1
- package/lib/Cli/components/view/Nuke.js +49 -52
- package/lib/Cli/components/view/Nuke.js.map +1 -1
- package/lib/Cli/components/view/PlanDecision.d.ts +1 -1
- package/lib/Cli/components/view/PlanDecision.d.ts.map +1 -1
- package/lib/Cli/components/view/PlanDecision.js +1 -1
- package/lib/Cli/components/view/PlanDecision.js.map +1 -1
- package/lib/Cli/components/view/PlanRow.js +1 -1
- package/lib/Cli/components/view/PlanRow.js.map +1 -1
- package/lib/Cli/components/view/PlanTree.d.ts +1 -1
- package/lib/Cli/components/view/PlanTree.d.ts.map +1 -1
- package/lib/Cli/components/view/PlanTree.js +1 -1
- package/lib/Cli/components/view/PlanView.js +1 -1
- package/lib/Cli/components/view/PlanView.js.map +1 -1
- package/lib/Cli/components/view/Profile.d.ts +1 -1
- package/lib/Cli/components/view/Profile.js +2 -2
- package/lib/Cli/components/view/Profile.js.map +1 -1
- package/lib/Cli/components/view/ProfileDashboard.d.ts +4 -4
- package/lib/Cli/components/view/ProfileDashboard.d.ts.map +1 -1
- package/lib/Cli/components/view/ProfileDashboard.js +9 -8
- package/lib/Cli/components/view/ProfileDashboard.js.map +1 -1
- package/lib/Cli/components/view/Prompts.d.ts +3 -3
- package/lib/Cli/components/view/Prompts.d.ts.map +1 -1
- package/lib/Cli/components/view/Prompts.js +11 -18
- package/lib/Cli/components/view/Prompts.js.map +1 -1
- package/lib/Cli/components/view/Runtime.d.ts +5 -5
- package/lib/Cli/components/view/Runtime.d.ts.map +1 -1
- package/lib/Cli/components/view/Runtime.js +136 -219
- package/lib/Cli/components/view/Runtime.js.map +1 -1
- package/lib/Cli/components/view/SigilCli.d.ts +2 -2
- package/lib/Cli/components/view/SigilCli.d.ts.map +1 -1
- package/lib/Cli/components/view/SigilCli.js +7 -7
- package/lib/Cli/components/view/SigilCli.js.map +1 -1
- package/lib/Cli/components/view/StateExplorer.d.ts +1 -1
- package/lib/Cli/components/view/StateExplorer.d.ts.map +1 -1
- package/lib/Cli/components/view/StateExplorer.js +2 -1
- package/lib/Cli/components/view/StateExplorer.js.map +1 -1
- package/lib/Cli/components/view/statusStyle.d.ts +2 -2
- package/lib/Cli/components/view/statusStyle.d.ts.map +1 -1
- package/lib/Cli/components/view/statusStyle.js +1 -1
- package/lib/Cli/components/view/statusStyle.js.map +1 -1
- package/lib/Cli/exec.d.ts +6 -1
- package/lib/Cli/exec.d.ts.map +1 -1
- package/lib/Cli/exec.js +29 -34
- package/lib/Cli/exec.js.map +1 -1
- package/lib/Cli/main.d.ts.map +1 -1
- package/lib/Cli/main.js +35 -26
- package/lib/Cli/main.js.map +1 -1
- package/lib/Cli/selectCli.d.ts +2 -2
- package/lib/Cli/selectCli.d.ts.map +1 -1
- package/lib/Cli/selectCli.js +2 -2
- package/lib/Cli/selectCli.js.map +1 -1
- package/lib/Command/Command.js +1 -1
- package/lib/Command/Command.js.map +1 -1
- package/lib/Command/Dev.d.ts +58 -4
- package/lib/Command/Dev.d.ts.map +1 -1
- package/lib/Command/Dev.js +87 -30
- package/lib/Command/Dev.js.map +1 -1
- package/lib/Command/Local.d.ts +1 -1
- package/lib/Command/Memo.js +1 -1
- package/lib/Command/Memo.js.map +1 -1
- package/lib/Command/Providers.d.ts +1 -1
- package/lib/Command/Providers.d.ts.map +1 -1
- package/lib/Contributions.d.ts +2 -3
- package/lib/Contributions.d.ts.map +1 -1
- package/lib/Contributions.js +38 -6
- package/lib/Contributions.js.map +1 -1
- package/lib/DNS/Adapter.d.ts +204 -0
- package/lib/DNS/Adapter.d.ts.map +1 -0
- package/lib/DNS/Adapter.js +112 -0
- package/lib/DNS/Adapter.js.map +1 -0
- package/lib/DNS/index.d.ts +2 -0
- package/lib/DNS/index.d.ts.map +1 -0
- package/lib/DNS/index.js +2 -0
- package/lib/DNS/index.js.map +1 -0
- package/lib/Deploy.d.ts +7 -2
- package/lib/Deploy.d.ts.map +1 -1
- package/lib/Deploy.js +8 -3
- package/lib/Deploy.js.map +1 -1
- package/lib/Destroy.d.ts +5 -8
- package/lib/Destroy.d.ts.map +1 -1
- package/lib/Destroy.js +10 -7
- package/lib/Destroy.js.map +1 -1
- package/lib/Diff.d.ts.map +1 -1
- package/lib/Diff.js +14 -4
- package/lib/Diff.js.map +1 -1
- package/lib/Drift.d.ts +7 -7
- package/lib/Drift.d.ts.map +1 -1
- package/lib/Drift.js +184 -101
- package/lib/Drift.js.map +1 -1
- package/lib/EvalStack.d.ts +23 -0
- package/lib/EvalStack.d.ts.map +1 -0
- package/lib/EvalStack.js +47 -0
- package/lib/EvalStack.js.map +1 -0
- package/lib/Events.d.ts +210 -0
- package/lib/Events.d.ts.map +1 -0
- package/lib/Events.js +244 -0
- package/lib/Events.js.map +1 -0
- package/lib/Interaction.d.ts +159 -48
- package/lib/Interaction.d.ts.map +1 -1
- package/lib/Interaction.js +139 -58
- package/lib/Interaction.js.map +1 -1
- package/lib/Local/LocalProvider.d.ts.map +1 -1
- package/lib/Local/LocalProvider.js +31 -9
- package/lib/Local/LocalProvider.js.map +1 -1
- package/lib/Local/RpcProvider.d.ts.map +1 -1
- package/lib/Local/RpcProvider.js +10 -1
- package/lib/Local/RpcProvider.js.map +1 -1
- package/lib/Local/RpcProviderProxy.d.ts +16 -0
- package/lib/Local/RpcProviderProxy.d.ts.map +1 -1
- package/lib/Local/RpcProviderProxy.js +19 -10
- package/lib/Local/RpcProviderProxy.js.map +1 -1
- package/lib/Local/RpcSerialization.d.ts +3 -2
- package/lib/Local/RpcSerialization.d.ts.map +1 -1
- package/lib/Local/RpcSerialization.js +13 -10
- package/lib/Local/RpcSerialization.js.map +1 -1
- package/lib/Local/RpcServer.d.ts +2 -1
- package/lib/Local/RpcServer.d.ts.map +1 -1
- package/lib/Local/RpcServer.js +19 -14
- package/lib/Local/RpcServer.js.map +1 -1
- package/lib/Local/RpcServerBun.d.ts.map +1 -1
- package/lib/Local/RpcServerBun.js +8 -4
- package/lib/Local/RpcServerBun.js.map +1 -1
- package/lib/Local/RpcServerEnvironment.d.ts +2 -3
- package/lib/Local/RpcServerEnvironment.d.ts.map +1 -1
- package/lib/Local/RpcServerEnvironment.js +2 -2
- package/lib/Local/RpcServerEnvironment.js.map +1 -1
- package/lib/Local/RpcServerNode.d.ts.map +1 -1
- package/lib/Local/RpcServerNode.js +5 -1
- package/lib/Local/RpcServerNode.js.map +1 -1
- package/lib/Local/RpcServerSession.d.ts +1 -1
- package/lib/Local/RpcServerSession.d.ts.map +1 -1
- package/lib/Local/RpcServerSession.js.map +1 -1
- package/lib/Local/RpcSpawner.d.ts +6 -8
- package/lib/Local/RpcSpawner.d.ts.map +1 -1
- package/lib/Local/RpcSpawner.js +45 -36
- package/lib/Local/RpcSpawner.js.map +1 -1
- package/lib/Local/Sidecar.d.ts +23 -0
- package/lib/Local/Sidecar.d.ts.map +1 -1
- package/lib/Local/Sidecar.js +14 -9
- package/lib/Local/Sidecar.js.map +1 -1
- package/lib/Nuke.d.ts +5 -23
- package/lib/Nuke.d.ts.map +1 -1
- package/lib/Nuke.js +48 -13
- package/lib/Nuke.js.map +1 -1
- package/lib/Output.d.ts +19 -1
- package/lib/Output.d.ts.map +1 -1
- package/lib/Output.js +96 -3
- package/lib/Output.js.map +1 -1
- package/lib/Plan.d.ts +5 -1
- package/lib/Plan.d.ts.map +1 -1
- package/lib/Plan.js +111 -33
- package/lib/Plan.js.map +1 -1
- package/lib/Platform.d.ts.map +1 -1
- package/lib/Platform.js +31 -7
- package/lib/Platform.js.map +1 -1
- package/lib/Provider.d.ts +45 -0
- package/lib/Provider.d.ts.map +1 -1
- package/lib/Provider.js +2 -2
- package/lib/Provider.js.map +1 -1
- package/lib/Report.d.ts +17 -195
- package/lib/Report.d.ts.map +1 -1
- package/lib/Report.js +39 -12
- package/lib/Report.js.map +1 -1
- package/lib/Runtime/ManagedHttpShutdown.d.ts +17 -0
- package/lib/Runtime/ManagedHttpShutdown.d.ts.map +1 -1
- package/lib/Runtime/ManagedHttpShutdown.js +11 -2
- package/lib/Runtime/ManagedHttpShutdown.js.map +1 -1
- package/lib/RuntimeContext.js +1 -1
- package/lib/RuntimeContext.js.map +1 -1
- package/lib/Stack.d.ts +49 -29
- package/lib/Stack.d.ts.map +1 -1
- package/lib/Stack.js +25 -31
- package/lib/Stack.js.map +1 -1
- package/lib/State/BucketState.d.ts.map +1 -1
- package/lib/State/BucketState.js +43 -14
- package/lib/State/BucketState.js.map +1 -1
- package/lib/State/LocalState.d.ts.map +1 -1
- package/lib/State/LocalState.js +3 -3
- package/lib/State/LocalState.js.map +1 -1
- package/lib/State/Provisioning.d.ts +5 -0
- package/lib/State/Provisioning.d.ts.map +1 -1
- package/lib/State/Provisioning.js +3 -1
- package/lib/State/Provisioning.js.map +1 -1
- package/lib/State/ResourceState.d.ts +2 -0
- package/lib/State/ResourceState.d.ts.map +1 -1
- package/lib/State/State.d.ts +26 -0
- package/lib/State/State.d.ts.map +1 -1
- package/lib/State/StateEncoding.d.ts +7 -0
- package/lib/State/StateEncoding.d.ts.map +1 -1
- package/lib/State/StateEncoding.js +19 -0
- package/lib/State/StateEncoding.js.map +1 -1
- package/lib/State/index.js +2 -2
- package/lib/State/index.js.map +1 -1
- package/lib/Telemetry/Layer.d.ts +2 -5
- package/lib/Telemetry/Layer.d.ts.map +1 -1
- package/lib/Telemetry/Layer.js +3 -23
- package/lib/Telemetry/Layer.js.map +1 -1
- package/lib/Telemetry/Metrics.d.ts +1 -1
- package/lib/Telemetry/Metrics.d.ts.map +1 -1
- package/lib/TelemetryRelay.js +1 -1
- package/lib/TelemetryRelay.js.map +1 -1
- package/lib/TelemetryRuntime.d.ts +1 -1
- package/lib/TelemetryRuntime.d.ts.map +1 -1
- package/lib/TelemetryRuntime.js +4 -3
- package/lib/TelemetryRuntime.js.map +1 -1
- package/lib/Util/ConsoleSink.d.ts +23 -2
- package/lib/Util/ConsoleSink.d.ts.map +1 -1
- package/lib/Util/ConsoleSink.js +54 -14
- package/lib/Util/ConsoleSink.js.map +1 -1
- package/lib/Util/LogAnnotation.d.ts +19 -0
- package/lib/Util/LogAnnotation.d.ts.map +1 -0
- package/lib/Util/LogAnnotation.js +19 -0
- package/lib/Util/LogAnnotation.js.map +1 -0
- package/lib/Util/LogRecord.d.ts +281 -0
- package/lib/Util/LogRecord.d.ts.map +1 -0
- package/lib/Util/LogRecord.js +267 -0
- package/lib/Util/LogRecord.js.map +1 -0
- package/lib/Util/Node.d.ts +9 -0
- package/lib/Util/Node.d.ts.map +1 -1
- package/lib/Util/Node.js +10 -6
- package/lib/Util/Node.js.map +1 -1
- package/lib/Util/PlatformServices.d.ts +3 -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 +18 -10
- package/lib/Util/ResourceOutput.d.ts.map +1 -1
- package/lib/Util/ResourceOutput.js +22 -23
- package/lib/Util/ResourceOutput.js.map +1 -1
- package/lib/Util/Shutdown.d.ts +10 -0
- package/lib/Util/Shutdown.d.ts.map +1 -0
- package/lib/Util/Shutdown.js +32 -0
- package/lib/Util/Shutdown.js.map +1 -0
- package/lib/Util/Terminal.d.ts +2 -4
- package/lib/Util/Terminal.d.ts.map +1 -1
- package/lib/Util/Terminal.js +3 -11
- package/lib/Util/Terminal.js.map +1 -1
- package/lib/Util/TraceParent.d.ts +32 -0
- package/lib/Util/TraceParent.d.ts.map +1 -0
- package/lib/Util/TraceParent.js +42 -0
- package/lib/Util/TraceParent.js.map +1 -0
- package/lib/Util/base64.d.ts +7 -0
- package/lib/Util/base64.d.ts.map +1 -0
- package/lib/Util/base64.js +24 -0
- package/lib/Util/base64.js.map +1 -0
- package/lib/Util/cached-function.d.ts +5 -0
- package/lib/Util/cached-function.d.ts.map +1 -1
- package/lib/Util/cached-function.js +13 -8
- package/lib/Util/cached-function.js.map +1 -1
- package/lib/Util/data.d.ts +1 -1
- package/lib/Util/data.d.ts.map +1 -1
- package/lib/Util/data.js +1 -1
- package/lib/Util/data.js.map +1 -1
- package/lib/Util/equal.d.ts.map +1 -1
- package/lib/Util/equal.js +3 -2
- package/lib/Util/equal.js.map +1 -1
- package/lib/Util/extraFiles.d.ts.map +1 -1
- package/lib/Util/extraFiles.js +5 -5
- package/lib/Util/extraFiles.js.map +1 -1
- package/lib/Util/interactive.js +1 -1
- package/lib/Website/AstroOutput.d.ts +42 -0
- package/lib/Website/AstroOutput.d.ts.map +1 -0
- package/lib/Website/AstroOutput.js +34 -0
- package/lib/Website/AstroOutput.js.map +1 -0
- package/lib/Website/FrontendCore.d.ts +1 -1
- package/lib/Workflows.d.ts +9 -0
- package/lib/Workflows.d.ts.map +1 -1
- package/lib/Workflows.js +8 -0
- package/lib/Workflows.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +21 -28
- package/src/AdoptPolicy.ts +76 -0
- package/src/Alchemist/AuthRegistry.ts +164 -0
- package/src/Alchemist/Drift.ts +103 -0
- package/src/Alchemist/Entrypoint.ts +51 -3
- package/src/Alchemist/Errors.ts +1 -1
- package/src/Alchemist/{routes/logs.ts → Logs.ts} +28 -30
- package/src/Alchemist/Nuke.ts +90 -0
- package/src/Alchemist/Operations.ts +309 -0
- package/src/Alchemist/{routes/profile.ts → Profile.ts} +22 -22
- package/src/Alchemist/{routes/provider.ts → Provider.ts} +7 -6
- package/src/Alchemist/Runtime.ts +46 -12
- package/src/Alchemist/{routes/state.ts → State.ts} +78 -21
- package/src/Alchemist/index.ts +32 -15
- package/src/Apply.ts +513 -274
- package/src/Auth/AuthProvider.ts +76 -23
- package/src/Auth/BrowserOAuth.ts +37 -60
- package/src/Auth/Credentials.ts +2 -4
- package/src/Auth/Demand.ts +27 -18
- package/src/Auth/Env.ts +13 -8
- package/src/Auth/Inspect.ts +5 -2
- package/src/Auth/Lock.ts +4 -8
- package/src/Auth/OAuthFlow.ts +12 -26
- package/src/Auth/Paths.ts +3 -2
- package/src/Auth/Profile.ts +30 -2
- package/src/Auth/Registry.ts +27 -0
- package/src/Auth/Resolve.ts +75 -3
- package/src/Auth/StoredAuthProvider.ts +1 -2
- package/src/Binding.ts +3 -4
- package/src/Bundle/Bundle.ts +58 -7
- package/src/Bundle/NamespaceImportPlugin.ts +259 -0
- package/src/Bundle/index.ts +1 -0
- package/src/Cli/Format.ts +2 -1
- package/src/Cli/GlobalLog.ts +206 -68
- package/src/Cli/LoggingCli.ts +33 -20
- package/src/Cli/PlainCliFormatter.ts +4 -1
- package/src/Cli/Present.ts +34 -0
- package/src/Cli/SigilRenderer.ts +75 -0
- package/src/Cli/checkVersion.ts +25 -78
- package/src/Cli/commands/confirm.ts +3 -3
- package/src/Cli/commands/deploy.ts +53 -44
- package/src/Cli/commands/dev.ts +65 -7
- package/src/Cli/commands/drift.ts +20 -16
- package/src/Cli/commands/errors.ts +2 -3
- package/src/Cli/commands/instrument.ts +39 -8
- package/src/Cli/commands/logs.ts +22 -30
- package/src/Cli/commands/nuke.ts +25 -26
- package/src/Cli/commands/profile/commands.ts +34 -34
- package/src/Cli/commands/profile/flows.ts +26 -20
- package/src/Cli/commands/profile/hub.ts +16 -18
- package/src/Cli/commands/provider.ts +4 -4
- package/src/Cli/commands/render.ts +43 -71
- package/src/Cli/commands/state.ts +113 -33
- package/src/Cli/components/capabilities.ts +20 -0
- package/src/Cli/components/types.ts +13 -99
- package/src/Cli/components/ui/Environment.tsx +5 -5
- package/src/Cli/components/ui/Interactive.tsx +24 -15
- package/src/Cli/components/ui/Layout.tsx +1 -1
- package/src/Cli/components/ui/Typography.tsx +1 -1
- package/src/Cli/components/ui/index.ts +2 -2
- package/src/Cli/components/view/ApprovePlan.tsx +2 -1
- package/src/Cli/components/view/Format.tsx +58 -0
- package/src/Cli/components/view/Help.tsx +14 -17
- package/src/Cli/components/view/Logo.tsx +1 -1
- package/src/Cli/components/view/Nuke.tsx +74 -49
- package/src/Cli/components/view/PlanDecision.tsx +1 -1
- package/src/Cli/components/view/PlanRow.tsx +1 -1
- package/src/Cli/components/view/PlanTree.ts +2 -2
- package/src/Cli/components/view/PlanView.tsx +2 -2
- package/src/Cli/components/view/Profile.tsx +2 -2
- package/src/Cli/components/view/ProfileDashboard.tsx +12 -11
- package/src/Cli/components/view/Prompts.tsx +37 -75
- package/src/Cli/components/view/Runtime.tsx +132 -238
- package/src/Cli/components/view/SigilCli.tsx +12 -12
- package/src/Cli/components/view/StateExplorer.tsx +2 -1
- package/src/Cli/components/view/statusStyle.ts +2 -2
- package/src/Cli/exec.ts +48 -41
- package/src/Cli/main.ts +52 -33
- package/src/Cli/selectCli.ts +3 -3
- package/src/Command/Command.ts +1 -1
- package/src/Command/Dev.ts +129 -36
- package/src/Command/Memo.ts +1 -1
- package/src/Contributions.ts +42 -8
- package/src/DNS/Adapter.ts +289 -0
- package/src/DNS/index.ts +1 -0
- package/src/Deploy.ts +11 -3
- package/src/Destroy.ts +19 -13
- package/src/Diff.ts +17 -4
- package/src/Drift.ts +256 -127
- package/src/EvalStack.ts +97 -0
- package/src/Events.ts +296 -0
- package/src/Interaction.ts +332 -97
- package/src/Local/LocalProvider.ts +40 -9
- package/src/Local/RpcProvider.ts +11 -1
- package/src/Local/RpcProviderProxy.ts +29 -21
- package/src/Local/RpcSerialization.ts +32 -17
- package/src/Local/RpcServer.ts +25 -17
- package/src/Local/RpcServerBun.ts +10 -6
- package/src/Local/RpcServerEnvironment.ts +2 -2
- package/src/Local/RpcServerNode.ts +8 -1
- package/src/Local/RpcServerSession.ts +2 -2
- package/src/Local/RpcSpawner.ts +61 -37
- package/src/Local/Sidecar.ts +10 -1
- package/src/Nuke.ts +66 -43
- package/src/Output.ts +120 -7
- package/src/Plan.ts +140 -52
- package/src/Platform.ts +47 -18
- package/src/Provider.ts +48 -3
- package/src/Report.ts +77 -275
- package/src/Runtime/ManagedHttpShutdown.ts +21 -4
- package/src/RuntimeContext.ts +1 -1
- package/src/Stack.ts +113 -135
- package/src/State/BucketState.ts +53 -21
- package/src/State/LocalState.ts +7 -9
- package/src/State/Provisioning.ts +8 -1
- package/src/State/ResourceState.ts +2 -0
- package/src/State/State.ts +30 -0
- package/src/State/StateEncoding.ts +22 -0
- package/src/State/index.ts +2 -2
- package/src/Telemetry/Layer.ts +3 -24
- package/src/Telemetry/Metrics.ts +1 -1
- package/src/TelemetryRelay.ts +1 -1
- package/src/TelemetryRuntime.ts +8 -8
- package/src/Util/ConsoleSink.ts +76 -13
- package/src/Util/LogAnnotation.ts +18 -0
- package/src/Util/LogRecord.ts +386 -0
- package/src/Util/Node.ts +20 -6
- package/src/Util/PlatformServices.ts +17 -4
- package/src/Util/ResourceOutput.ts +26 -25
- package/src/Util/Shutdown.ts +52 -0
- package/src/Util/Terminal.ts +3 -20
- package/src/Util/TraceParent.ts +70 -0
- package/src/Util/base64.ts +22 -0
- package/src/Util/cached-function.ts +30 -19
- package/src/Util/data.ts +2 -2
- package/src/Util/equal.ts +3 -2
- package/src/Util/extraFiles.ts +9 -8
- package/src/Util/interactive.ts +1 -1
- package/src/Website/AstroOutput.ts +83 -0
- package/src/Workflows.ts +11 -0
- package/src/index.ts +1 -0
- package/lib/Alchemist/Progress.d.ts +0 -16
- package/lib/Alchemist/Progress.d.ts.map +0 -1
- package/lib/Alchemist/Progress.js +0 -123
- package/lib/Alchemist/Progress.js.map +0 -1
- package/lib/Alchemist/Session.d.ts +0 -116
- package/lib/Alchemist/Session.d.ts.map +0 -1
- package/lib/Alchemist/Session.js +0 -212
- package/lib/Alchemist/Session.js.map +0 -1
- package/lib/Alchemist/routes/drift.d.ts +0 -55
- package/lib/Alchemist/routes/drift.d.ts.map +0 -1
- package/lib/Alchemist/routes/drift.js +0 -52
- package/lib/Alchemist/routes/drift.js.map +0 -1
- package/lib/Alchemist/routes/logs.d.ts +0 -41
- package/lib/Alchemist/routes/logs.d.ts.map +0 -1
- package/lib/Alchemist/routes/logs.js.map +0 -1
- package/lib/Alchemist/routes/nuke.d.ts +0 -46
- package/lib/Alchemist/routes/nuke.d.ts.map +0 -1
- package/lib/Alchemist/routes/nuke.js +0 -80
- package/lib/Alchemist/routes/nuke.js.map +0 -1
- package/lib/Alchemist/routes/profile.d.ts +0 -133
- package/lib/Alchemist/routes/profile.d.ts.map +0 -1
- package/lib/Alchemist/routes/profile.js.map +0 -1
- package/lib/Alchemist/routes/provider.d.ts.map +0 -1
- package/lib/Alchemist/routes/provider.js.map +0 -1
- package/lib/Alchemist/routes/stack.d.ts +0 -95
- package/lib/Alchemist/routes/stack.d.ts.map +0 -1
- package/lib/Alchemist/routes/stack.js +0 -73
- package/lib/Alchemist/routes/stack.js.map +0 -1
- package/lib/Alchemist/routes/state.d.ts.map +0 -1
- package/lib/Alchemist/routes/state.js.map +0 -1
- package/lib/Cli/CliKit/CliKit.d.ts +0 -92
- package/lib/Cli/CliKit/CliKit.d.ts.map +0 -1
- package/lib/Cli/CliKit/CliKit.js +0 -27
- package/lib/Cli/CliKit/CliKit.js.map +0 -1
- package/lib/Cli/CliKit/index.d.ts +0 -9
- package/lib/Cli/CliKit/index.d.ts.map +0 -1
- package/lib/Cli/CliKit/index.js +0 -9
- package/lib/Cli/CliKit/index.js.map +0 -1
- package/lib/Cli/CliKit/interaction.d.ts +0 -13
- package/lib/Cli/CliKit/interaction.d.ts.map +0 -1
- package/lib/Cli/CliKit/interaction.js +0 -17
- package/lib/Cli/CliKit/interaction.js.map +0 -1
- package/lib/Cli/CliKit/layer.d.ts +0 -7
- package/lib/Cli/CliKit/layer.d.ts.map +0 -1
- package/lib/Cli/CliKit/layer.js +0 -33
- package/lib/Cli/CliKit/layer.js.map +0 -1
- package/lib/Local/DevLog.d.ts +0 -32
- package/lib/Local/DevLog.d.ts.map +0 -1
- package/lib/Local/DevLog.js +0 -112
- package/lib/Local/DevLog.js.map +0 -1
- package/lib/Test/Alchemy.d.ts +0 -79
- package/lib/Test/Alchemy.d.ts.map +0 -1
- package/lib/Test/Alchemy.js +0 -193
- package/lib/Test/Alchemy.js.map +0 -1
- package/lib/Test/Bun.d.ts +0 -69
- package/lib/Test/Bun.d.ts.map +0 -1
- package/lib/Test/Bun.js +0 -126
- package/lib/Test/Bun.js.map +0 -1
- package/lib/Test/Core.d.ts +0 -277
- package/lib/Test/Core.d.ts.map +0 -1
- package/lib/Test/Core.js +0 -362
- package/lib/Test/Core.js.map +0 -1
- package/lib/Test/Http.d.ts +0 -109
- package/lib/Test/Http.d.ts.map +0 -1
- package/lib/Test/Http.js +0 -123
- package/lib/Test/Http.js.map +0 -1
- package/lib/Test/TestState.d.ts +0 -12
- package/lib/Test/TestState.d.ts.map +0 -1
- package/lib/Test/TestState.js +0 -15
- package/lib/Test/TestState.js.map +0 -1
- package/lib/Test/Vitest.d.ts +0 -60
- package/lib/Test/Vitest.d.ts.map +0 -1
- package/lib/Test/Vitest.js +0 -132
- package/lib/Test/Vitest.js.map +0 -1
- package/lib/Test/index.d.ts +0 -3
- package/lib/Test/index.d.ts.map +0 -1
- package/lib/Test/index.js +0 -3
- package/lib/Test/index.js.map +0 -1
- package/lib/Util/FileLogger.d.ts +0 -7
- package/lib/Util/FileLogger.d.ts.map +0 -1
- package/lib/Util/FileLogger.js +0 -16
- package/lib/Util/FileLogger.js.map +0 -1
- package/src/Alchemist/Progress.ts +0 -167
- package/src/Alchemist/Session.ts +0 -415
- package/src/Alchemist/routes/drift.ts +0 -87
- package/src/Alchemist/routes/nuke.ts +0 -131
- package/src/Alchemist/routes/stack.ts +0 -173
- package/src/Cli/CliKit/CliKit.ts +0 -159
- package/src/Cli/CliKit/index.ts +0 -41
- package/src/Cli/CliKit/interaction.ts +0 -19
- package/src/Cli/CliKit/layer.ts +0 -44
- package/src/Local/DevLog.ts +0 -122
- package/src/Test/Alchemy.ts +0 -334
- package/src/Test/Bun.ts +0 -230
- package/src/Test/Core.ts +0 -785
- package/src/Test/Http.ts +0 -201
- package/src/Test/TestState.ts +0 -35
- package/src/Test/Vitest.ts +0 -239
- package/src/Test/index.ts +0 -2
- package/src/Util/FileLogger.ts +0 -20
package/lib/Test/Alchemy.js
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
/** @effect-diagnostics anyUnknownInErrorContext:off */
|
|
2
|
-
/**
|
|
3
|
-
* Test adapter for the `alchemy-test` runner (see `packages/alchemy-test`).
|
|
4
|
-
*
|
|
5
|
-
* Same shape as {@link "./Vitest.ts"} / {@link "./Bun.ts"}, but registers
|
|
6
|
-
* tests as raw Effects with the alchemy-test harness so the single-process
|
|
7
|
-
* runner can inject a buffering Logger/Console per test and manage
|
|
8
|
-
* concurrency + timeouts itself.
|
|
9
|
-
*/
|
|
10
|
-
import { currentFile, exclusiveOf, registerFileCleanup, registerHook, registerTest, retryOf, tagsOf, optInTagsOf, timeoutOf, } from "alchemy-test";
|
|
11
|
-
import * as Effect from "effect/Effect";
|
|
12
|
-
import * as Exit from "effect/Exit";
|
|
13
|
-
import * as Scope from "effect/Scope";
|
|
14
|
-
import * as Semaphore from "effect/Semaphore";
|
|
15
|
-
import * as Core from "./Core.js";
|
|
16
|
-
export { executeWhenReady, getWhenReady, guardContentType, guardedFetchLayer, rpcClientLayer, WorkerNotReady, } from "./Http.js";
|
|
17
|
-
export const ALCHEMY_TEST_DEV = Core.ALCHEMY_TEST_DEV;
|
|
18
|
-
export const resolveDev = Core.resolveDev;
|
|
19
|
-
export const defaultStage = Core.defaultStage;
|
|
20
|
-
export const resolveStage = Core.resolveStage;
|
|
21
|
-
const DEFAULT_TIMEOUT = 120_000;
|
|
22
|
-
/**
|
|
23
|
-
* Build the per-file test API. Configure providers / state once at the top of
|
|
24
|
-
* the test file:
|
|
25
|
-
*
|
|
26
|
-
* ```ts
|
|
27
|
-
* import * as Test from "@/Test/Alchemy";
|
|
28
|
-
* import * as Cloudflare from "@alchemy.run/cloudflare";
|
|
29
|
-
*
|
|
30
|
-
* const { test, deploy, destroy, beforeAll, afterAll } = Test.make({
|
|
31
|
-
* providers: Cloudflare.providers(),
|
|
32
|
-
* state: Cloudflare.state(),
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export const make = (options) => {
|
|
37
|
-
// Single scope shared across `beforeAll`, every `test`, and `afterAll`.
|
|
38
|
-
// Scoped resources in dev mode (the Cloudflare dev proxy and its workerd
|
|
39
|
-
// children) must outlive a single test boundary, otherwise the proxy is
|
|
40
|
-
// killed the moment `beforeAll(deploy(Stack))` resolves and every later
|
|
41
|
-
// `HttpClient.get(workerUrl)` hits a dead port. The scope is closed by
|
|
42
|
-
// `destroy(...)` (or by file cleanup below).
|
|
43
|
-
let sharedScope = Scope.makeUnsafe("sequential");
|
|
44
|
-
// Session ownership outlives a mid-file destroy, but not file cleanup.
|
|
45
|
-
let sidecar = Core.makeSidecarHandle(options);
|
|
46
|
-
const clearResults = new Set();
|
|
47
|
-
const wrap = (eff) => sharedScope === undefined
|
|
48
|
-
? Effect.die("Test runtime is closed")
|
|
49
|
-
: Core.toEffect(eff, options, sharedScope, sidecar);
|
|
50
|
-
const addTest = (name, eff, opts, mode) => registerTest({
|
|
51
|
-
name,
|
|
52
|
-
mode,
|
|
53
|
-
exclusive: exclusiveOf(opts),
|
|
54
|
-
retry: retryOf(opts),
|
|
55
|
-
timeout: timeoutOf(opts),
|
|
56
|
-
tags: tagsOf(opts),
|
|
57
|
-
optInTags: optInTagsOf(opts),
|
|
58
|
-
body: mode === "skip" || mode === "todo" ? undefined : () => wrap(eff),
|
|
59
|
-
});
|
|
60
|
-
const test = ((name, eff, opts) => {
|
|
61
|
-
addTest(name, eff, opts, "run");
|
|
62
|
-
});
|
|
63
|
-
test.skip = (name, eff, opts) => addTest(name, eff, opts, "skip");
|
|
64
|
-
test.skipIf = (condition) => (name, eff, opts) => addTest(name, eff, opts, condition ? "skip" : "run");
|
|
65
|
-
test.only = (name, eff, opts) => addTest(name, eff, opts, "only");
|
|
66
|
-
test.todo = (name, eff, opts) => addTest(name, eff, opts, "todo");
|
|
67
|
-
// One lock per scratch stack. When an attempt times out, the runner fires
|
|
68
|
-
// an interrupt and ABANDONS the attempt's fiber after a short grace — but
|
|
69
|
-
// the fiber keeps running its teardown (`scratch.destroy()` below) in the
|
|
70
|
-
// background, e.g. a CloudFront disable-wait. Without this lock the retry
|
|
71
|
-
// starts concurrently on the SAME scratch state: the stale teardown then
|
|
72
|
-
// deletes the state rows the retry just wrote for the same logical ids,
|
|
73
|
-
// orphaning the retry's cloud resources (observed: two leaked CloudFront
|
|
74
|
-
// distributions + buckets + OACs from one retried test). Holding the lock
|
|
75
|
-
// across body + teardown makes a retry wait (on its own timeout clock)
|
|
76
|
-
// until the previous attempt's teardown has fully settled.
|
|
77
|
-
const scratchLocks = new Map();
|
|
78
|
-
const scratchLock = (name) => {
|
|
79
|
-
let lock = scratchLocks.get(name);
|
|
80
|
-
if (lock === undefined) {
|
|
81
|
-
lock = Semaphore.makeUnsafe(1);
|
|
82
|
-
scratchLocks.set(name, lock);
|
|
83
|
-
}
|
|
84
|
-
return lock;
|
|
85
|
-
};
|
|
86
|
-
const wrapProvider = (name, fn, file) => {
|
|
87
|
-
if (sharedScope === undefined)
|
|
88
|
-
return Effect.die("Test runtime is closed");
|
|
89
|
-
// Durable, file-namespaced scratch state (`.alchemy/state`). A run that
|
|
90
|
-
// dies mid-delete — e.g. the runner abandons teardown 10s after a test
|
|
91
|
-
// timeout while a CloudFront disable-wait is still in flight — leaves
|
|
92
|
-
// its `deleting` rows on disk, so the NEXT run's leading
|
|
93
|
-
// `stack.destroy()` (or the ensuring teardown below) resumes and drains
|
|
94
|
-
// them instead of planning "no changes" and silently orphaning the
|
|
95
|
-
// cloud resource.
|
|
96
|
-
const scratch = Core.scratchStack(options, name, file);
|
|
97
|
-
// Guarantee teardown. `test.provider` has no built-in cleanup, so a body
|
|
98
|
-
// that fails (assertion, API error like a 409/Unauthorized) or is
|
|
99
|
-
// interrupted (timeout) BEFORE its trailing `stack.destroy()` would
|
|
100
|
-
// otherwise leak every cloud resource it deployed.
|
|
101
|
-
// `scratch.destroy()` is idempotent — a no-op when the body already
|
|
102
|
-
// destroyed, and it reclaims the orphans otherwise. `Effect.ensuring`
|
|
103
|
-
// runs the finalizer on success, failure, AND interruption.
|
|
104
|
-
const body = Core.withProviders(fn(scratch), options, scratch.name).pipe(Effect.ensuring(scratch.destroy().pipe(Effect.ignore)), scratchLock(scratch.name).withPermits(1));
|
|
105
|
-
return Core.toEffect(body, { ...options, state: scratch.state }, sharedScope, sidecar);
|
|
106
|
-
};
|
|
107
|
-
const addProvider = (name, fn, opts, mode) => {
|
|
108
|
-
// Captured at registration (module evaluation during collection) — the
|
|
109
|
-
// collection context is gone by the time the body runs.
|
|
110
|
-
const file = currentFile();
|
|
111
|
-
registerTest({
|
|
112
|
-
name,
|
|
113
|
-
mode,
|
|
114
|
-
exclusive: exclusiveOf(opts),
|
|
115
|
-
retry: retryOf(opts),
|
|
116
|
-
timeout: timeoutOf(opts),
|
|
117
|
-
tags: tagsOf(opts),
|
|
118
|
-
optInTags: optInTagsOf(opts),
|
|
119
|
-
body: mode === "run" ? () => wrapProvider(name, fn, file) : undefined,
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
const provider = ((name, fn, opts) => {
|
|
123
|
-
addProvider(name, fn, opts, "run");
|
|
124
|
-
});
|
|
125
|
-
provider.skip = (name, fn, opts) => addProvider(name, fn, opts, "skip");
|
|
126
|
-
provider.skipIf = (condition) => (name, fn, opts) => addProvider(name, fn, opts, condition ? "skip" : "run");
|
|
127
|
-
provider.todo = (name, fn, opts) => addProvider(name, fn, opts, "todo");
|
|
128
|
-
test.provider = provider;
|
|
129
|
-
const beforeAll = (eff, hookOptions) => {
|
|
130
|
-
let result;
|
|
131
|
-
clearResults.add(() => {
|
|
132
|
-
result = undefined;
|
|
133
|
-
});
|
|
134
|
-
registerHook("beforeAll", {
|
|
135
|
-
body: () => wrap(eff).pipe(Effect.map((value) => {
|
|
136
|
-
if (sharedScope !== undefined)
|
|
137
|
-
result = value;
|
|
138
|
-
})),
|
|
139
|
-
timeout: timeoutOf(hookOptions) ?? DEFAULT_TIMEOUT,
|
|
140
|
-
exclusive: exclusiveOf(hookOptions),
|
|
141
|
-
});
|
|
142
|
-
return Effect.sync(() => result);
|
|
143
|
-
};
|
|
144
|
-
const beforeEach = (eff, hookOptions) => {
|
|
145
|
-
registerHook("beforeEach", { body: () => wrap(eff), timeout: timeoutOf(hookOptions) });
|
|
146
|
-
};
|
|
147
|
-
const afterAll = ((eff, hookOptions) => {
|
|
148
|
-
registerHook("afterAll", {
|
|
149
|
-
body: () => wrap(eff),
|
|
150
|
-
timeout: timeoutOf(hookOptions) ?? DEFAULT_TIMEOUT,
|
|
151
|
-
exclusive: exclusiveOf(hookOptions),
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
afterAll.skipIf = (predicate) => (eff, hookOptions) => {
|
|
155
|
-
if (predicate)
|
|
156
|
-
return;
|
|
157
|
-
registerHook("afterAll", {
|
|
158
|
-
body: () => wrap(eff),
|
|
159
|
-
timeout: timeoutOf(hookOptions) ?? DEFAULT_TIMEOUT,
|
|
160
|
-
exclusive: exclusiveOf(hookOptions),
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
const afterEach = (eff, hookOptions) => {
|
|
164
|
-
registerHook("afterEach", { body: () => wrap(eff), timeout: timeoutOf(hookOptions) });
|
|
165
|
-
};
|
|
166
|
-
// `destroy(Stack)` needs the dev sidecar alive so it can call `sidecar.stop`
|
|
167
|
-
// for each worker. We close the shared scope only AFTER destroy completes.
|
|
168
|
-
// `Scope.close` on an already-closed scope is a no-op, so it's safe for both
|
|
169
|
-
// the destroy wrapper AND the fallback cleanup hook below to call it.
|
|
170
|
-
const closeScope = Effect.suspend(() => sharedScope === undefined ? Effect.void : Scope.close(sharedScope, Exit.void)).pipe(Effect.ignore);
|
|
171
|
-
// File cleanup runs after user afterAll, including skipped/failed imports.
|
|
172
|
-
// Interactive retries retain the runtime until the runner releases the file.
|
|
173
|
-
registerFileCleanup({
|
|
174
|
-
body: () => closeScope.pipe(Effect.ensuring(Effect.suspend(() => sidecar?.close ?? Effect.void)), Effect.ensuring(Effect.sync(() => {
|
|
175
|
-
sharedScope = undefined;
|
|
176
|
-
sidecar = undefined;
|
|
177
|
-
for (const clear of clearResults)
|
|
178
|
-
clear();
|
|
179
|
-
clearResults.clear();
|
|
180
|
-
}))),
|
|
181
|
-
timeout: DEFAULT_TIMEOUT,
|
|
182
|
-
});
|
|
183
|
-
return {
|
|
184
|
-
test,
|
|
185
|
-
beforeAll,
|
|
186
|
-
beforeEach,
|
|
187
|
-
afterAll,
|
|
188
|
-
afterEach,
|
|
189
|
-
deploy: Core.makeDeploy(options, sharedScope),
|
|
190
|
-
destroy: (stack, callOpts) => Core.destroy(options, stack, { ...callOpts, scope: sharedScope }).pipe(Effect.ensuring(closeScope)),
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
//# sourceMappingURL=Alchemy.js.map
|
package/lib/Test/Alchemy.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Alchemy.js","sourceRoot":"","sources":["../../src/Test/Alchemy.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD;;;;;;;GAOG;AACH,OAAO,EACL,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,MAAM,EACN,WAAW,EACX,SAAS,GAEV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,MAAM,eA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AAM,CAAC,CAAC;IAEtB,2EAA2E;IAC3E,6EAA6E;IAC7E,mBAAmB,CAAC;QAClB,IAAI,EAAE,GAAG,EAAE,CACT,UAAU,CAAC,IAAI,CACb,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,EACpE,MAAM,CAAC,QAAQ,CACb,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;YACf,WAAW,GAAG,SAAS,CAAC;YACxB,OAAO,GAAG,SAAS,CAAC;YACpB,KAAK,MAAM,KAAK,IAAI,YAAY;gBAAE,KAAK,EAAE,CAAC;YAC1C,YAAY,CAAC,KAAK,EAAE,CAAC;QACvB,CAAC,CAAC,CACH,CACF;QACH,OAAO,EAAE,eAAe;KACzB,CAAC,CAAC;IAEH,OAAO;QACL,IAAI;QACJ,SAAS;QACT,UAAU;QACV,QAAQ;QACR,SAAS;QACT,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC;QAC7C,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAC3B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC,IAAI,CACpE,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAC5B;KACJ,CAAC;AACJ,CAAC,CAAC"}
|
package/lib/Test/Bun.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/** @effect-diagnostics anyUnknownInErrorContext:off */
|
|
2
|
-
import bun from "bun:test";
|
|
3
|
-
import type { HookOptions } from "node:test";
|
|
4
|
-
import * as Effect from "effect/Effect";
|
|
5
|
-
import type { AlchemyContext } from "../AlchemyContext.ts";
|
|
6
|
-
import type { CompiledStack } from "../Stack.ts";
|
|
7
|
-
import type { Stage } from "../Stage.ts";
|
|
8
|
-
import * as Core from "./Core.ts";
|
|
9
|
-
export { executeWhenReady, getWhenReady, guardContentType, guardedFetchLayer, rpcClientLayer, WorkerNotReady, type EdgeGuardOptions, type WhenReadyOptions, } from "./Http.ts";
|
|
10
|
-
export type MakeOptions<ROut = any> = Core.MakeOptions<ROut>;
|
|
11
|
-
export type ScratchStack = Core.ScratchStack;
|
|
12
|
-
export type TestEffect<A, R = never> = Core.TestEffect<A, R>;
|
|
13
|
-
export declare const defaultStage: typeof Core.defaultStage;
|
|
14
|
-
export declare const resolveStage: typeof Core.resolveStage;
|
|
15
|
-
export interface TestApi {
|
|
16
|
-
test: TestFn;
|
|
17
|
-
beforeAll: BeforeAllFn;
|
|
18
|
-
beforeEach: BeforeEachFn;
|
|
19
|
-
afterAll: AfterAllFn;
|
|
20
|
-
afterEach: AfterEachFn;
|
|
21
|
-
deploy: Core.Deploy;
|
|
22
|
-
destroy: (stack: TestEffect<CompiledStack, Stage | AlchemyContext>, options?: {
|
|
23
|
-
stage?: string;
|
|
24
|
-
include?: never;
|
|
25
|
-
exclude?: never;
|
|
26
|
-
}) => ReturnType<typeof Core.destroy>;
|
|
27
|
-
}
|
|
28
|
-
interface TestFn {
|
|
29
|
-
(name: string, eff: TestEffect<void>, options?: bun.TestOptions): void;
|
|
30
|
-
skip: (name: string, eff: TestEffect<void>, options?: bun.TestOptions) => void;
|
|
31
|
-
skipIf: (condition: boolean) => (name: string, eff: TestEffect<void>, options?: bun.TestOptions) => void;
|
|
32
|
-
only: (name: string, eff: TestEffect<void>, options?: bun.TestOptions) => void;
|
|
33
|
-
todo: (name: string, eff: TestEffect<void>, options?: bun.TestOptions) => void;
|
|
34
|
-
provider: ProviderFn;
|
|
35
|
-
}
|
|
36
|
-
interface ProviderFn {
|
|
37
|
-
(name: string, fn: (stack: ScratchStack) => Effect.Effect<void, any, any>, options?: bun.TestOptions): void;
|
|
38
|
-
skip: (name: string, fn: (stack: ScratchStack) => Effect.Effect<void, any, any>, options?: bun.TestOptions) => void;
|
|
39
|
-
skipIf: (condition: boolean) => (name: string, fn: (stack: ScratchStack) => Effect.Effect<void, any, any>, options?: bun.TestOptions) => void;
|
|
40
|
-
}
|
|
41
|
-
interface BeforeAllFn {
|
|
42
|
-
<A>(eff: TestEffect<A>, options?: HookOptions): Effect.Effect<A>;
|
|
43
|
-
}
|
|
44
|
-
interface BeforeEachFn {
|
|
45
|
-
(eff: TestEffect<void>, options?: HookOptions): void;
|
|
46
|
-
}
|
|
47
|
-
interface AfterAllFn {
|
|
48
|
-
(eff: TestEffect<any>, options?: HookOptions): void;
|
|
49
|
-
skipIf: (predicate: boolean) => (eff: TestEffect<any>, options?: HookOptions) => void;
|
|
50
|
-
}
|
|
51
|
-
interface AfterEachFn {
|
|
52
|
-
(eff: TestEffect<void>, options?: HookOptions): void;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Build the per-file test API. Configure providers / state once at the top of
|
|
56
|
-
* the test file:
|
|
57
|
-
*
|
|
58
|
-
* ```ts
|
|
59
|
-
* import * as Test from "alchemy/Test/Bun";
|
|
60
|
-
* import * as Cloudflare from "@alchemy.run/cloudflare";
|
|
61
|
-
*
|
|
62
|
-
* const { test, deploy, destroy, beforeAll, afterAll } = Test.make({
|
|
63
|
-
* providers: Cloudflare.providers(),
|
|
64
|
-
* state: Cloudflare.state(),
|
|
65
|
-
* });
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
export declare const make: <ROut = any>(options: MakeOptions<ROut>) => TestApi;
|
|
69
|
-
//# sourceMappingURL=Bun.d.ts.map
|
package/lib/Test/Bun.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Bun.d.ts","sourceRoot":"","sources":["../../src/Test/Bun.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAA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CAAC;IACV,MAAM,EAAE,CACN,SAAS,EAAE,OAAO,KACf,CACH,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1D,OAAO,CAAC,EAAE,GAAG,CAAC,WAAW,KACtB,IAAI,CAAC;CACX;AAED,UAAU,WAAW;IACnB,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAClE;AAED,UAAU,YAAY;IACpB,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACtD;AAED,UAAU,UAAU;IAClB,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACpD,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;CACvF;AAED,UAAU,WAAW;IACnB,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACtD;AAID;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,IAAI,GAAI,IAAI,GAAG,GAAG,WAAW,WAAW,CAAC,IAAI,CAAC,KAAG,OA2H7D,CAAC"}
|
package/lib/Test/Bun.js
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/** @effect-diagnostics anyUnknownInErrorContext:off */
|
|
2
|
-
import bun from "bun:test";
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
4
|
-
import * as Exit from "effect/Exit";
|
|
5
|
-
import * as Scope from "effect/Scope";
|
|
6
|
-
import * as Core from "./Core.js";
|
|
7
|
-
export { executeWhenReady, getWhenReady, guardContentType, guardedFetchLayer, rpcClientLayer, WorkerNotReady, } from "./Http.js";
|
|
8
|
-
export const defaultStage = Core.defaultStage;
|
|
9
|
-
export const resolveStage = Core.resolveStage;
|
|
10
|
-
const DEFAULT_HOOK_TIMEOUT = { timeout: 120_000 };
|
|
11
|
-
/**
|
|
12
|
-
* Build the per-file test API. Configure providers / state once at the top of
|
|
13
|
-
* the test file:
|
|
14
|
-
*
|
|
15
|
-
* ```ts
|
|
16
|
-
* import * as Test from "alchemy/Test/Bun";
|
|
17
|
-
* import * as Cloudflare from "@alchemy.run/cloudflare";
|
|
18
|
-
*
|
|
19
|
-
* const { test, deploy, destroy, beforeAll, afterAll } = Test.make({
|
|
20
|
-
* providers: Cloudflare.providers(),
|
|
21
|
-
* state: Cloudflare.state(),
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export const make = (options) => {
|
|
26
|
-
// Single scope shared across `beforeAll`, every `test`, and `afterAll`.
|
|
27
|
-
// Scoped resources in dev mode (the Cloudflare sidecar process and its
|
|
28
|
-
// workerd children) must outlive a single `Effect.runPromise` boundary,
|
|
29
|
-
// otherwise the proxy is killed the moment `beforeAll(deploy(Stack))`
|
|
30
|
-
// resolves and every later `HttpClient.get(workerUrl)` hits a dead port.
|
|
31
|
-
// The scope is closed by `destroy(...)` (or never — the next test run
|
|
32
|
-
// reclaims any leaked sidecar via the lock file).
|
|
33
|
-
const sharedScope = Scope.makeUnsafe("sequential");
|
|
34
|
-
// In dev mode, run local providers behind one file-scoped RPC sidecar
|
|
35
|
-
// (the `alchemy dev` topology). Lives in its own scope — NOT sharedScope,
|
|
36
|
-
// which `destroy(Stack)` closes mid-file in self-contained tests — and is
|
|
37
|
-
// closed by the fallback afterAll below.
|
|
38
|
-
const sidecar = Core.makeSidecarHandle(options);
|
|
39
|
-
const runEff = (eff) => Core.run(eff, options, sharedScope, sidecar);
|
|
40
|
-
const test = ((name, eff, opts) => {
|
|
41
|
-
bun.test(name, () => runEff(eff), opts);
|
|
42
|
-
});
|
|
43
|
-
test.skip = (name, eff, opts) => {
|
|
44
|
-
bun.test.skip(name, () => runEff(eff), opts);
|
|
45
|
-
};
|
|
46
|
-
test.skipIf = (condition) => (name, eff, opts) => {
|
|
47
|
-
bun.test.skipIf(condition)(name, () => runEff(eff), opts);
|
|
48
|
-
};
|
|
49
|
-
test.only = (name, eff, opts) => {
|
|
50
|
-
bun.test.only(name, () => runEff(eff), opts);
|
|
51
|
-
};
|
|
52
|
-
test.todo = (name, eff, opts) => {
|
|
53
|
-
bun.test.todo(name, () => runEff(eff), opts);
|
|
54
|
-
};
|
|
55
|
-
const runProvider = (name, fn) => {
|
|
56
|
-
const scratch = Core.scratchStack(options, name);
|
|
57
|
-
return Core.run(Core.withProviders(fn(scratch), options, scratch.name), { ...options, state: scratch.state }, sharedScope, sidecar);
|
|
58
|
-
};
|
|
59
|
-
const provider = ((name, fn, opts) => {
|
|
60
|
-
bun.test(name, () => runProvider(name, fn), opts);
|
|
61
|
-
});
|
|
62
|
-
provider.skip = (name, fn, opts) => {
|
|
63
|
-
bun.test.skip(name, () => runProvider(name, fn), opts);
|
|
64
|
-
};
|
|
65
|
-
provider.skipIf = (condition) => (name, fn, opts) => {
|
|
66
|
-
bun.test.skipIf(condition)(name, () => runProvider(name, fn), opts);
|
|
67
|
-
};
|
|
68
|
-
test.provider = provider;
|
|
69
|
-
const beforeAll = (eff, hookOptions) => {
|
|
70
|
-
let result;
|
|
71
|
-
bun.beforeAll(() => runEff(eff).then((v) => (result = v)), hookOptions ?? DEFAULT_HOOK_TIMEOUT);
|
|
72
|
-
return Effect.sync(() => result);
|
|
73
|
-
};
|
|
74
|
-
const beforeEach = (eff, hookOptions) => {
|
|
75
|
-
bun.beforeEach(() => runEff(eff), hookOptions);
|
|
76
|
-
};
|
|
77
|
-
// bun:test stops running later `afterAll` hooks once one throws, which
|
|
78
|
-
// would skip the fallback cleanup hook below — leaking the shared scope
|
|
79
|
-
// and the sidecar for the rest of the process whenever a teardown
|
|
80
|
-
// assertion fails. Guard every user teardown: on failure, run the
|
|
81
|
-
// (idempotent) cleanup before rethrowing so the failure still fails the
|
|
82
|
-
// suite. (`closeAll` is initialized below; hooks only run after `make`
|
|
83
|
-
// returns.)
|
|
84
|
-
const guardTeardown = (eff) => () => runEff(eff).catch(async (error) => {
|
|
85
|
-
await Effect.runPromise(closeAll);
|
|
86
|
-
throw error;
|
|
87
|
-
});
|
|
88
|
-
const afterAll = ((eff, hookOptions) => {
|
|
89
|
-
bun.afterAll(guardTeardown(eff), hookOptions ?? DEFAULT_HOOK_TIMEOUT);
|
|
90
|
-
});
|
|
91
|
-
afterAll.skipIf = (predicate) => (eff, hookOptions) => {
|
|
92
|
-
if (predicate)
|
|
93
|
-
return;
|
|
94
|
-
bun.afterAll(guardTeardown(eff), hookOptions ?? DEFAULT_HOOK_TIMEOUT);
|
|
95
|
-
};
|
|
96
|
-
const afterEach = (eff, hookOptions) => {
|
|
97
|
-
bun.afterEach(() => runEff(eff), hookOptions);
|
|
98
|
-
};
|
|
99
|
-
// `destroy(Stack)` needs the dev sidecar alive so it can call `sidecar.stop`
|
|
100
|
-
// for each worker. We close the shared scope only AFTER destroy completes.
|
|
101
|
-
// `Scope.close` on an already-closed scope is a no-op, so it's safe for both
|
|
102
|
-
// the destroy wrapper AND the fallback cleanup hook below to call it.
|
|
103
|
-
const closeScope = Effect.suspend(() => Scope.close(sharedScope, Exit.void)).pipe(Effect.ignore);
|
|
104
|
-
// Fallback cleanup: if the user never calls `destroy(Stack)` (e.g.
|
|
105
|
-
// `NO_DESTROY=1`), nothing else closes the shared scope and the sidecar
|
|
106
|
-
// child process leaks past the test process. Register an `afterAll` that
|
|
107
|
-
// closes it (and the RPC sidecar, which lives in its own scope so that
|
|
108
|
-
// mid-file `destroy(Stack)` calls can't kill it for later tests). We defer
|
|
109
|
-
// registration to a microtask so it runs AFTER any user-registered
|
|
110
|
-
// `afterAll` (including `destroy(Stack)`); bun runs afterAll hooks in
|
|
111
|
-
// registration order.
|
|
112
|
-
const closeAll = sidecar ? Effect.andThen(closeScope, sidecar.close) : closeScope;
|
|
113
|
-
queueMicrotask(() => {
|
|
114
|
-
bun.afterAll(() => Effect.runPromise(closeAll), DEFAULT_HOOK_TIMEOUT);
|
|
115
|
-
});
|
|
116
|
-
return {
|
|
117
|
-
test,
|
|
118
|
-
beforeAll,
|
|
119
|
-
beforeEach,
|
|
120
|
-
afterAll,
|
|
121
|
-
afterEach,
|
|
122
|
-
deploy: Core.makeDeploy(options, sharedScope),
|
|
123
|
-
destroy: (stack, callOpts) => Core.destroy(options, stack, { ...callOpts, scope: sharedScope }).pipe(Effect.ensuring(closeScope)),
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
//# sourceMappingURL=Bun.js.map
|
package/lib/Test/Bun.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Bun.js","sourceRoot":"","sources":["../../src/Test/Bun.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,GAAG,MAAM,UAAU,CAAC;AAE3B,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAItC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,GAGf,MAAM,WAAW,CAAC;AAKnB,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;AAC9C,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;AA+D9C,MAAM,oBAAoB,GAAgB,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AAE/D;;;;;;;;;;;;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