diff --git a/packages/cli/src/internal/prompt/multi-select.ts b/packages/cli/src/internal/prompt/multi-select.ts
index 0788f63bed..99dbcf1b0c 100644
--- a/packages/cli/src/internal/prompt/multi-select.ts
+++ b/packages/cli/src/internal/prompt/multi-select.ts
@@ -294,7 +294,7 @@ function handleProcess(options: SelectOptions & MultiSelectOptions) {
function handleRender(options: SelectOptions) {
return (state: State, action: Prompt.Prompt.Action>) => {
- return Action.$match(action, {
+ return Action.match(action, {
Beep: () => Effect.succeed(renderBeep),
NextFrame: ({ state }) => renderNextFrame(state, options),
Submit: () => renderSubmission(state, options)
diff --git a/packages/effect/src/internal/config.ts b/packages/effect/src/internal/config.ts
index 416b1c9fa2..c8e12dede7 100644
--- a/packages/effect/src/internal/config.ts
+++ b/packages/effect/src/internal/config.ts
@@ -426,12 +426,11 @@ export const repeat = (self: Config.Config): Config.Config> => {
}
/** @internal */
-export const redacted = (name?: string): Config.Config => {
- const config = primitive(
- "a redacted property",
- (text) => Either.right(redacted_.make(text))
- )
- return name === undefined ? config : nested(config, name)
+export const redacted = (
+ nameOrConfig?: string | Config.Config
+): Config.Config> => {
+ const config: Config.Config = isConfig(nameOrConfig) ? nameOrConfig : string(nameOrConfig)
+ return map(config, redacted_.make)
}
/** @internal */