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
|
@@ -1,37 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// The interaction vocabulary (message/prompt option shapes, progress
|
|
6
|
-
// options, interaction errors) belongs to the engine's core `Interaction`
|
|
7
|
-
// contract — CliKit implements a superset of it. Re-exported here so the
|
|
8
|
-
// CLI's components keep one local import for their whole type surface.
|
|
1
|
+
// The interaction vocabulary belongs to the engine's `Interaction` contract.
|
|
2
|
+
// Re-exported here so the CLI's components keep one local import for their
|
|
3
|
+
// whole type surface.
|
|
9
4
|
export type {
|
|
10
|
-
|
|
5
|
+
BrowserLoginOptions,
|
|
11
6
|
Choice,
|
|
12
7
|
ConfirmOptions,
|
|
13
8
|
InteractionError,
|
|
9
|
+
LiveViewHandle,
|
|
10
|
+
LiveViewOptions,
|
|
14
11
|
MessageOptions,
|
|
15
12
|
MultiSelectOptions,
|
|
16
13
|
PasswordInputOptions,
|
|
14
|
+
ProgressHandle,
|
|
17
15
|
ProgressOptions,
|
|
16
|
+
ScreenController,
|
|
18
17
|
SelectOptions,
|
|
18
|
+
SessionOptions,
|
|
19
|
+
TerminalCapabilities,
|
|
20
|
+
TerminalOptions,
|
|
19
21
|
TextInputOptions,
|
|
22
|
+
View,
|
|
20
23
|
} from "../../Interaction.ts";
|
|
21
|
-
|
|
22
|
-
/** A composable CLI layout. Views are inert; only CliKit renders them. */
|
|
23
|
-
export type View = ReactNode;
|
|
24
|
-
|
|
25
|
-
export interface CliKitCapabilities {
|
|
26
|
-
/** Whether this process has usable terminal input for prompts and apps. */
|
|
27
|
-
readonly input: boolean;
|
|
28
|
-
readonly columns: number;
|
|
29
|
-
readonly rows: number;
|
|
30
|
-
readonly colors: boolean;
|
|
31
|
-
readonly unicode: boolean;
|
|
32
|
-
/** Whether full-screen applications may use the terminal's alternate buffer. */
|
|
33
|
-
readonly alternateScreen: boolean;
|
|
34
|
-
}
|
|
24
|
+
export { Screen } from "../../Interaction.ts";
|
|
35
25
|
|
|
36
26
|
export interface RenderOptions {
|
|
37
27
|
readonly columns?: number;
|
|
@@ -57,79 +47,3 @@ export interface CycleSelectOptions<State> {
|
|
|
57
47
|
readonly requireChange?: boolean;
|
|
58
48
|
readonly unchangedMessage?: string;
|
|
59
49
|
}
|
|
60
|
-
|
|
61
|
-
/** A navigable application menu. Selecting an item does not commit output. */
|
|
62
|
-
export interface MenuOptions<Value> extends SelectOptions<Value> {
|
|
63
|
-
readonly header?: View;
|
|
64
|
-
readonly footer?: View;
|
|
65
|
-
/**
|
|
66
|
-
* Value returned by Escape. Without it, Escape cancels the application.
|
|
67
|
-
* `undefined` is a valid back value when it is part of `Value`; presence of
|
|
68
|
-
* the property, rather than its value, determines whether a back target
|
|
69
|
-
* exists.
|
|
70
|
-
*/
|
|
71
|
-
readonly back?: Value;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface ScreenController<Value> {
|
|
75
|
-
readonly submit: (value: Value, summary?: View) => void;
|
|
76
|
-
readonly cancel: () => void;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* A custom interactive scene. The scene owns its local component state while
|
|
81
|
-
* CliKit owns input streams, serialization, rendering and teardown.
|
|
82
|
-
*/
|
|
83
|
-
export interface Screen<Value> {
|
|
84
|
-
readonly name: string;
|
|
85
|
-
readonly render: (controller: ScreenController<Value>) => View;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export const Screen = {
|
|
89
|
-
make: <Value>(
|
|
90
|
-
name: string,
|
|
91
|
-
render: (controller: ScreenController<Value>) => View,
|
|
92
|
-
): Screen<Value> => ({ name, render }),
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Handle for a live progress row. Acquired within a `Scope`: the enclosing
|
|
97
|
-
* scope's close is a release backstop, so an interrupted fiber can never leave
|
|
98
|
-
* an orphaned row pinning the renderer. Settling early via `succeed`/`fail`/
|
|
99
|
-
* `close` is the normal path; every settle operation is idempotent.
|
|
100
|
-
*/
|
|
101
|
-
export interface ProgressHandle {
|
|
102
|
-
readonly update: (options: ProgressOptions) => Effect.Effect<void>;
|
|
103
|
-
readonly succeed: (message?: string) => Effect.Effect<void>;
|
|
104
|
-
readonly fail: (message?: string) => Effect.Effect<void>;
|
|
105
|
-
readonly close: Effect.Effect<void>;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* A mounted live view. The view itself is immutable — dynamic content flows
|
|
110
|
-
* through a caller-owned store that its component subscribes to — so the
|
|
111
|
-
* handle only controls the block's lifetime. Scope-bound the same way as
|
|
112
|
-
* {@link ProgressHandle}; `close` settles early and is idempotent.
|
|
113
|
-
*/
|
|
114
|
-
export interface LiveViewHandle {
|
|
115
|
-
readonly close: Effect.Effect<void>;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface LiveViewOptions {
|
|
119
|
-
/** Place an application shell/header before completed prompt output. */
|
|
120
|
-
readonly placement?: "beforeTranscript" | "afterTranscript";
|
|
121
|
-
/** Commit the final view to the static transcript when it closes. */
|
|
122
|
-
readonly persistOnClose?: boolean;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface CliKitOptions {
|
|
126
|
-
readonly stdin?: NodeJS.ReadStream;
|
|
127
|
-
readonly stdout?: NodeJS.WriteStream;
|
|
128
|
-
readonly stderr?: NodeJS.WriteStream;
|
|
129
|
-
/** Override automatic TTY input detection. Primarily useful for tests. */
|
|
130
|
-
readonly input?: boolean;
|
|
131
|
-
readonly colors?: boolean;
|
|
132
|
-
readonly unicode?: boolean;
|
|
133
|
-
/** Capture console output while the interactive renderer owns the tty. */
|
|
134
|
-
readonly captureConsole?: boolean;
|
|
135
|
-
}
|
|
@@ -4,9 +4,9 @@ import { useWindowSize } from "@alchemy.run/sigil";
|
|
|
4
4
|
import { createContext, useContext, useMemo } from "@alchemy.run/sigil/react";
|
|
5
5
|
import type { ReactNode } from "react";
|
|
6
6
|
import { glyphsFor, theme, type KeyHint } from "../../../Util/Theme.ts";
|
|
7
|
-
import type {
|
|
7
|
+
import type { TerminalCapabilities } from "../types.ts";
|
|
8
8
|
|
|
9
|
-
const defaults:
|
|
9
|
+
const defaults: TerminalCapabilities = {
|
|
10
10
|
input: false,
|
|
11
11
|
columns: 80,
|
|
12
12
|
rows: 24,
|
|
@@ -15,14 +15,14 @@ const defaults: CliKitCapabilities = {
|
|
|
15
15
|
alternateScreen: false,
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
const EnvironmentContext = createContext<
|
|
18
|
+
const EnvironmentContext = createContext<TerminalCapabilities>(defaults);
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Resize-following variant, split out so the static renderer (`renderToString`
|
|
22
22
|
* for every print/format) never attaches a `resize` listener to stdout.
|
|
23
23
|
*/
|
|
24
24
|
type ObservingEnvironmentProps = {
|
|
25
|
-
readonly capabilities:
|
|
25
|
+
readonly capabilities: TerminalCapabilities;
|
|
26
26
|
readonly children?: ReactNode;
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -36,7 +36,7 @@ function ObservingEnvironment({ capabilities, children }: ObservingEnvironmentPr
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
type CliEnvironmentProps = {
|
|
39
|
-
readonly capabilities:
|
|
39
|
+
readonly capabilities: TerminalCapabilities;
|
|
40
40
|
/** Follow Sigil's terminal resize subscription for a live renderer. */
|
|
41
41
|
readonly observeWindow?: boolean;
|
|
42
42
|
readonly children?: ReactNode;
|
|
@@ -7,16 +7,18 @@ import {
|
|
|
7
7
|
usePaste,
|
|
8
8
|
useStdout,
|
|
9
9
|
type DOMElement,
|
|
10
|
+
type ProgramStatusKind,
|
|
10
11
|
} from "@alchemy.run/sigil";
|
|
11
12
|
import { stringWidth } from "@alchemy.run/sigil/ansi";
|
|
12
13
|
import { useEffect, useLayoutEffect, useRef, useState } from "@alchemy.run/sigil/react";
|
|
13
14
|
import type { JSX, ReactNode } from "react";
|
|
14
15
|
import { copyToClipboard } from "../../../Util/Terminal.ts";
|
|
15
16
|
import { theme } from "../../../Util/Theme.ts";
|
|
16
|
-
import type {
|
|
17
|
+
import type { Choice, CycleChoice } from "../types.ts";
|
|
17
18
|
import { useCliEnvironment, useGlyphs, useKeyGlyphs } from "./Environment.tsx";
|
|
18
19
|
import { KeyBar, Spinner } from "./Feedback.tsx";
|
|
19
20
|
import { Box, overflowListWindow } from "./Layout.tsx";
|
|
21
|
+
import { useAlchemyStatus } from "./ProgramStatus.ts";
|
|
20
22
|
import { Link, Text } from "./Typography.tsx";
|
|
21
23
|
|
|
22
24
|
export interface TerminalKey {
|
|
@@ -393,7 +395,7 @@ export function TextField({
|
|
|
393
395
|
active,
|
|
394
396
|
ariaLabel,
|
|
395
397
|
}: TextFieldProps) {
|
|
396
|
-
// Prompts are serialized by the
|
|
398
|
+
// Prompts are serialized by the Sigil renderer, so an enabled field owns
|
|
397
399
|
// the input stream outright — no Sigil focus negotiation. (Coupling this to
|
|
398
400
|
// useFocus({autoFocus}) silently disabled the field whenever any other
|
|
399
401
|
// focusable was already mounted.)
|
|
@@ -593,7 +595,20 @@ export const useCycleNavigation = (stateCounts: ReadonlyArray<number>) => {
|
|
|
593
595
|
return { cursor, indices, move, setCursor, cycle } as const;
|
|
594
596
|
};
|
|
595
597
|
|
|
596
|
-
export interface
|
|
598
|
+
export interface BrowserLoginWaitProps {
|
|
599
|
+
readonly message: string;
|
|
600
|
+
readonly waitingLabel: string;
|
|
601
|
+
readonly url: string;
|
|
602
|
+
/** Short code the user confirms on the login page. */
|
|
603
|
+
readonly code?: string;
|
|
604
|
+
readonly openFailed?: boolean;
|
|
605
|
+
/** Open the login URL again from the waiting screen. */
|
|
606
|
+
readonly onOpen?: () => Promise<void>;
|
|
607
|
+
/** Allow Enter to switch to manual code entry. */
|
|
608
|
+
readonly allowManualInput: boolean;
|
|
609
|
+
readonly inputLabel?: string;
|
|
610
|
+
readonly placeholder?: string;
|
|
611
|
+
readonly validate?: (value: string) => string | Error | undefined;
|
|
597
612
|
readonly onSubmit: (value: string) => void;
|
|
598
613
|
readonly onCancel: () => void;
|
|
599
614
|
}
|
|
@@ -741,21 +756,21 @@ export function ChoiceGroup<Value>({
|
|
|
741
756
|
);
|
|
742
757
|
}
|
|
743
758
|
|
|
744
|
-
/** Browser
|
|
745
|
-
export function
|
|
759
|
+
/** Browser login waiting screen with URL controls and manual-entry fallback. */
|
|
760
|
+
export function BrowserLoginWait({
|
|
746
761
|
message,
|
|
747
762
|
waitingLabel,
|
|
748
763
|
url,
|
|
749
764
|
code,
|
|
750
765
|
openFailed = false,
|
|
751
766
|
onOpen,
|
|
752
|
-
allowManualInput
|
|
767
|
+
allowManualInput,
|
|
753
768
|
inputLabel,
|
|
754
769
|
placeholder,
|
|
755
770
|
validate,
|
|
756
771
|
onSubmit,
|
|
757
772
|
onCancel,
|
|
758
|
-
}:
|
|
773
|
+
}: BrowserLoginWaitProps) {
|
|
759
774
|
const { stdout } = useStdout();
|
|
760
775
|
const glyphs = useGlyphs();
|
|
761
776
|
const keyGlyphs = useKeyGlyphs();
|
|
@@ -787,7 +802,7 @@ export function ExternalWait({
|
|
|
787
802
|
else if (shortcut === "o" && onOpen !== undefined) {
|
|
788
803
|
setBrowserFailed(false);
|
|
789
804
|
void onOpen().catch(() => setBrowserFailed(true));
|
|
790
|
-
} else if (shortcut === "c"
|
|
805
|
+
} else if (shortcut === "c") {
|
|
791
806
|
copyToClipboard(url, stdout ?? process.stdout);
|
|
792
807
|
setCopied(true);
|
|
793
808
|
clearTimeout(copiedTimer.current);
|
|
@@ -799,6 +814,7 @@ export function ExternalWait({
|
|
|
799
814
|
return (
|
|
800
815
|
<PromptFrame
|
|
801
816
|
message={manualInputLabel}
|
|
817
|
+
blocked="auth"
|
|
802
818
|
layout="inline"
|
|
803
819
|
error={error}
|
|
804
820
|
keys={[
|
|
@@ -829,14 +845,11 @@ export function ExternalWait({
|
|
|
829
845
|
return (
|
|
830
846
|
<PromptFrame
|
|
831
847
|
message={message}
|
|
848
|
+
blocked="auth"
|
|
832
849
|
keys={[
|
|
833
850
|
...(allowManualInput ? ([[keyGlyphs.enter, "enter code manually"]] as const) : []),
|
|
834
|
-
...(
|
|
835
|
-
|
|
836
|
-
: ([
|
|
837
|
-
...(onOpen === undefined ? [] : ([["o", "open browser"]] as const)),
|
|
838
|
-
["c", copied ? `${glyphs.success} copied` : "copy URL"],
|
|
839
|
-
] as const)),
|
|
851
|
+
...(onOpen === undefined ? [] : ([["o", "open browser"]] as const)),
|
|
852
|
+
["c", copied ? `${glyphs.success} copied` : "copy URL"],
|
|
840
853
|
[keyGlyphs.escape, "cancel"],
|
|
841
854
|
]}
|
|
842
855
|
>
|
|
@@ -855,7 +868,7 @@ export function ExternalWait({
|
|
|
855
868
|
{glyphs.warning} Could not open the browser. Copy and open the URL manually.
|
|
856
869
|
</Text>
|
|
857
870
|
) : null}
|
|
858
|
-
|
|
871
|
+
<Link href={url}>{url}</Link>
|
|
859
872
|
</Box>
|
|
860
873
|
</PromptFrame>
|
|
861
874
|
);
|
|
@@ -863,6 +876,12 @@ export function ExternalWait({
|
|
|
863
876
|
|
|
864
877
|
export type PromptFrameProps = {
|
|
865
878
|
readonly message: string;
|
|
879
|
+
/**
|
|
880
|
+
* What the prompt waits for, reported as OSC 7501 `blocked` while it is
|
|
881
|
+
* shown: approvals are `permission`, logins `auth`.
|
|
882
|
+
* @default "question"
|
|
883
|
+
*/
|
|
884
|
+
readonly blocked?: ProgramStatusKind;
|
|
866
885
|
readonly description?: ReactNode;
|
|
867
886
|
readonly children: JSX.Element;
|
|
868
887
|
readonly layout?: "inline" | "stacked";
|
|
@@ -872,6 +891,7 @@ export type PromptFrameProps = {
|
|
|
872
891
|
|
|
873
892
|
export function PromptFrame({
|
|
874
893
|
message,
|
|
894
|
+
blocked = "question",
|
|
875
895
|
description,
|
|
876
896
|
children,
|
|
877
897
|
layout = "stacked",
|
|
@@ -879,6 +899,7 @@ export function PromptFrame({
|
|
|
879
899
|
keys,
|
|
880
900
|
}: PromptFrameProps) {
|
|
881
901
|
const glyphs = useGlyphs();
|
|
902
|
+
useAlchemyStatus({ state: "blocked", kind: blocked, msg: message });
|
|
882
903
|
// The active-step glyph shares the heading's brand colour: `◆ question` is
|
|
883
904
|
// the step being answered, `✓ question` (AnsweredPrompt) one that is done.
|
|
884
905
|
const heading = (suffix = "") => (
|
|
@@ -19,7 +19,7 @@ export { VirtualList } from "@alchemy.run/sigil";
|
|
|
19
19
|
|
|
20
20
|
export type BoxProps = ComponentProps<typeof SigilBox>;
|
|
21
21
|
|
|
22
|
-
/** Theme-aware Sigil container used by
|
|
22
|
+
/** Theme-aware Sigil container used by CLI layouts. */
|
|
23
23
|
export const Box: ForwardRefExoticComponent<PropsWithoutRef<BoxProps> & RefAttributes<DOMElement>> =
|
|
24
24
|
forwardRef<DOMElement, BoxProps>(function Box(props, ref) {
|
|
25
25
|
const { colors } = useCliEnvironment();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
2
|
/** @jsxImportSource @alchemy.run/sigil */
|
|
3
|
-
import { useSyncExternalStore } from "@alchemy.run/sigil/react";
|
|
3
|
+
import { isValidElement, useSyncExternalStore } from "@alchemy.run/sigil/react";
|
|
4
4
|
import type { ReactNode } from "react";
|
|
5
5
|
import { theme } from "../../../Util/Theme.ts";
|
|
6
|
-
import { useGlyphs } from "./Environment.tsx";
|
|
6
|
+
import { useCliEnvironment, useGlyphs } from "./Environment.tsx";
|
|
7
7
|
import { SpinnerGlyph } from "./Feedback.tsx";
|
|
8
8
|
import { Box, Row, Stack } from "./Layout.tsx";
|
|
9
9
|
import { ProgressBar } from "./ProgressBar.tsx";
|
|
@@ -19,6 +19,13 @@ export interface TaskRowProps {
|
|
|
19
19
|
readonly label: ReactNode;
|
|
20
20
|
/** Muted annotation directly after the label. */
|
|
21
21
|
readonly detail?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* How a detail longer than the row is fitted: cut to one line (progress
|
|
24
|
+
* messages), or wrapped within its own column (errors worth reading whole).
|
|
25
|
+
* Either way the glyph, label and trailing cells keep their full width.
|
|
26
|
+
* @default "truncate"
|
|
27
|
+
*/
|
|
28
|
+
readonly detailOverflow?: "truncate" | "wrap";
|
|
22
29
|
/** Indentation in 2-space units. */
|
|
23
30
|
readonly depth?: number;
|
|
24
31
|
/** Extra trailing cells (status labels, chips). */
|
|
@@ -35,24 +42,96 @@ export function TaskRow({
|
|
|
35
42
|
spinning = false,
|
|
36
43
|
label,
|
|
37
44
|
detail,
|
|
45
|
+
detailOverflow = "truncate",
|
|
38
46
|
depth = 0,
|
|
39
47
|
children,
|
|
40
48
|
}: TaskRowProps) {
|
|
41
49
|
const glyphs = useGlyphs();
|
|
42
|
-
|
|
50
|
+
const { columns } = useCliEnvironment();
|
|
51
|
+
// A failure message keeps a column of its own beside a label that has to
|
|
52
|
+
// truncate: as wide as it needs, but at most a share of the row, and never
|
|
53
|
+
// more than the glyph, trailing cells and a sliver of label leave. With no
|
|
54
|
+
// room for that column, it moves to its own line under the row.
|
|
55
|
+
const row = columns - depth * theme.space.indent;
|
|
56
|
+
const trailing = cellsWidth(children);
|
|
57
|
+
const free = row - 2 - 1 - (trailing > 0 ? trailing + 1 : 0) - labelMinWidth;
|
|
58
|
+
const wrap = detail !== undefined && detailOverflow === "wrap";
|
|
59
|
+
const below = wrap && free < detailMinColumn;
|
|
60
|
+
const detailMinWidth = wrap
|
|
61
|
+
? Math.min(oneLine(textOf(detail)).length + 2, Math.floor(row * failureShare), free)
|
|
62
|
+
: 0;
|
|
63
|
+
const detailText = (
|
|
64
|
+
<Text tone="muted" wrap={wrap ? "wrap" : "truncate-end"}>
|
|
65
|
+
· {typeof detail === "string" && !wrap ? oneLine(detail) : detail}
|
|
66
|
+
</Text>
|
|
67
|
+
);
|
|
68
|
+
// Only the detail gives way when the row is too narrow, then the label;
|
|
69
|
+
// letting every cell shrink wrapped the label and split the status word.
|
|
70
|
+
const line = (
|
|
43
71
|
<Row gap={1} paddingLeft={depth * theme.space.indent}>
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
72
|
+
<Box flexShrink={0}>
|
|
73
|
+
{spinning ? (
|
|
74
|
+
<SpinnerGlyph color={iconColor} />
|
|
75
|
+
) : (
|
|
76
|
+
<Text color={iconColor}>{icon ?? glyphs.bullet}</Text>
|
|
77
|
+
)}
|
|
78
|
+
</Box>
|
|
79
|
+
{/* The label gives way only once the detail is gone (the detail's
|
|
80
|
+
huge shrink factor takes the overflow first), so a long name still
|
|
81
|
+
leaves the trailing status on screen. */}
|
|
82
|
+
<Box flexShrink={1}>
|
|
83
|
+
<Text bold={depth === 0} wrap="truncate-end">
|
|
84
|
+
{label}
|
|
85
|
+
</Text>
|
|
86
|
+
</Box>
|
|
87
|
+
{detail === undefined || below ? null : (
|
|
88
|
+
<Box flexShrink={1_000_000} minWidth={detailMinWidth}>
|
|
89
|
+
{detailText}
|
|
90
|
+
</Box>
|
|
48
91
|
)}
|
|
49
|
-
<
|
|
50
|
-
|
|
51
|
-
|
|
92
|
+
<Box flexShrink={0} gap={1}>
|
|
93
|
+
{children}
|
|
94
|
+
</Box>
|
|
52
95
|
</Row>
|
|
53
96
|
);
|
|
97
|
+
return below ? (
|
|
98
|
+
<Stack>
|
|
99
|
+
{line}
|
|
100
|
+
<Box paddingLeft={depth * theme.space.indent + 2}>{detailText}</Box>
|
|
101
|
+
</Stack>
|
|
102
|
+
) : (
|
|
103
|
+
line
|
|
104
|
+
);
|
|
54
105
|
}
|
|
55
106
|
|
|
107
|
+
/** Progress messages can carry several lines of tool output; keep them on one. */
|
|
108
|
+
const oneLine = (text: string) => text.replaceAll(/\s*\r?\n\s*/g, " ").trim();
|
|
109
|
+
|
|
110
|
+
/** Share of the row a wrapped failure detail keeps when the label has to truncate. */
|
|
111
|
+
const failureShare = 0.4;
|
|
112
|
+
|
|
113
|
+
/** Cells a truncated label keeps beside a failure (`W…`). */
|
|
114
|
+
const labelMinWidth = 2;
|
|
115
|
+
|
|
116
|
+
/** Narrowest failure column worth keeping beside the row (`· fail…`). */
|
|
117
|
+
const detailMinColumn = 8;
|
|
118
|
+
|
|
119
|
+
/** Width of the trailing cells, with the 1-cell gap between them. */
|
|
120
|
+
const cellsWidth = (cells: ReactNode): number => {
|
|
121
|
+
const widths = (Array.isArray(cells) ? cells : [cells])
|
|
122
|
+
.filter((cell) => cell !== null && cell !== undefined && cell !== false)
|
|
123
|
+
.map((cell) => textOf(cell).length);
|
|
124
|
+
return widths.length === 0 ? 0 : widths.reduce((a, b) => a + b, 0) + widths.length - 1;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/** The plain text of a detail, to size its column. */
|
|
128
|
+
const textOf = (node: ReactNode): string => {
|
|
129
|
+
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
130
|
+
if (Array.isArray(node)) return node.map(textOf).join("");
|
|
131
|
+
if (isValidElement<{ readonly children?: ReactNode }>(node)) return textOf(node.props.children);
|
|
132
|
+
return "";
|
|
133
|
+
};
|
|
134
|
+
|
|
56
135
|
export interface ProgressGroupRow {
|
|
57
136
|
readonly id: string;
|
|
58
137
|
readonly label: ReactNode;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useProgramStatus, type ProgramStatus } from "@alchemy.run/sigil";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Report alchemy's state to terminals that support OSC 7501 program status
|
|
5
|
+
* (working, blocked on the user, done, failed), for example as a tab badge.
|
|
6
|
+
* Sigil only sends reports once the terminal confirms support. The record is
|
|
7
|
+
* withdrawn when the component unmounts, unless it last reported `done` or
|
|
8
|
+
* `error`, which stay for the user to find.
|
|
9
|
+
*
|
|
10
|
+
* `msg` is limited to alchemy's own labels and prompt headings: never user
|
|
11
|
+
* input, resource values, or command output.
|
|
12
|
+
*/
|
|
13
|
+
export const useAlchemyStatus = (status: Omit<ProgramStatus, "app"> | undefined): void =>
|
|
14
|
+
useProgramStatus(status === undefined ? undefined : { ...status, app: "alchemy" });
|
|
@@ -21,7 +21,7 @@ export interface TextProps extends Omit<ComponentProps<typeof SigilText>, "color
|
|
|
21
21
|
readonly color?: ComponentProps<typeof SigilText>["color"];
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
/**
|
|
24
|
+
/** CLI typography primitive. Consumers never import Sigil directly. */
|
|
25
25
|
export function Text({
|
|
26
26
|
tone = "default",
|
|
27
27
|
color,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Composable terminal layouts and interaction widgets.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Kept apart from `Interaction` so importing the service does not eagerly
|
|
5
|
+
* load React, Sigil or Yoga.
|
|
6
6
|
*/
|
|
7
7
|
export {
|
|
8
8
|
CliEnvironment,
|
|
@@ -25,6 +25,7 @@ export {
|
|
|
25
25
|
type StackProps,
|
|
26
26
|
} from "./Layout.tsx";
|
|
27
27
|
export { Link, Text, type TextProps, type TextTone } from "./Typography.tsx";
|
|
28
|
+
export { useAlchemyStatus } from "./ProgramStatus.ts";
|
|
28
29
|
export {
|
|
29
30
|
Alert,
|
|
30
31
|
KeyBar,
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
/** @jsxImportSource @alchemy.run/sigil */
|
|
3
3
|
import { useMemo, useState } from "@alchemy.run/sigil/react";
|
|
4
4
|
import type { JSX } from "react";
|
|
5
|
+
import { Screen, type ScreenController } from "../../../Interaction.ts";
|
|
5
6
|
import type { Plan as AlchemyPlan } from "../../../Plan.ts";
|
|
6
|
-
import {
|
|
7
|
+
import { theme } from "../../../Util/Theme.ts";
|
|
7
8
|
import {
|
|
8
9
|
ChoiceGroup,
|
|
9
10
|
Box,
|
|
10
11
|
KeyBar,
|
|
11
12
|
Text,
|
|
13
|
+
useAlchemyStatus,
|
|
12
14
|
useGlyphs,
|
|
13
15
|
useKeyGlyphs,
|
|
14
16
|
useTerminalInput,
|
|
@@ -34,6 +36,7 @@ export function ApprovePlan(props: ApprovePlanProps): JSX.Element {
|
|
|
34
36
|
const action = plan.destroy ? "Destroy" : "Deploy";
|
|
35
37
|
const glyphs = useGlyphs();
|
|
36
38
|
const keys = useKeyGlyphs();
|
|
39
|
+
useAlchemyStatus({ state: "blocked", kind: "permission", msg: `${action}?` });
|
|
37
40
|
const tree = useMemo(
|
|
38
41
|
() =>
|
|
39
42
|
new PlanTree(plan, {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/** @jsxRuntime automatic */
|
|
2
|
+
/** @jsxImportSource @alchemy.run/sigil */
|
|
3
|
+
import { stripVTControlCharacters } from "node:util";
|
|
4
|
+
import { renderToString } from "@alchemy.run/sigil";
|
|
5
|
+
import type { RenderOptions, TerminalCapabilities, View } from "../types.ts";
|
|
6
|
+
import { CliEnvironment } from "../ui/Environment.tsx";
|
|
7
|
+
import { Text } from "../ui/Typography.tsx";
|
|
8
|
+
|
|
9
|
+
export const normalizeView = (view: View): View => {
|
|
10
|
+
if (typeof view === "string" || typeof view === "number" || typeof view === "bigint") {
|
|
11
|
+
return <Text>{String(view)}</Text>;
|
|
12
|
+
}
|
|
13
|
+
// Contract: an array of primitives renders as ONE Text line with the
|
|
14
|
+
// elements concatenated (no separator) — matching how React renders
|
|
15
|
+
// adjacent text children. Callers wanting separators must join themselves.
|
|
16
|
+
if (
|
|
17
|
+
Array.isArray(view) &&
|
|
18
|
+
view.every(
|
|
19
|
+
(item) =>
|
|
20
|
+
item === null ||
|
|
21
|
+
item === undefined ||
|
|
22
|
+
typeof item === "boolean" ||
|
|
23
|
+
typeof item === "string" ||
|
|
24
|
+
typeof item === "number" ||
|
|
25
|
+
typeof item === "bigint",
|
|
26
|
+
)
|
|
27
|
+
) {
|
|
28
|
+
return (
|
|
29
|
+
<Text>
|
|
30
|
+
{view
|
|
31
|
+
.filter((item) => item !== null && item !== undefined && typeof item !== "boolean")
|
|
32
|
+
.map(String)
|
|
33
|
+
.join("")}
|
|
34
|
+
</Text>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
return view;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** Render a layout to a string without a live renderer (help, plain output, snapshots). */
|
|
41
|
+
export const formatView = (
|
|
42
|
+
view: View,
|
|
43
|
+
capabilities: TerminalCapabilities,
|
|
44
|
+
options: RenderOptions = {},
|
|
45
|
+
): string => {
|
|
46
|
+
const colors = options.colors ?? capabilities.colors;
|
|
47
|
+
// The renderer and the components must agree on the width: components size
|
|
48
|
+
// themselves from the environment's `columns`, so an explicit render width
|
|
49
|
+
// has to flow into the capabilities too, not only into renderToString.
|
|
50
|
+
const columns = options.columns ?? capabilities.columns;
|
|
51
|
+
const output = renderToString(
|
|
52
|
+
<CliEnvironment capabilities={{ ...capabilities, colors, columns }}>
|
|
53
|
+
{normalizeView(view)}
|
|
54
|
+
</CliEnvironment>,
|
|
55
|
+
{ columns, colorProfile: colors ? "truecolor" : "none" },
|
|
56
|
+
).replace(/[\s\n]+$/, "");
|
|
57
|
+
return colors ? output : stripVTControlCharacters(output);
|
|
58
|
+
};
|