alchemy 2.0.0-beta.84 → 2.0.0-beta.86
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/Action.d.ts.map +1 -1
- package/lib/Action.js.map +1 -1
- package/lib/ActionRuntimeContext.d.ts.map +1 -1
- package/lib/ActionRuntimeContext.js.map +1 -1
- 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 +45 -0
- package/lib/Alchemist/AuthRegistry.d.ts.map +1 -0
- package/lib/Alchemist/AuthRegistry.js +138 -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 +43 -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/State.d.ts +99 -0
- package/lib/Alchemist/State.d.ts.map +1 -0
- package/lib/Alchemist/State.js +172 -0
- 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/AlchemyContext.d.ts.map +1 -1
- package/lib/AlchemyContext.js.map +1 -1
- package/lib/Apply.d.ts +2 -8
- package/lib/Apply.d.ts.map +1 -1
- package/lib/Apply.js +372 -212
- package/lib/Apply.js.map +1 -1
- package/lib/Artifacts.d.ts.map +1 -1
- package/lib/Artifacts.js +7 -6
- package/lib/Artifacts.js.map +1 -1
- package/lib/Auth/AuthProvider.d.ts +31 -13
- package/lib/Auth/AuthProvider.d.ts.map +1 -1
- package/lib/Auth/AuthProvider.js +37 -14
- 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/CredentialsCache.d.ts.map +1 -1
- package/lib/Auth/CredentialsCache.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 +3 -2
- package/lib/Auth/Lock.d.ts.map +1 -1
- package/lib/Auth/Lock.js +7 -9
- package/lib/Auth/Lock.js.map +1 -1
- package/lib/Auth/OAuthFlow.d.ts +9 -12
- package/lib/Auth/OAuthFlow.d.ts.map +1 -1
- package/lib/Auth/OAuthFlow.js +35 -20
- package/lib/Auth/OAuthFlow.js.map +1 -1
- package/lib/Auth/OidcToken.d.ts.map +1 -1
- package/lib/Auth/OidcToken.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 +12 -1
- package/lib/Auth/Profile.d.ts.map +1 -1
- package/lib/Auth/Profile.js +22 -3
- package/lib/Auth/Profile.js.map +1 -1
- package/lib/Auth/ProfileMigrationV0.d.ts.map +1 -1
- package/lib/Auth/ProfileMigrationV0.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/Auth/index.d.ts.map +1 -1
- package/lib/Auth/index.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/BundleAnalyzerPlugin.d.ts.map +1 -1
- package/lib/Bundle/BundleAnalyzerPlugin.js.map +1 -1
- package/lib/Bundle/InstalledPackages.d.ts.map +1 -1
- package/lib/Bundle/InstalledPackages.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/PurePlugin.d.ts.map +1 -1
- package/lib/Bundle/PurePlugin.js.map +1 -1
- package/lib/Bundle/RawPlugin.d.ts.map +1 -1
- package/lib/Bundle/RawPlugin.js.map +1 -1
- package/lib/Bundle/TempRoot.d.ts.map +1 -1
- package/lib/Bundle/TempRoot.js.map +1 -1
- package/lib/Bundle/UnreachableChunksPlugin.d.ts.map +1 -1
- package/lib/Bundle/UnreachableChunksPlugin.js.map +1 -1
- package/lib/Bundle/Vite.d.ts.map +1 -1
- package/lib/Bundle/Vite.js.map +1 -1
- 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/Callback.d.ts.map +1 -1
- package/lib/Callback.js.map +1 -1
- package/lib/Cli/DevOptions.d.ts.map +1 -1
- package/lib/Cli/DevOptions.js.map +1 -1
- package/lib/Cli/Format.d.ts +3 -2
- package/lib/Cli/Format.d.ts.map +1 -1
- package/lib/Cli/Format.js +20 -11
- 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 +156 -61
- package/lib/Cli/GlobalLog.js.map +1 -1
- package/lib/Cli/JsonConsole.d.ts +12 -0
- package/lib/Cli/JsonConsole.d.ts.map +1 -0
- package/lib/Cli/JsonConsole.js +67 -0
- package/lib/Cli/JsonConsole.js.map +1 -0
- package/lib/Cli/LoggingCli.d.ts.map +1 -1
- package/lib/Cli/LoggingCli.js +32 -26
- package/lib/Cli/LoggingCli.js.map +1 -1
- package/lib/Cli/ModeTag.d.ts.map +1 -1
- package/lib/Cli/ModeTag.js.map +1 -1
- package/lib/Cli/NamespaceTree.d.ts.map +1 -1
- package/lib/Cli/NamespaceTree.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/PropertyDiff.d.ts.map +1 -1
- package/lib/Cli/PropertyDiff.js.map +1 -1
- package/lib/Cli/Reporter.d.ts.map +1 -1
- package/lib/Cli/Reporter.js.map +1 -1
- 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/compat.d.ts.map +1 -1
- package/lib/Cli/commands/compat.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 +45 -6
- package/lib/Cli/commands/dev.js.map +1 -1
- package/lib/Cli/commands/drift.d.ts +9 -2
- package/lib/Cli/commands/drift.d.ts.map +1 -1
- package/lib/Cli/commands/drift.js +28 -17
- 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 +6 -5
- package/lib/Cli/commands/errors.js.map +1 -1
- package/lib/Cli/commands/flags.d.ts.map +1 -1
- package/lib/Cli/commands/flags.js +3 -1
- package/lib/Cli/commands/flags.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 +23 -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 +23 -19
- 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/profile/index.d.ts.map +1 -1
- package/lib/Cli/commands/profile/index.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 +32 -5
- package/lib/Cli/commands/state.d.ts.map +1 -1
- package/lib/Cli/commands/state.js +230 -58
- 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/Data.d.ts.map +1 -1
- package/lib/Cli/components/ui/Data.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/Feedback.d.ts.map +1 -1
- package/lib/Cli/components/ui/Feedback.js.map +1 -1
- package/lib/Cli/components/ui/Interactive.d.ts +27 -5
- package/lib/Cli/components/ui/Interactive.d.ts.map +1 -1
- package/lib/Cli/components/ui/Interactive.js +12 -14
- 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/Live.d.ts +8 -1
- package/lib/Cli/components/ui/Live.d.ts.map +1 -1
- package/lib/Cli/components/ui/Live.js +46 -4
- package/lib/Cli/components/ui/Live.js.map +1 -1
- package/lib/Cli/components/ui/ProgramStatus.d.ts +13 -0
- package/lib/Cli/components/ui/ProgramStatus.d.ts.map +1 -0
- package/lib/Cli/components/ui/ProgramStatus.js +13 -0
- package/lib/Cli/components/ui/ProgramStatus.js.map +1 -0
- package/lib/Cli/components/ui/ProgressBar.d.ts.map +1 -1
- package/lib/Cli/components/ui/ProgressBar.js.map +1 -1
- package/lib/Cli/components/ui/Transcript.d.ts.map +1 -1
- package/lib/Cli/components/ui/Transcript.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 +3 -2
- package/lib/Cli/components/ui/index.d.ts.map +1 -1
- package/lib/Cli/components/ui/index.js +3 -2
- package/lib/Cli/components/ui/index.js.map +1 -1
- 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 +4 -2
- 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 +11 -8
- package/lib/Cli/components/view/Help.js.map +1 -1
- package/lib/Cli/components/view/Logo.d.ts.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 +2 -2
- package/lib/Cli/components/view/PlanDecision.js.map +1 -1
- package/lib/Cli/components/view/PlanRow.d.ts.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 +4 -2
- package/lib/Cli/components/view/PlanTree.d.ts.map +1 -1
- package/lib/Cli/components/view/PlanTree.js +4 -3
- package/lib/Cli/components/view/PlanTree.js.map +1 -1
- package/lib/Cli/components/view/PlanView.d.ts.map +1 -1
- package/lib/Cli/components/view/PlanView.js +5 -5
- 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.d.ts.map +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 +140 -218
- 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 +11 -10
- package/lib/Cli/components/view/SigilCli.js.map +1 -1
- package/lib/Cli/components/view/StackOutputs.d.ts.map +1 -1
- package/lib/Cli/components/view/StackOutputs.js +2 -2
- package/lib/Cli/components/view/StackOutputs.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/components/view/usePlanPresentation.d.ts.map +1 -1
- package/lib/Cli/components/view/usePlanPresentation.js +13 -1
- package/lib/Cli/components/view/usePlanPresentation.js.map +1 -1
- package/lib/Cli/components/view/usePlanViewport.d.ts.map +1 -1
- package/lib/Cli/components/view/usePlanViewport.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 +33 -35
- package/lib/Cli/exec.js.map +1 -1
- package/lib/Cli/index.d.ts.map +1 -1
- package/lib/Cli/index.js.map +1 -1
- package/lib/Cli/main.d.ts.map +1 -1
- package/lib/Cli/main.js +43 -29
- package/lib/Cli/main.js.map +1 -1
- package/lib/Cli/selectCli.d.ts +13 -3
- package/lib/Cli/selectCli.d.ts.map +1 -1
- package/lib/Cli/selectCli.js +39 -6
- package/lib/Cli/selectCli.js.map +1 -1
- package/lib/Command/Build.d.ts.map +1 -1
- package/lib/Command/Build.js.map +1 -1
- package/lib/Command/Command.d.ts.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/Exec.d.ts.map +1 -1
- package/lib/Command/Exec.js.map +1 -1
- package/lib/Command/Local.d.ts +1 -1
- package/lib/Command/Local.d.ts.map +1 -1
- package/lib/Command/Local.js.map +1 -1
- package/lib/Command/Memo.d.ts.map +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/Command/Providers.js.map +1 -1
- package/lib/Command/Redaction.d.ts.map +1 -1
- package/lib/Command/Redaction.js.map +1 -1
- package/lib/Command/index.d.ts.map +1 -1
- package/lib/Command/index.js.map +1 -1
- package/lib/Contributions.d.ts +83 -23
- package/lib/Contributions.d.ts.map +1 -1
- package/lib/Contributions.js +48 -8
- package/lib/Contributions.js.map +1 -1
- package/lib/DNS/Adapter.d.ts +206 -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/Dependencies.d.ts.map +1 -1
- package/lib/Dependencies.js.map +1 -1
- 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 +192 -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 +220 -0
- package/lib/Events.d.ts.map +1 -0
- package/lib/Events.js +276 -0
- package/lib/Events.js.map +1 -0
- package/lib/FQN.d.ts.map +1 -1
- package/lib/FQN.js.map +1 -1
- package/lib/Http.d.ts.map +1 -1
- package/lib/Http.js.map +1 -1
- package/lib/Input.d.ts.map +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/InstanceId.d.ts.map +1 -1
- package/lib/InstanceId.js.map +1 -1
- package/lib/Interaction.d.ts +166 -48
- package/lib/Interaction.d.ts.map +1 -1
- package/lib/Interaction.js +160 -63
- package/lib/Interaction.js.map +1 -1
- package/lib/KeyPair.d.ts.map +1 -1
- package/lib/KeyPair.js.map +1 -1
- package/lib/Local/DockerHostGateway.d.ts.map +1 -1
- package/lib/Local/DockerHostGateway.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/ProviderLayer.d.ts.map +1 -1
- package/lib/Local/ProviderLayer.js.map +1 -1
- package/lib/Local/RpcProvider.d.ts +2 -2
- 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 +36 -11
- package/lib/Local/RpcSerialization.js.map +1 -1
- package/lib/Local/RpcServer.d.ts +8 -2
- package/lib/Local/RpcServer.d.ts.map +1 -1
- package/lib/Local/RpcServer.js +26 -15
- package/lib/Local/RpcServer.js.map +1 -1
- package/lib/Local/RpcServerBun.d.ts.map +1 -1
- package/lib/Local/RpcServerBun.js +16 -6
- 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 +23 -4
- 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 +8 -8
- package/lib/Local/RpcSpawner.d.ts.map +1 -1
- package/lib/Local/RpcSpawner.js +67 -51
- package/lib/Local/RpcSpawner.js.map +1 -1
- package/lib/Local/RpcToken.d.ts +24 -0
- package/lib/Local/RpcToken.d.ts.map +1 -0
- package/lib/Local/RpcToken.js +62 -0
- package/lib/Local/RpcToken.js.map +1 -0
- package/lib/Local/Sidecar.d.ts +23 -0
- package/lib/Local/Sidecar.d.ts.map +1 -1
- package/lib/Local/Sidecar.js +23 -9
- package/lib/Local/Sidecar.js.map +1 -1
- package/lib/Mount.d.ts +76 -0
- package/lib/Mount.d.ts.map +1 -0
- package/lib/Mount.js +43 -0
- package/lib/Mount.js.map +1 -0
- package/lib/Named.d.ts.map +1 -1
- package/lib/Named.js.map +1 -1
- package/lib/Namespace.d.ts.map +1 -1
- package/lib/Namespace.js.map +1 -1
- package/lib/Nuke.d.ts +5 -23
- package/lib/Nuke.d.ts.map +1 -1
- package/lib/Nuke.js +49 -14
- package/lib/Nuke.js.map +1 -1
- package/lib/Output.d.ts +44 -3
- package/lib/Output.d.ts.map +1 -1
- package/lib/Output.js +144 -9
- package/lib/Output.js.map +1 -1
- package/lib/Phase.d.ts +2 -1
- package/lib/Phase.d.ts.map +1 -1
- package/lib/Phase.js.map +1 -1
- package/lib/PhysicalName.d.ts.map +1 -1
- package/lib/PhysicalName.js.map +1 -1
- package/lib/Plan.d.ts +23 -2
- package/lib/Plan.d.ts.map +1 -1
- package/lib/Plan.js +519 -183
- package/lib/Plan.js.map +1 -1
- package/lib/Platform.d.ts +5 -1
- package/lib/Platform.d.ts.map +1 -1
- package/lib/Platform.js +41 -10
- package/lib/Platform.js.map +1 -1
- package/lib/Provider.d.ts +84 -13
- package/lib/Provider.d.ts.map +1 -1
- package/lib/Provider.js +2 -2
- package/lib/Provider.js.map +1 -1
- package/lib/ProviderMode.d.ts.map +1 -1
- package/lib/ProviderMode.js.map +1 -1
- package/lib/Random.d.ts +1 -1
- package/lib/Random.d.ts.map +1 -1
- package/lib/Random.js.map +1 -1
- package/lib/Ref.d.ts.map +1 -1
- package/lib/Ref.js.map +1 -1
- package/lib/RemovalPolicy.d.ts +53 -2
- package/lib/RemovalPolicy.d.ts.map +1 -1
- package/lib/RemovalPolicy.js +43 -1
- package/lib/RemovalPolicy.js.map +1 -1
- package/lib/Rename.d.ts.map +1 -1
- package/lib/Rename.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/Resource.d.ts +72 -7
- package/lib/Resource.d.ts.map +1 -1
- package/lib/Resource.js +60 -2
- package/lib/Resource.js.map +1 -1
- package/lib/ResourceContext.d.ts.map +1 -1
- package/lib/ResourceContext.js.map +1 -1
- package/lib/ResourceSelection.d.ts.map +1 -1
- package/lib/ResourceSelection.js.map +1 -1
- package/lib/Rpc.d.ts +19 -0
- package/lib/Rpc.d.ts.map +1 -1
- package/lib/Rpc.js +62 -8
- package/lib/Rpc.js.map +1 -1
- package/lib/Runtime/Bootstrap.d.ts +6 -7
- package/lib/Runtime/Bootstrap.d.ts.map +1 -1
- package/lib/Runtime/Bootstrap.js +6 -10
- package/lib/Runtime/Bootstrap.js.map +1 -1
- package/lib/Runtime/ExecutionMemo.d.ts.map +1 -1
- package/lib/Runtime/ExecutionMemo.js.map +1 -1
- package/lib/Runtime/Function.d.ts.map +1 -1
- package/lib/Runtime/Function.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/Runtime/Process.d.ts +5 -0
- package/lib/Runtime/Process.d.ts.map +1 -1
- package/lib/Runtime/Process.js +36 -1
- package/lib/Runtime/Process.js.map +1 -1
- package/lib/Runtime.d.ts.map +1 -1
- package/lib/Runtime.js.map +1 -1
- package/lib/RuntimeContext.d.ts +29 -0
- package/lib/RuntimeContext.d.ts.map +1 -1
- package/lib/RuntimeContext.js +5 -1
- package/lib/RuntimeContext.js.map +1 -1
- package/lib/Sandbox.d.ts +144 -0
- package/lib/Sandbox.d.ts.map +1 -0
- package/lib/Sandbox.js +14 -0
- package/lib/Sandbox.js.map +1 -0
- package/lib/SandboxAgent.d.ts +55 -0
- package/lib/SandboxAgent.d.ts.map +1 -0
- package/lib/SandboxAgent.js +385 -0
- package/lib/SandboxAgent.js.map +1 -0
- package/lib/SandboxAgentClient.d.ts +154 -0
- package/lib/SandboxAgentClient.d.ts.map +1 -0
- package/lib/SandboxAgentClient.js +174 -0
- package/lib/SandboxAgentClient.js.map +1 -0
- package/lib/Schema.d.ts.map +1 -1
- package/lib/Schema.js.map +1 -1
- package/lib/Secrets/DotEnv.d.ts.map +1 -1
- package/lib/Secrets/DotEnv.js.map +1 -1
- package/lib/Secrets/Log.d.ts.map +1 -1
- package/lib/Secrets/Log.js.map +1 -1
- package/lib/Secrets/ProcessEnv.d.ts.map +1 -1
- package/lib/Secrets/ProcessEnv.js.map +1 -1
- package/lib/Secrets/Provider.d.ts +2 -1
- package/lib/Secrets/Provider.d.ts.map +1 -1
- package/lib/Secrets/Provider.js.map +1 -1
- package/lib/Secrets/index.d.ts.map +1 -1
- package/lib/Secrets/index.js.map +1 -1
- package/lib/Self.d.ts.map +1 -1
- package/lib/Self.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/StackContext.d.ts.map +1 -1
- package/lib/StackContext.js.map +1 -1
- package/lib/Stage.d.ts.map +1 -1
- package/lib/Stage.js.map +1 -1
- package/lib/State/ActionState.d.ts.map +1 -1
- package/lib/State/ActionState.js.map +1 -1
- package/lib/State/BucketState.d.ts +2 -1
- package/lib/State/BucketState.d.ts.map +1 -1
- package/lib/State/BucketState.js +52 -21
- package/lib/State/BucketState.js.map +1 -1
- package/lib/State/Export.d.ts.map +1 -1
- package/lib/State/Export.js.map +1 -1
- package/lib/State/HttpStateApi.d.ts.map +1 -1
- package/lib/State/HttpStateApi.js.map +1 -1
- package/lib/State/HttpStateStore.d.ts.map +1 -1
- package/lib/State/HttpStateStore.js.map +1 -1
- package/lib/State/InMemoryState.d.ts.map +1 -1
- package/lib/State/InMemoryState.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 +7 -1
- package/lib/State/Provisioning.d.ts.map +1 -1
- package/lib/State/Provisioning.js +6 -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/ResourceState.js.map +1 -1
- package/lib/State/State.d.ts +26 -0
- package/lib/State/State.d.ts.map +1 -1
- package/lib/State/State.js.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/Sync.d.ts.map +1 -1
- package/lib/State/Sync.js.map +1 -1
- package/lib/State/Tree.d.ts.map +1 -1
- package/lib/State/Tree.js.map +1 -1
- package/lib/State/index.d.ts.map +1 -1
- package/lib/State/index.js +2 -2
- package/lib/State/index.js.map +1 -1
- package/lib/Tags.d.ts.map +1 -1
- package/lib/Tags.js.map +1 -1
- package/lib/Telemetry/Attributes.d.ts.map +1 -1
- package/lib/Telemetry/Attributes.js +1 -0
- package/lib/Telemetry/Attributes.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/Telemetry/Metrics.js.map +1 -1
- package/lib/Telemetry.d.ts.map +1 -1
- package/lib/Telemetry.js.map +1 -1
- package/lib/TelemetryRelay.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/UserFacingError.d.ts.map +1 -1
- package/lib/UserFacingError.js.map +1 -1
- package/lib/Util/AtomicFile.d.ts.map +1 -1
- package/lib/Util/AtomicFile.js +3 -2
- package/lib/Util/AtomicFile.js.map +1 -1
- package/lib/Util/BatchedSink.d.ts.map +1 -1
- package/lib/Util/BatchedSink.js.map +1 -1
- package/lib/Util/ConfigProvider.d.ts.map +1 -1
- package/lib/Util/ConfigProvider.js +1 -0
- package/lib/Util/ConfigProvider.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 +56 -14
- package/lib/Util/ConsoleSink.js.map +1 -1
- package/lib/Util/Duration.d.ts.map +1 -1
- package/lib/Util/Duration.js.map +1 -1
- package/lib/Util/Http1Dispatcher.d.ts.map +1 -1
- package/lib/Util/Http1Dispatcher.js.map +1 -1
- package/lib/Util/Ignore.d.ts +3 -1
- package/lib/Util/Ignore.d.ts.map +1 -1
- package/lib/Util/Ignore.js +20 -11
- package/lib/Util/Ignore.js.map +1 -1
- package/lib/Util/LineBuffer.d.ts.map +1 -1
- package/lib/Util/LineBuffer.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/Memoize.d.ts.map +1 -1
- package/lib/Util/Memoize.js.map +1 -1
- 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 +18 -3
- package/lib/Util/PlatformServices.js.map +1 -1
- package/lib/Util/Redaction.d.ts.map +1 -1
- package/lib/Util/Redaction.js.map +1 -1
- package/lib/Util/ResourceOutput.d.ts +22 -11
- package/lib/Util/ResourceOutput.d.ts.map +1 -1
- package/lib/Util/ResourceOutput.js +28 -26
- 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/Stream.d.ts.map +1 -1
- package/lib/Util/Stream.js.map +1 -1
- package/lib/Util/Terminal.d.ts +23 -12
- package/lib/Util/Terminal.d.ts.map +1 -1
- package/lib/Util/Terminal.js +26 -45
- package/lib/Util/Terminal.js.map +1 -1
- package/lib/Util/Theme.d.ts.map +1 -1
- package/lib/Util/Theme.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/base32.d.ts.map +1 -1
- package/lib/Util/base32.js.map +1 -1
- 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/camel.d.ts.map +1 -1
- package/lib/Util/camel.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/dedent.d.ts.map +1 -1
- package/lib/Util/dedent.js.map +1 -1
- package/lib/Util/effect.d.ts.map +1 -1
- package/lib/Util/effect.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/exec.d.ts.map +1 -1
- package/lib/Util/exec.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/index.d.ts.map +1 -1
- package/lib/Util/index.js.map +1 -1
- package/lib/Util/interactive.d.ts.map +1 -1
- package/lib/Util/interactive.js +1 -1
- package/lib/Util/interactive.js.map +1 -1
- package/lib/Util/ip-address.d.ts.map +1 -1
- package/lib/Util/ip-address.js.map +1 -1
- package/lib/Util/isPathWithin.d.ts.map +1 -1
- package/lib/Util/isPathWithin.js.map +1 -1
- package/lib/Util/layer-scoped.d.ts.map +1 -1
- package/lib/Util/layer-scoped.js.map +1 -1
- package/lib/Util/md5.d.ts.map +1 -1
- package/lib/Util/md5.js.map +1 -1
- package/lib/Util/poll.d.ts.map +1 -1
- package/lib/Util/poll.js.map +1 -1
- package/lib/Util/scc.d.ts +7 -1
- package/lib/Util/scc.d.ts.map +1 -1
- package/lib/Util/scc.js +16 -15
- package/lib/Util/scc.js.map +1 -1
- package/lib/Util/service.d.ts.map +1 -1
- package/lib/Util/service.js.map +1 -1
- package/lib/Util/sha256.d.ts.map +1 -1
- package/lib/Util/sha256.js.map +1 -1
- package/lib/Util/stable.d.ts.map +1 -1
- package/lib/Util/stable.js.map +1 -1
- package/lib/Util/tarGzip.d.ts +2 -1
- package/lib/Util/tarGzip.d.ts.map +1 -1
- package/lib/Util/tarGzip.js.map +1 -1
- package/lib/Util/type.d.ts.map +1 -1
- package/lib/Util/type.js.map +1 -1
- package/lib/Util/types.d.ts.map +1 -1
- package/lib/Util/types.js.map +1 -1
- package/lib/Util/unknown.d.ts.map +1 -1
- package/lib/Util/unknown.js.map +1 -1
- package/lib/Util/zip.d.ts.map +1 -1
- package/lib/Util/zip.js.map +1 -1
- package/lib/WebhookHost.d.ts.map +1 -1
- package/lib/WebhookHost.js.map +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/Website/FrontendCore.d.ts.map +1 -1
- package/lib/Website/FrontendCore.js.map +1 -1
- package/lib/Website/Server.d.ts.map +1 -1
- package/lib/Website/Server.js +11 -1
- package/lib/Website/Server.js.map +1 -1
- package/lib/Website/ServerLocal.d.ts.map +1 -1
- package/lib/Website/ServerLocal.js.map +1 -1
- package/lib/Website/assets.d.ts.map +1 -1
- package/lib/Website/assets.js.map +1 -1
- package/lib/Website/packExtraFiles.d.ts.map +1 -1
- package/lib/Website/packExtraFiles.js.map +1 -1
- package/lib/Workers/DurableObject.d.ts +118 -0
- package/lib/Workers/DurableObject.d.ts.map +1 -0
- package/lib/Workers/DurableObject.js +146 -0
- package/lib/Workers/DurableObject.js.map +1 -0
- package/lib/Workers/DurableObjectBridge.d.ts +100 -0
- package/lib/Workers/DurableObjectBridge.d.ts.map +1 -0
- package/lib/Workers/DurableObjectBridge.js +146 -0
- package/lib/Workers/DurableObjectBridge.js.map +1 -0
- package/lib/Workers/DurableObjectEngine.d.ts +51 -0
- package/lib/Workers/DurableObjectEngine.d.ts.map +1 -0
- package/lib/Workers/DurableObjectEngine.js +331 -0
- package/lib/Workers/DurableObjectEngine.js.map +1 -0
- package/lib/Workers/EffectRpc.d.ts +25 -0
- package/lib/Workers/EffectRpc.d.ts.map +1 -0
- package/lib/Workers/EffectRpc.js +25 -0
- package/lib/Workers/EffectRpc.js.map +1 -0
- package/lib/Workers/EventLifetime.d.ts +57 -0
- package/lib/Workers/EventLifetime.d.ts.map +1 -0
- package/lib/Workers/EventLifetime.js +73 -0
- package/lib/Workers/EventLifetime.js.map +1 -0
- package/lib/Workers/InputGate.d.ts +107 -0
- package/lib/Workers/InputGate.d.ts.map +1 -0
- package/lib/Workers/InputGate.js +183 -0
- package/lib/Workers/InputGate.js.map +1 -0
- package/lib/Workers/RpcWebSocketClient.d.ts +30 -0
- package/lib/Workers/RpcWebSocketClient.d.ts.map +1 -0
- package/lib/Workers/RpcWebSocketClient.js +25 -0
- package/lib/Workers/RpcWebSocketClient.js.map +1 -0
- package/lib/Workers/Worker.d.ts +80 -0
- package/lib/Workers/Worker.d.ts.map +1 -0
- package/lib/Workers/Worker.js +150 -0
- package/lib/Workers/Worker.js.map +1 -0
- package/lib/Workers/WorkerBridge.d.ts +70 -0
- package/lib/Workers/WorkerBridge.d.ts.map +1 -0
- package/lib/Workers/WorkerBridge.js +91 -0
- package/lib/Workers/WorkerBridge.js.map +1 -0
- package/lib/Workers/WorkerEnvironment.d.ts +10 -0
- package/lib/Workers/WorkerEnvironment.d.ts.map +1 -0
- package/lib/Workers/WorkerEnvironment.js +8 -0
- package/lib/Workers/WorkerEnvironment.js.map +1 -0
- package/lib/Workers/Workerd/AlarmCallback.d.ts +26 -0
- package/lib/Workers/Workerd/AlarmCallback.d.ts.map +1 -0
- package/lib/Workers/Workerd/AlarmCallback.js +343 -0
- package/lib/Workers/Workerd/AlarmCallback.js.map +1 -0
- package/lib/Workers/Workerd/Bundle.d.ts +82 -0
- package/lib/Workers/Workerd/Bundle.d.ts.map +1 -0
- package/lib/Workers/Workerd/Bundle.js +166 -0
- package/lib/Workers/Workerd/Bundle.js.map +1 -0
- package/lib/Workers/Workerd/DurableObjectAlarmStorage.d.ts +14 -0
- package/lib/Workers/Workerd/DurableObjectAlarmStorage.d.ts.map +1 -0
- package/lib/Workers/Workerd/DurableObjectAlarmStorage.js +84 -0
- package/lib/Workers/Workerd/DurableObjectAlarmStorage.js.map +1 -0
- package/lib/Workers/Workerd/DurableObjectBridge.d.ts +50 -0
- package/lib/Workers/Workerd/DurableObjectBridge.d.ts.map +1 -0
- package/lib/Workers/Workerd/DurableObjectBridge.js +77 -0
- package/lib/Workers/Workerd/DurableObjectBridge.js.map +1 -0
- package/lib/Workers/Workerd/DurableObjectState.d.ts +92 -0
- package/lib/Workers/Workerd/DurableObjectState.d.ts.map +1 -0
- package/lib/Workers/Workerd/DurableObjectState.js +39 -0
- package/lib/Workers/Workerd/DurableObjectState.js.map +1 -0
- package/lib/Workers/Workerd/DurableObjectStorage.d.ts +89 -0
- package/lib/Workers/Workerd/DurableObjectStorage.d.ts.map +1 -0
- package/lib/Workers/Workerd/DurableObjectStorage.js +248 -0
- package/lib/Workers/Workerd/DurableObjectStorage.js.map +1 -0
- package/lib/Workers/Workerd/DurableObjectTransactionContext.d.ts +13 -0
- package/lib/Workers/Workerd/DurableObjectTransactionContext.d.ts.map +1 -0
- package/lib/Workers/Workerd/DurableObjectTransactionContext.js +5 -0
- package/lib/Workers/Workerd/DurableObjectTransactionContext.js.map +1 -0
- package/lib/Workers/Workerd/HttpServer.d.ts +12 -0
- package/lib/Workers/Workerd/HttpServer.d.ts.map +1 -0
- package/lib/Workers/Workerd/HttpServer.js +104 -0
- package/lib/Workers/Workerd/HttpServer.js.map +1 -0
- package/lib/Workers/Workerd/Module.d.ts +14 -0
- package/lib/Workers/Workerd/Module.d.ts.map +1 -0
- package/lib/Workers/Workerd/Module.js +23 -0
- package/lib/Workers/Workerd/Module.js.map +1 -0
- package/lib/Workers/Workerd/Request.d.ts +6 -0
- package/lib/Workers/Workerd/Request.d.ts.map +1 -0
- package/lib/Workers/Workerd/Request.js +4 -0
- package/lib/Workers/Workerd/Request.js.map +1 -0
- package/lib/Workers/Workerd/RpcDurableObject.d.ts +18 -0
- package/lib/Workers/Workerd/RpcDurableObject.d.ts.map +1 -0
- package/lib/Workers/Workerd/RpcDurableObject.js +66 -0
- package/lib/Workers/Workerd/RpcDurableObject.js.map +1 -0
- package/lib/Workers/Workerd/RpcWebSocket.d.ts +25 -0
- package/lib/Workers/Workerd/RpcWebSocket.d.ts.map +1 -0
- package/lib/Workers/Workerd/RpcWebSocket.js +248 -0
- package/lib/Workers/Workerd/RpcWebSocket.js.map +1 -0
- package/lib/Workers/Workerd/ScheduledEvents.d.ts +22 -0
- package/lib/Workers/Workerd/ScheduledEvents.d.ts.map +1 -0
- package/lib/Workers/Workerd/ScheduledEvents.js +119 -0
- package/lib/Workers/Workerd/ScheduledEvents.js.map +1 -0
- package/lib/Workers/Workerd/WebSocket.d.ts +71 -0
- package/lib/Workers/Workerd/WebSocket.d.ts.map +1 -0
- package/lib/Workers/Workerd/WebSocket.js +66 -0
- package/lib/Workers/Workerd/WebSocket.js.map +1 -0
- package/lib/Workers/Workerd/WorkerBridge.d.ts +41 -0
- package/lib/Workers/Workerd/WorkerBridge.d.ts.map +1 -0
- package/lib/Workers/Workerd/WorkerBridge.js +80 -0
- package/lib/Workers/Workerd/WorkerBridge.js.map +1 -0
- package/lib/Workers/Workerd/WorkerEvent.d.ts +18 -0
- package/lib/Workers/Workerd/WorkerEvent.d.ts.map +1 -0
- package/lib/Workers/Workerd/WorkerEvent.js +12 -0
- package/lib/Workers/Workerd/WorkerEvent.js.map +1 -0
- package/lib/Workers/Workerd/WorkerModulePlugin.d.ts +23 -0
- package/lib/Workers/Workerd/WorkerModulePlugin.d.ts.map +1 -0
- package/lib/Workers/Workerd/WorkerModulePlugin.js +52 -0
- package/lib/Workers/Workerd/WorkerModulePlugin.js.map +1 -0
- package/lib/Workers/Workerd/WorkerRuntimeContext.d.ts +26 -0
- package/lib/Workers/Workerd/WorkerRuntimeContext.d.ts.map +1 -0
- package/lib/Workers/Workerd/WorkerRuntimeContext.js +129 -0
- package/lib/Workers/Workerd/WorkerRuntimeContext.js.map +1 -0
- package/lib/Workers/Workerd/internal/StorageTransaction.d.ts +10 -0
- package/lib/Workers/Workerd/internal/StorageTransaction.d.ts.map +1 -0
- package/lib/Workers/Workerd/internal/StorageTransaction.js +15 -0
- package/lib/Workers/Workerd/internal/StorageTransaction.js.map +1 -0
- package/lib/Workers/WorkflowFailure.d.ts +47 -0
- package/lib/Workers/WorkflowFailure.d.ts.map +1 -0
- package/lib/Workers/WorkflowFailure.js +363 -0
- package/lib/Workers/WorkflowFailure.js.map +1 -0
- package/lib/Workers.d.ts +14 -0
- package/lib/Workers.d.ts.map +1 -0
- package/lib/Workers.js +14 -0
- package/lib/Workers.js.map +1 -0
- package/lib/WorkflowEncoding.d.ts.map +1 -1
- package/lib/WorkflowEncoding.js.map +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 +25 -31
- package/src/AdoptPolicy.ts +76 -0
- package/src/Alchemist/AuthRegistry.ts +224 -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} +127 -42
- package/src/Alchemist/index.ts +32 -15
- package/src/Apply.ts +522 -305
- package/src/Artifacts.ts +14 -7
- package/src/Auth/AuthProvider.ts +121 -36
- 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 +7 -9
- package/src/Auth/OAuthFlow.ts +50 -29
- package/src/Auth/Paths.ts +3 -2
- package/src/Auth/Profile.ts +34 -3
- 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 +18 -12
- package/src/Cli/GlobalLog.ts +211 -70
- package/src/Cli/JsonConsole.ts +87 -0
- package/src/Cli/LoggingCli.ts +41 -28
- package/src/Cli/PlainCliFormatter.ts +4 -1
- package/src/Cli/Present.ts +34 -0
- package/src/Cli/SigilRenderer.ts +72 -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 +69 -10
- package/src/Cli/commands/drift.ts +36 -19
- package/src/Cli/commands/errors.ts +8 -17
- package/src/Cli/commands/flags.ts +3 -1
- package/src/Cli/commands/instrument.ts +39 -8
- package/src/Cli/commands/logs.ts +23 -30
- package/src/Cli/commands/nuke.ts +32 -27
- 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 +316 -89
- 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 +36 -15
- package/src/Cli/components/ui/Layout.tsx +1 -1
- package/src/Cli/components/ui/Live.tsx +89 -10
- package/src/Cli/components/ui/ProgramStatus.ts +14 -0
- package/src/Cli/components/ui/Typography.tsx +1 -1
- package/src/Cli/components/ui/index.ts +3 -2
- package/src/Cli/components/view/ApprovePlan.tsx +4 -1
- package/src/Cli/components/view/Format.tsx +58 -0
- package/src/Cli/components/view/Help.tsx +18 -20
- 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 +2 -1
- package/src/Cli/components/view/PlanRow.tsx +1 -1
- package/src/Cli/components/view/PlanTree.ts +12 -4
- package/src/Cli/components/view/PlanView.tsx +6 -3
- 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 +138 -238
- package/src/Cli/components/view/SigilCli.tsx +26 -21
- package/src/Cli/components/view/StackOutputs.tsx +2 -2
- package/src/Cli/components/view/StateExplorer.tsx +2 -1
- package/src/Cli/components/view/statusStyle.ts +2 -2
- package/src/Cli/components/view/usePlanPresentation.ts +15 -1
- package/src/Cli/exec.ts +52 -42
- package/src/Cli/main.ts +60 -36
- package/src/Cli/selectCli.ts +58 -6
- 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 +142 -29
- package/src/DNS/Adapter.ts +290 -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 +268 -127
- package/src/EvalStack.ts +97 -0
- package/src/Events.ts +330 -0
- package/src/Interaction.ts +370 -105
- package/src/Local/LocalProvider.ts +40 -9
- package/src/Local/RpcProvider.ts +26 -7
- package/src/Local/RpcProviderProxy.ts +29 -21
- package/src/Local/RpcSerialization.ts +66 -18
- package/src/Local/RpcServer.ts +38 -19
- package/src/Local/RpcServerBun.ts +18 -8
- package/src/Local/RpcServerEnvironment.ts +2 -2
- package/src/Local/RpcServerNode.ts +26 -4
- package/src/Local/RpcServerSession.ts +2 -2
- package/src/Local/RpcSpawner.ts +89 -51
- package/src/Local/RpcToken.ts +63 -0
- package/src/Local/Sidecar.ts +10 -1
- package/src/Mount.ts +113 -0
- package/src/Nuke.ts +67 -44
- package/src/Output.ts +185 -17
- package/src/Phase.ts +2 -1
- package/src/Plan.ts +700 -220
- package/src/Platform.ts +82 -21
- package/src/Provider.ts +108 -19
- package/src/RemovalPolicy.ts +57 -4
- package/src/Report.ts +77 -275
- package/src/Resource.ts +124 -8
- package/src/Rpc.ts +70 -8
- package/src/Runtime/Bootstrap.ts +11 -15
- package/src/Runtime/ManagedHttpShutdown.ts +21 -4
- package/src/Runtime/Process.ts +40 -1
- package/src/RuntimeContext.ts +28 -1
- package/src/Sandbox.ts +189 -0
- package/src/SandboxAgent.ts +585 -0
- package/src/SandboxAgentClient.ts +312 -0
- package/src/Secrets/Provider.ts +2 -0
- package/src/Stack.ts +113 -135
- package/src/State/BucketState.ts +62 -32
- package/src/State/LocalState.ts +7 -9
- package/src/State/Provisioning.ts +15 -2
- 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/Attributes.ts +1 -0
- 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/AtomicFile.ts +3 -2
- package/src/Util/ConfigProvider.ts +1 -0
- package/src/Util/ConsoleSink.ts +78 -13
- package/src/Util/Ignore.ts +14 -8
- 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 +31 -5
- package/src/Util/ResourceOutput.ts +33 -29
- package/src/Util/Shutdown.ts +52 -0
- package/src/Util/Terminal.ts +34 -58
- 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/Util/scc.ts +18 -13
- package/src/Util/tarGzip.ts +3 -2
- package/src/Website/AstroOutput.ts +83 -0
- package/src/Website/Server.ts +1 -0
- package/src/Workers/DurableObject.ts +307 -0
- package/src/Workers/DurableObjectBridge.ts +322 -0
- package/src/Workers/DurableObjectEngine.ts +609 -0
- package/src/Workers/EffectRpc.ts +53 -0
- package/src/Workers/EventLifetime.ts +84 -0
- package/src/Workers/InputGate.ts +249 -0
- package/src/Workers/RpcWebSocketClient.ts +67 -0
- package/src/Workers/Worker.ts +283 -0
- package/src/Workers/WorkerBridge.ts +173 -0
- package/src/Workers/WorkerEnvironment.ts +9 -0
- package/src/Workers/Workerd/AlarmCallback.ts +557 -0
- package/src/Workers/Workerd/Bundle.ts +282 -0
- package/src/Workers/Workerd/DurableObjectAlarmStorage.ts +102 -0
- package/src/Workers/Workerd/DurableObjectBridge.ts +159 -0
- package/src/Workers/Workerd/DurableObjectState.ts +153 -0
- package/src/Workers/Workerd/DurableObjectStorage.ts +559 -0
- package/src/Workers/Workerd/DurableObjectTransactionContext.ts +18 -0
- package/src/Workers/Workerd/HttpServer.ts +139 -0
- package/src/Workers/Workerd/Module.ts +35 -0
- package/src/Workers/Workerd/Request.ts +3 -0
- package/src/Workers/Workerd/RpcDurableObject.ts +121 -0
- package/src/Workers/Workerd/RpcWebSocket.ts +348 -0
- package/src/Workers/Workerd/ScheduledEvents.ts +191 -0
- package/src/Workers/Workerd/WebSocket.ts +154 -0
- package/src/Workers/Workerd/WorkerBridge.ts +149 -0
- package/src/Workers/Workerd/WorkerEvent.ts +33 -0
- package/src/Workers/Workerd/WorkerModulePlugin.ts +73 -0
- package/src/Workers/Workerd/WorkerRuntimeContext.ts +195 -0
- package/src/Workers/Workerd/internal/StorageTransaction.ts +21 -0
- package/src/Workers/WorkflowFailure.ts +437 -0
- package/src/Workers.ts +13 -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 +0 -81
- package/lib/Alchemist/routes/state.d.ts.map +0 -1
- package/lib/Alchemist/routes/state.js +0 -116
- 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/lib/Util/proxy-chain.d.ts +0 -36
- package/lib/Util/proxy-chain.d.ts.map +0 -1
- package/lib/Util/proxy-chain.js +0 -133
- package/lib/Util/proxy-chain.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/src/Util/proxy-chain.ts +0 -161
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import * as Data from "effect/Data";
|
|
2
|
+
import * as Duration from "effect/Duration";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Stream from "effect/Stream";
|
|
5
|
+
import type * as Sandbox from "./Sandbox.ts";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The client half of the sandbox agent: the wire protocol a runtime speaks to
|
|
9
|
+
* a program that serves `alchemy/SandboxAgent`, and the `alchemy/Sandbox`
|
|
10
|
+
* handle built on it.
|
|
11
|
+
*
|
|
12
|
+
* A host bundle imports only this module. The server half
|
|
13
|
+
* (`alchemy/SandboxAgent`) spawns processes and reads files, so it stays in
|
|
14
|
+
* the sandbox's own bundle.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** Environment variable that carries a sandbox's bearer token and turns its agent on. */
|
|
18
|
+
export const SANDBOX_TOKEN_ENV = "ALCHEMY_SANDBOX_TOKEN";
|
|
19
|
+
|
|
20
|
+
/** Environment variable that carries a sandbox's idle timeout, in milliseconds. */
|
|
21
|
+
export const SANDBOX_IDLE_TIMEOUT_ENV = "ALCHEMY_SANDBOX_IDLE_TIMEOUT";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The port the agent listens on when it is added to an image that has no
|
|
25
|
+
* program of its own. A program that serves the agent itself answers on the
|
|
26
|
+
* program's port instead.
|
|
27
|
+
*/
|
|
28
|
+
export const SANDBOX_AGENT_PORT = 2468;
|
|
29
|
+
|
|
30
|
+
/** Environment variable that carries the port of an agent added to an image. */
|
|
31
|
+
export const SANDBOX_PORT_ENV = "ALCHEMY_SANDBOX_PORT";
|
|
32
|
+
|
|
33
|
+
// ---------------------------------------------------------------------------
|
|
34
|
+
// Errors
|
|
35
|
+
// ---------------------------------------------------------------------------
|
|
36
|
+
|
|
37
|
+
/** No process or terminal has this id. It may have exited long ago. */
|
|
38
|
+
export class SandboxProcessNotFound extends Data.TaggedError("SandboxProcessNotFound")<{
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly message: string;
|
|
41
|
+
}> {}
|
|
42
|
+
|
|
43
|
+
/** `exec` ran longer than its `timeout` and was killed. */
|
|
44
|
+
export class SandboxExecTimedOut extends Data.TaggedError("SandboxExecTimedOut")<{
|
|
45
|
+
readonly timeoutMs: number;
|
|
46
|
+
readonly message: string;
|
|
47
|
+
}> {}
|
|
48
|
+
|
|
49
|
+
/** A file operation failed. `reason` is the system error (`NotFound`, `PermissionDenied`, …). */
|
|
50
|
+
export class SandboxFileError extends Data.TaggedError("SandboxFileError")<{
|
|
51
|
+
readonly path: string;
|
|
52
|
+
readonly reason: string;
|
|
53
|
+
readonly message: string;
|
|
54
|
+
}> {}
|
|
55
|
+
|
|
56
|
+
/** The sandbox can't open a terminal. */
|
|
57
|
+
export class SandboxPtyUnavailable extends Data.TaggedError("SandboxPtyUnavailable")<{
|
|
58
|
+
readonly message: string;
|
|
59
|
+
}> {}
|
|
60
|
+
|
|
61
|
+
/** The command could not be started, or its output could not be read. */
|
|
62
|
+
export class SandboxSpawnError extends Data.TaggedError("SandboxSpawnError")<{
|
|
63
|
+
readonly message: string;
|
|
64
|
+
}> {}
|
|
65
|
+
|
|
66
|
+
/** The agent could not be reached, or answered with something that is not its protocol. */
|
|
67
|
+
export class SandboxAgentError extends Data.TaggedError("SandboxAgentError")<{
|
|
68
|
+
readonly method?: string;
|
|
69
|
+
readonly status?: number;
|
|
70
|
+
readonly message: string;
|
|
71
|
+
}> {}
|
|
72
|
+
|
|
73
|
+
/** Every error a sandbox agent call can fail with. */
|
|
74
|
+
export type SandboxError =
|
|
75
|
+
| SandboxProcessNotFound
|
|
76
|
+
| SandboxExecTimedOut
|
|
77
|
+
| SandboxFileError
|
|
78
|
+
| SandboxPtyUnavailable
|
|
79
|
+
| SandboxSpawnError
|
|
80
|
+
| SandboxAgentError;
|
|
81
|
+
|
|
82
|
+
const text = (value: unknown, fallback = ""): string =>
|
|
83
|
+
typeof value === "string" ? value : fallback;
|
|
84
|
+
|
|
85
|
+
const numeric = (value: unknown): number | undefined =>
|
|
86
|
+
typeof value === "number" ? value : undefined;
|
|
87
|
+
|
|
88
|
+
const describe = (value: unknown): string => {
|
|
89
|
+
if (typeof value === "string") return value;
|
|
90
|
+
if (typeof value === "object" && value !== null && "message" in value) {
|
|
91
|
+
const message = (value as { readonly message: unknown }).message;
|
|
92
|
+
if (typeof message === "string" && message.length > 0) return message;
|
|
93
|
+
}
|
|
94
|
+
return String(value);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
// Errors cross the wire as `{ _tag, ...fields }`. They are rebuilt by tag, not
|
|
98
|
+
// by class name, because a bundler may rename the classes on either side.
|
|
99
|
+
const revivers: Record<string, (fields: Record<string, unknown>) => SandboxError> = {
|
|
100
|
+
SandboxProcessNotFound: (fields) =>
|
|
101
|
+
new SandboxProcessNotFound({ id: text(fields.id), message: text(fields.message) }),
|
|
102
|
+
SandboxExecTimedOut: (fields) =>
|
|
103
|
+
new SandboxExecTimedOut({
|
|
104
|
+
timeoutMs: numeric(fields.timeoutMs) ?? 0,
|
|
105
|
+
message: text(fields.message),
|
|
106
|
+
}),
|
|
107
|
+
SandboxFileError: (fields) =>
|
|
108
|
+
new SandboxFileError({
|
|
109
|
+
path: text(fields.path),
|
|
110
|
+
reason: text(fields.reason, "Unknown"),
|
|
111
|
+
message: text(fields.message),
|
|
112
|
+
}),
|
|
113
|
+
SandboxPtyUnavailable: (fields) => new SandboxPtyUnavailable({ message: text(fields.message) }),
|
|
114
|
+
SandboxSpawnError: (fields) => new SandboxSpawnError({ message: text(fields.message) }),
|
|
115
|
+
SandboxAgentError: (fields) =>
|
|
116
|
+
new SandboxAgentError({
|
|
117
|
+
method: typeof fields.method === "string" ? fields.method : undefined,
|
|
118
|
+
status: numeric(fields.status),
|
|
119
|
+
message: text(fields.message),
|
|
120
|
+
}),
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Turns whatever a sandbox agent call failed with into a {@link SandboxError}:
|
|
125
|
+
* an error the agent sent, a failed HTTP call, or an undecodable response.
|
|
126
|
+
*/
|
|
127
|
+
export const reviveSandboxError = (error: unknown): SandboxError => {
|
|
128
|
+
if (typeof error === "object" && error !== null) {
|
|
129
|
+
const fields = error as Record<string, unknown>;
|
|
130
|
+
const tag = fields._tag;
|
|
131
|
+
if (typeof tag === "string") {
|
|
132
|
+
if (Object.hasOwn(revivers, tag)) return revivers[tag]!(fields);
|
|
133
|
+
// A failure sent inside a stream arrives wrapped.
|
|
134
|
+
if (tag === "RpcRemoteStreamError") return reviveSandboxError(fields.error);
|
|
135
|
+
if (tag === "RpcCallError") {
|
|
136
|
+
const method = text(fields.method);
|
|
137
|
+
return new SandboxAgentError({
|
|
138
|
+
method,
|
|
139
|
+
status: numeric(fields.status),
|
|
140
|
+
message: `Sandbox agent call "${method}" failed: ${describe(fields.cause)}`,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return new SandboxAgentError({ message: `Sandbox agent call failed: ${describe(error)}` });
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// ---------------------------------------------------------------------------
|
|
149
|
+
// Wire protocol
|
|
150
|
+
// ---------------------------------------------------------------------------
|
|
151
|
+
|
|
152
|
+
/** Encodes bytes for a JSON argument or result. */
|
|
153
|
+
export const toBase64 = (bytes: Uint8Array): string => {
|
|
154
|
+
const encode = (bytes as Uint8Array & { toBase64?: () => string }).toBase64;
|
|
155
|
+
if (typeof encode === "function") return encode.call(bytes);
|
|
156
|
+
let binary = "";
|
|
157
|
+
for (const byte of bytes) binary += String.fromCharCode(byte);
|
|
158
|
+
return btoa(binary);
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/** Decodes bytes from a JSON argument or result. */
|
|
162
|
+
export const fromBase64 = (b64: string): Uint8Array => {
|
|
163
|
+
const binary = atob(b64);
|
|
164
|
+
const out = new Uint8Array(binary.length);
|
|
165
|
+
for (let i = 0; i < binary.length; i++) out[i] = binary.charCodeAt(i);
|
|
166
|
+
return out;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
const encoder = new TextEncoder();
|
|
170
|
+
|
|
171
|
+
const toBytes = (data: string | Uint8Array): Uint8Array =>
|
|
172
|
+
typeof data === "string" ? encoder.encode(data) : data;
|
|
173
|
+
|
|
174
|
+
/** `ExecOptions` as JSON: the timeout in milliseconds and stdin as base64. */
|
|
175
|
+
export interface WireExecOptions {
|
|
176
|
+
readonly cwd?: string;
|
|
177
|
+
readonly env?: Readonly<Record<string, string>>;
|
|
178
|
+
readonly timeoutMs?: number;
|
|
179
|
+
readonly stdin?: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** A piece of process output as JSON. */
|
|
183
|
+
export interface WireProcessOutput {
|
|
184
|
+
readonly fd: "stdout" | "stderr";
|
|
185
|
+
readonly b64: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/** The signals `kill` sends. */
|
|
189
|
+
export type WireSignal = "SIGTERM" | "SIGKILL";
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The methods a sandbox agent serves over alchemy's RPC, next to the
|
|
193
|
+
* program's own. Their names start with `sandbox.` so they never collide with
|
|
194
|
+
* a program's methods. Bytes travel as base64 strings.
|
|
195
|
+
*/
|
|
196
|
+
export interface SandboxAgentRpc {
|
|
197
|
+
"sandbox.ping": () => Effect.Effect<{ readonly ok: true }, unknown>;
|
|
198
|
+
"sandbox.exec": (
|
|
199
|
+
command: Sandbox.Command,
|
|
200
|
+
options?: WireExecOptions,
|
|
201
|
+
) => Effect.Effect<Sandbox.ExecResult, unknown>;
|
|
202
|
+
"sandbox.start": (
|
|
203
|
+
command: Sandbox.Command,
|
|
204
|
+
options?: WireExecOptions,
|
|
205
|
+
) => Effect.Effect<{ readonly id: string }, unknown>;
|
|
206
|
+
"sandbox.output": (
|
|
207
|
+
id: string,
|
|
208
|
+
) => Effect.Effect<Stream.Stream<WireProcessOutput, unknown>, unknown>;
|
|
209
|
+
"sandbox.write": (id: string, b64: string) => Effect.Effect<void, unknown>;
|
|
210
|
+
"sandbox.kill": (id: string, signal: WireSignal) => Effect.Effect<void, unknown>;
|
|
211
|
+
"sandbox.wait": (id: string) => Effect.Effect<{ readonly exitCode: number }, unknown>;
|
|
212
|
+
"sandbox.files.read": (path: string) => Effect.Effect<string, unknown>;
|
|
213
|
+
"sandbox.files.readText": (path: string) => Effect.Effect<string, unknown>;
|
|
214
|
+
"sandbox.files.write": (path: string, b64: string) => Effect.Effect<void, unknown>;
|
|
215
|
+
"sandbox.files.list": (path: string) => Effect.Effect<ReadonlyArray<Sandbox.FileEntry>, unknown>;
|
|
216
|
+
"sandbox.files.stat": (path: string) => Effect.Effect<Sandbox.FileEntry, unknown>;
|
|
217
|
+
"sandbox.files.remove": (path: string) => Effect.Effect<void, unknown>;
|
|
218
|
+
"sandbox.files.makeDir": (path: string) => Effect.Effect<void, unknown>;
|
|
219
|
+
"sandbox.pty.open": (
|
|
220
|
+
options: Sandbox.PtyOptions,
|
|
221
|
+
) => Effect.Effect<{ readonly id: string }, unknown>;
|
|
222
|
+
"sandbox.pty.output": (id: string) => Effect.Effect<Stream.Stream<Uint8Array, unknown>, unknown>;
|
|
223
|
+
"sandbox.pty.write": (id: string, b64: string) => Effect.Effect<void, unknown>;
|
|
224
|
+
"sandbox.pty.resize": (id: string, cols: number, rows: number) => Effect.Effect<void, unknown>;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// ---------------------------------------------------------------------------
|
|
228
|
+
// Client
|
|
229
|
+
// ---------------------------------------------------------------------------
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* What every sandbox that runs the agent can do: run a command, stream a
|
|
233
|
+
* process, use files, open a terminal. A provider adds what its platform has
|
|
234
|
+
* for a sandbox (ports, lifecycle).
|
|
235
|
+
*/
|
|
236
|
+
export interface SandboxAgentClient
|
|
237
|
+
extends
|
|
238
|
+
Sandbox.SandboxExec<SandboxError>,
|
|
239
|
+
Sandbox.SandboxProcesses<SandboxError>,
|
|
240
|
+
Sandbox.SandboxFiles<SandboxError>,
|
|
241
|
+
Sandbox.SandboxPty<SandboxError> {
|
|
242
|
+
/** Re-attaches to a process started earlier, by its id. */
|
|
243
|
+
attach(id: string): Sandbox.Process<SandboxError>;
|
|
244
|
+
/** Succeeds once the agent answers. */
|
|
245
|
+
readonly ping: Effect.Effect<void, SandboxError>;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
const wireExecOptions = (options: Sandbox.ExecOptions | undefined): WireExecOptions => ({
|
|
249
|
+
cwd: options?.cwd,
|
|
250
|
+
env: options?.env,
|
|
251
|
+
timeoutMs:
|
|
252
|
+
options?.timeout === undefined
|
|
253
|
+
? undefined
|
|
254
|
+
: Duration.toMillis(Duration.fromInputUnsafe(options.timeout)),
|
|
255
|
+
stdin: options?.stdin === undefined ? undefined : toBase64(toBytes(options.stdin)),
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Builds the sandbox handle from an RPC stub that reaches the agent (see
|
|
260
|
+
* `makeFetchRpcStub` in `alchemy/Rpc`).
|
|
261
|
+
*/
|
|
262
|
+
export const makeSandboxAgentClient = (stub: SandboxAgentRpc): SandboxAgentClient => {
|
|
263
|
+
const call = <A>(effect: Effect.Effect<A, unknown>): Effect.Effect<A, SandboxError> =>
|
|
264
|
+
Effect.mapError(effect, reviveSandboxError);
|
|
265
|
+
|
|
266
|
+
const attach = (id: string): Sandbox.Process<SandboxError> => ({
|
|
267
|
+
id,
|
|
268
|
+
output: stub["sandbox.output"](id).pipe(
|
|
269
|
+
call,
|
|
270
|
+
Stream.unwrap,
|
|
271
|
+
Stream.mapError(reviveSandboxError),
|
|
272
|
+
Stream.map((chunk) => ({ fd: chunk.fd, data: fromBase64(chunk.b64) })),
|
|
273
|
+
),
|
|
274
|
+
write: (data) => call(stub["sandbox.write"](id, toBase64(toBytes(data)))),
|
|
275
|
+
kill: (signal) => call(stub["sandbox.kill"](id, signal ?? "SIGTERM")),
|
|
276
|
+
wait: call(stub["sandbox.wait"](id)),
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
return {
|
|
280
|
+
ping: stub["sandbox.ping"]().pipe(call, Effect.asVoid),
|
|
281
|
+
exec: (command, options) => call(stub["sandbox.exec"](command, wireExecOptions(options))),
|
|
282
|
+
start: (command, options) =>
|
|
283
|
+
Effect.map(call(stub["sandbox.start"](command, wireExecOptions(options))), ({ id }) =>
|
|
284
|
+
attach(id),
|
|
285
|
+
),
|
|
286
|
+
attach,
|
|
287
|
+
files: {
|
|
288
|
+
read: (path) => Effect.map(call(stub["sandbox.files.read"](path)), fromBase64),
|
|
289
|
+
readText: (path) => call(stub["sandbox.files.readText"](path)),
|
|
290
|
+
write: (path, data) => call(stub["sandbox.files.write"](path, toBase64(toBytes(data)))),
|
|
291
|
+
list: (path) => call(stub["sandbox.files.list"](path)),
|
|
292
|
+
stat: (path) => call(stub["sandbox.files.stat"](path)),
|
|
293
|
+
remove: (path) => call(stub["sandbox.files.remove"](path)),
|
|
294
|
+
makeDir: (path) => call(stub["sandbox.files.makeDir"](path)),
|
|
295
|
+
},
|
|
296
|
+
pty: {
|
|
297
|
+
open: (options) =>
|
|
298
|
+
Effect.map(call(stub["sandbox.pty.open"](options)), ({ id }) => ({
|
|
299
|
+
id,
|
|
300
|
+
output: stub["sandbox.pty.output"](id).pipe(
|
|
301
|
+
call,
|
|
302
|
+
Stream.unwrap,
|
|
303
|
+
Stream.mapError(reviveSandboxError),
|
|
304
|
+
),
|
|
305
|
+
write: (data: string | Uint8Array) =>
|
|
306
|
+
call(stub["sandbox.pty.write"](id, toBase64(toBytes(data)))),
|
|
307
|
+
resize: (size: { readonly cols: number; readonly rows: number }) =>
|
|
308
|
+
call(stub["sandbox.pty.resize"](id, size.cols, size.rows)),
|
|
309
|
+
})),
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
};
|
package/src/Secrets/Provider.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as ConfigProvider from "effect/ConfigProvider";
|
|
2
|
+
import type * as SecureRandom from "effect/crypto/SecureRandom";
|
|
2
3
|
import * as Effect from "effect/Effect";
|
|
3
4
|
import type * as FileSystem from "effect/FileSystem";
|
|
4
5
|
import type * as HttpClient from "effect/http/HttpClient";
|
|
@@ -21,6 +22,7 @@ export type SecretsServices =
|
|
|
21
22
|
| Path.Path
|
|
22
23
|
| HttpClient.HttpClient
|
|
23
24
|
| ChildProcessSpawner.ChildProcessSpawner
|
|
25
|
+
| SecureRandom.SecureRandom
|
|
24
26
|
| AuthProviders
|
|
25
27
|
| ProfileStore;
|
|
26
28
|
|
package/src/Stack.ts
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import type { ConfigError } from "effect/Config";
|
|
2
|
-
import { ConfigProvider } from "effect/ConfigProvider";
|
|
3
2
|
import * as Context from "effect/Context";
|
|
4
|
-
import type {
|
|
3
|
+
import type { Digest } from "effect/crypto/Digest";
|
|
4
|
+
import type { SecureRandom } from "effect/crypto/SecureRandom";
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
6
6
|
import { FileSystem } from "effect/FileSystem";
|
|
7
|
-
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
8
7
|
import type { HttpClient } from "effect/http/HttpClient";
|
|
9
8
|
import * as Layer from "effect/Layer";
|
|
10
|
-
import * as Logger from "effect/Logger";
|
|
11
9
|
import * as Option from "effect/Option";
|
|
12
10
|
import { Path } from "effect/Path";
|
|
13
11
|
import type { ChildProcessSpawner } from "effect/process/ChildProcessSpawner";
|
|
14
|
-
import * as Scope from "effect/Scope";
|
|
12
|
+
import type * as Scope from "effect/Scope";
|
|
15
13
|
import type { ActionLike } from "./Action.ts";
|
|
16
|
-
import { AlchemyContext
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
14
|
+
import type { AlchemyContext } from "./AlchemyContext.ts";
|
|
15
|
+
import type { ArtifactStore } from "./Artifacts.ts";
|
|
16
|
+
import type { CredentialsStore } from "./Auth/Credentials.ts";
|
|
17
|
+
import type { ProfileStore } from "./Auth/Profile.ts";
|
|
18
|
+
import { AuthProvidersLive, type AuthProviders } from "./Auth/Registry.ts";
|
|
21
19
|
import type { Input, InputProps } from "./Input.ts";
|
|
22
20
|
// Type-only: with verbatimModuleSyntax a value import would survive emit and
|
|
23
21
|
// drag the terminal helpers (node:tty, Sigil's ansi helpers) into every unbundled
|
|
@@ -30,17 +28,17 @@ import type { SecretsEntry, SecretsOption } from "./Secrets/Provider.ts";
|
|
|
30
28
|
import { StackContext } from "./StackContext.ts";
|
|
31
29
|
import { Stage } from "./Stage.ts";
|
|
32
30
|
import type { State } from "./State/State.ts";
|
|
33
|
-
import {
|
|
31
|
+
import { stackConfigLayer } from "./Util/ConfigProvider.ts";
|
|
34
32
|
import { effectClass, taggedFunction } from "./Util/effect.ts";
|
|
35
|
-
import {
|
|
36
|
-
import { PlatformServices } from "./Util/PlatformServices.ts";
|
|
33
|
+
import type { PlatformServices } from "./Util/PlatformServices.ts";
|
|
37
34
|
|
|
38
35
|
export type StackServices =
|
|
39
36
|
| Stack
|
|
40
37
|
| Stage
|
|
41
38
|
| Scope.Scope
|
|
42
39
|
| FileSystem
|
|
43
|
-
|
|
|
40
|
+
| Digest
|
|
41
|
+
| SecureRandom
|
|
44
42
|
| Path
|
|
45
43
|
| AlchemyContext
|
|
46
44
|
| HttpClient
|
|
@@ -138,6 +136,14 @@ export type ConfiguredStackMeta<Req = never> = {
|
|
|
138
136
|
readonly stackName: string;
|
|
139
137
|
} & StackProps<Req>;
|
|
140
138
|
|
|
139
|
+
/**
|
|
140
|
+
* What `Alchemy.Stack(...)` returns, and what an `alchemy.run.ts`
|
|
141
|
+
* default-exports: the stack program, not yet run, with its providers,
|
|
142
|
+
* state store, and secrets attached.
|
|
143
|
+
*/
|
|
144
|
+
export type ConfiguredStack<Output, Req> = Effect.Effect<CompiledStack<Output>, ConfigError> &
|
|
145
|
+
ConfiguredStackMeta<Req>;
|
|
146
|
+
|
|
141
147
|
export const Stack: Context.ServiceClass<Stack, "Stack", Omit<StackSpec, "output">> & {
|
|
142
148
|
make<A, Req>(
|
|
143
149
|
stack: {
|
|
@@ -158,16 +164,16 @@ export const Stack: Context.ServiceClass<Stack, "Stack", Omit<StackSpec, "output
|
|
|
158
164
|
};
|
|
159
165
|
};
|
|
160
166
|
};
|
|
161
|
-
<Self, Shape>(): {
|
|
167
|
+
<Self, Shape, Stages extends string = string>(): {
|
|
162
168
|
(stackName: string): Effect.Effect<Self> & {
|
|
163
169
|
new (_: never): Output.ToOutput<Shape>;
|
|
164
170
|
readonly stackName: string;
|
|
165
171
|
make: <A, Req>(
|
|
166
172
|
options: StackProps<NoInfer<Req>>,
|
|
167
173
|
effect: Effect.Effect<A, ConfigError, Req>,
|
|
168
|
-
) =>
|
|
174
|
+
) => ConfiguredStack<A, NoInfer<Req>>;
|
|
169
175
|
stage: {
|
|
170
|
-
[
|
|
176
|
+
readonly [S in Stages]: Effect.Effect<Self>;
|
|
171
177
|
};
|
|
172
178
|
};
|
|
173
179
|
};
|
|
@@ -175,7 +181,7 @@ export const Stack: Context.ServiceClass<Stack, "Stack", Omit<StackSpec, "output
|
|
|
175
181
|
stackName: string,
|
|
176
182
|
options: StackProps<NoInfer<Req>>,
|
|
177
183
|
eff: Effect.Effect<A, ConfigError, Req>,
|
|
178
|
-
):
|
|
184
|
+
): ConfiguredStack<A, NoInfer<Req>>;
|
|
179
185
|
} = Object.assign(
|
|
180
186
|
taggedFunction(
|
|
181
187
|
StackContext,
|
|
@@ -256,67 +262,96 @@ export const StackName = Stack.use((stack) => Effect.succeed(stack.name));
|
|
|
256
262
|
|
|
257
263
|
export interface MakeStackProps<ROut = never> {
|
|
258
264
|
name: string;
|
|
259
|
-
|
|
260
|
-
|
|
265
|
+
/** Required; {@link make} dies with setup guidance when it is missing. */
|
|
266
|
+
providers?: Layer.Layer<ROut, never, StackServices>;
|
|
267
|
+
/** Required; {@link make} dies with setup guidance when it is missing. */
|
|
268
|
+
state?: Layer.Layer<State, never, StackServices>;
|
|
261
269
|
/** Opt in to secret providers. When omitted, existing configuration is preserved. */
|
|
262
270
|
secrets?: StackSecrets;
|
|
263
271
|
/** @internal */
|
|
264
272
|
stack?: StackSpec;
|
|
265
273
|
}
|
|
266
274
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
)
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
275
|
+
/**
|
|
276
|
+
* The scope a stack's state store is built into when it must close sooner
|
|
277
|
+
* than the rest of the stack. A store holds its stack's lease until its scope
|
|
278
|
+
* closes, so `evalStack` (`EvalStack.ts`) gives it one per call even when the caller
|
|
279
|
+
* keeps providers alive in a longer scope.
|
|
280
|
+
*/
|
|
281
|
+
export class StateScope extends Context.Service<StateScope, Scope.Scope>()(
|
|
282
|
+
"alchemy/Stack/StateScope",
|
|
283
|
+
) {}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Build a stack's providers, state store, secrets config and `Stack` spec,
|
|
287
|
+
* without running its program. Destroy needs nothing more: it plans from state
|
|
288
|
+
* alone, and every row records the provider mode that deletes it.
|
|
289
|
+
*/
|
|
290
|
+
export const build = <ROut = never>(options: MakeStackProps<ROut>) =>
|
|
291
|
+
Effect.all([Effect.scope, Effect.serviceOption(StateScope)]).pipe(
|
|
292
|
+
Effect.flatMap(([scope, stateScope]) => {
|
|
293
|
+
if (options.state == null) {
|
|
294
|
+
return Effect.die(
|
|
295
|
+
new Error(
|
|
296
|
+
`Stack "${options.name}" is missing a state store. ` +
|
|
297
|
+
`Add a \`state\` layer to the stack options, e.g.:\n` +
|
|
298
|
+
` Alchemy.Stack("${options.name}", {\n` +
|
|
299
|
+
` providers: Cloudflare.providers(),\n` +
|
|
300
|
+
` state: Cloudflare.state(), // <-- required\n` +
|
|
301
|
+
` }, ...)\n` +
|
|
302
|
+
`See https://alchemy.run/state-store for available state stores.`,
|
|
303
|
+
),
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
if (options.providers == null) {
|
|
307
|
+
return Effect.die(
|
|
308
|
+
new Error(
|
|
309
|
+
`Stack "${options.name}" is missing a providers layer. ` +
|
|
310
|
+
`Add a \`providers\` layer to the stack options, e.g.:\n` +
|
|
311
|
+
` Alchemy.Stack("${options.name}", {\n` +
|
|
312
|
+
` providers: Cloudflare.providers(), // <-- required\n` +
|
|
313
|
+
` state: Cloudflare.state(),\n` +
|
|
314
|
+
` }, ...)`,
|
|
315
|
+
),
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
const state = options.state;
|
|
319
|
+
return options.providers.pipe(
|
|
320
|
+
Layer.provideMerge(
|
|
321
|
+
Option.match(stateScope, {
|
|
322
|
+
onNone: () => state,
|
|
323
|
+
onSome: (stateScope) => Layer.effectContext(Layer.buildWithScope(state, stateScope)),
|
|
324
|
+
}),
|
|
325
|
+
),
|
|
326
|
+
Layer.provideMerge(stackConfigLayer(options.secrets)),
|
|
327
|
+
Layer.provideMerge(
|
|
328
|
+
Layer.effect(
|
|
329
|
+
Stack,
|
|
330
|
+
Stage.pipe(
|
|
331
|
+
Effect.map(
|
|
332
|
+
(stage) =>
|
|
333
|
+
options.stack ?? {
|
|
334
|
+
name: options.name,
|
|
335
|
+
stage,
|
|
336
|
+
resources: {},
|
|
337
|
+
bindings: {},
|
|
338
|
+
actions: {},
|
|
339
|
+
},
|
|
314
340
|
),
|
|
315
341
|
),
|
|
316
342
|
),
|
|
317
|
-
|
|
318
|
-
)
|
|
319
|
-
|
|
343
|
+
),
|
|
344
|
+
Layer.provideMerge(AuthProvidersLive),
|
|
345
|
+
Layer.buildWithScope(scope),
|
|
346
|
+
);
|
|
347
|
+
}),
|
|
348
|
+
);
|
|
349
|
+
|
|
350
|
+
/** Build a stack's services with {@link build}, then run its program under them. */
|
|
351
|
+
export const make =
|
|
352
|
+
<ROut = never>(options: MakeStackProps<ROut>) =>
|
|
353
|
+
<A, Err = never, Req extends ROut | StackServices = never>(effect: Effect.Effect<A, Err, Req>) =>
|
|
354
|
+
build(options).pipe(
|
|
320
355
|
Effect.flatMap((context) =>
|
|
321
356
|
Effect.all([effect, Stack, Effect.context<ROut | StackServices>()]).pipe(
|
|
322
357
|
Effect.map(([output, stack, services]): CompiledStack<A, ROut | StackServices> => ({
|
|
@@ -329,71 +364,14 @@ export const make =
|
|
|
329
364
|
),
|
|
330
365
|
);
|
|
331
366
|
|
|
367
|
+
/** What `Alchemy.Stack(...)` attaches to the stack it returns: everything but its program. */
|
|
368
|
+
export interface StackDefinition<ROut = never> {
|
|
369
|
+
readonly stackName: string;
|
|
370
|
+
readonly providers?: Layer.Layer<ROut, never, StackServices>;
|
|
371
|
+
readonly state?: Layer.Layer<State, never, StackServices>;
|
|
372
|
+
readonly secrets?: StackSecrets;
|
|
373
|
+
}
|
|
374
|
+
|
|
332
375
|
export const CurrentStack = Effect.serviceOption(Stack)
|
|
333
376
|
|
|
334
377
|
.pipe(Effect.map(Option.getOrUndefined));
|
|
335
|
-
|
|
336
|
-
const platform = Layer.mergeAll(
|
|
337
|
-
PlatformServices,
|
|
338
|
-
FetchHttpClient.layer,
|
|
339
|
-
Logger.layer([fileLogger("out")], { mergeWithExisting: true }),
|
|
340
|
-
Layer.provide(ProfileStoreLive, PlatformServices),
|
|
341
|
-
Layer.provide(CredentialsStoreLive, PlatformServices),
|
|
342
|
-
);
|
|
343
|
-
// override alchemy state store, CLI/reporting, state, and Config
|
|
344
|
-
const alchemy = (overrides?: { dev?: boolean }) =>
|
|
345
|
-
Layer.mergeAll(
|
|
346
|
-
// optional
|
|
347
|
-
overrides?.dev
|
|
348
|
-
? Layer.provide(
|
|
349
|
-
Layer.effect(
|
|
350
|
-
AlchemyContext,
|
|
351
|
-
AlchemyContext.useSync((ctx) => ({ ...ctx, dev: overrides.dev! })),
|
|
352
|
-
),
|
|
353
|
-
AlchemyContextLive,
|
|
354
|
-
)
|
|
355
|
-
: AlchemyContextLive,
|
|
356
|
-
);
|
|
357
|
-
|
|
358
|
-
export const evalStack = <A, B, StackErr, Err, Req>(
|
|
359
|
-
effect: StackEffect<CompiledStack<A>, StackErr, Stage | AlchemyContext>,
|
|
360
|
-
fn: (stack: CompiledStack<A>) => Effect.Effect<B, Err, Req>,
|
|
361
|
-
options: {
|
|
362
|
-
stage: string;
|
|
363
|
-
dev?: boolean;
|
|
364
|
-
/**
|
|
365
|
-
* Optional caller-supplied scope. When provided, scoped resources
|
|
366
|
-
* (e.g. the dev sidecar process) live until the caller closes this
|
|
367
|
-
* scope instead of being torn down when `evalStack` resolves. Used
|
|
368
|
-
* by the test harness so the sidecar survives across `beforeAll`,
|
|
369
|
-
* tests, and `afterAll`. When omitted, behaves as before with a
|
|
370
|
-
* private scope closed on completion.
|
|
371
|
-
*/
|
|
372
|
-
scope?: Scope.Scope;
|
|
373
|
-
},
|
|
374
|
-
) => {
|
|
375
|
-
const body = Effect.gen(function* () {
|
|
376
|
-
const stack = yield* effect;
|
|
377
|
-
const configProvider = yield* loadConfigProvider(Option.none());
|
|
378
|
-
return yield* fn(stack).pipe(
|
|
379
|
-
provideFreshArtifactStore,
|
|
380
|
-
Effect.provide(
|
|
381
|
-
Layer.succeedContext(stack.services).pipe(
|
|
382
|
-
Layer.provideMerge(Layer.succeed(ConfigProvider, configProvider)),
|
|
383
|
-
),
|
|
384
|
-
),
|
|
385
|
-
);
|
|
386
|
-
}).pipe(
|
|
387
|
-
Effect.provide(
|
|
388
|
-
Layer.effect(
|
|
389
|
-
AuthProviders,
|
|
390
|
-
Effect.serviceOption(AuthProviders).pipe(Effect.map(Option.getOrElse(() => ({})))),
|
|
391
|
-
).pipe(
|
|
392
|
-
Layer.provideMerge(Layer.succeed(Stage, options.stage)),
|
|
393
|
-
Layer.provideMerge(Layer.provideMerge(alchemy({ dev: options.dev }), platform)),
|
|
394
|
-
),
|
|
395
|
-
),
|
|
396
|
-
);
|
|
397
|
-
|
|
398
|
-
return options.scope === undefined ? Effect.scoped(body) : Scope.provide(body, options.scope);
|
|
399
|
-
};
|